[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Weirdest memory problem yet...



On Thu, July 4 2002 Jeff Lasman wrote:
|  Both "60" and "61" show the same df (well the usages are different but
|  the filesystems shown are the same):
|  
|  [admin admin]$ df
|  Filesystem           1k-blocks      Used Available Use% Mounted on
|  /dev/hda1               746387    606186    101647  86% /
|  /dev/hda3               202188     27684    164062  14% /var
|  /dev/hda4             18126515    821918  16359975   5% /home
|  
|  That said, a known good RaQ4 with proper swap partition usage shows the
|  same partitions.
|  
|  Jeff

Hey Jeff,

The swap partitions are setup by `swapon -a' in /etc/rc.d/rc.sysinit,
which will initialize any swap partition listed in /etc/fstab with type
"swap" or "sw":

/dev/hda6             swap      swap    defaults 0 0

You can check for swap partitions by running `sfdisk -l /dev/hda' and
looking for partition type 82, but if you are on a raid system it isn't
that obvious--by default Cobalt uses /dev/md6 for raid.

If the partition type is set to 82, then you can try enabling it with
`swapon -v /dev/hda6' but if that fails then its possible the swap
partition is corrupt and can be rebuilt with `mkswap -c /dev/hda6'
(the -c option checks for bad blocks first)

The active (if any) swap partitions are listed in /proc/swaps and can
also be listed with `swapon -s'.

Good luck,
-duncan