Port-i386 archive

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

Re: Where is my swap and dump space?



On Wed, Nov 26, 2008 at 04:59:12PM +0100, Ib-Michael Martinsen wrote:
> Dear list-members.
> 
> First of all excuse me if I am posting to the wrong mailling list, but
> this matter is regarding my NetBSD/i386 system although I am not
> sure it is strictly related to the i386 architecture.
> 
> 
> 
> I have been running NetBSD with a RAID1 setup in a few years apparently
> without problems, but recently I have been reexamining the setup and
> right now I am unable to locate my swap partition.
> 
> fdisk shows the disk layout as:
> 
> root:/root # fdisk -f /dev/wd0
> [...]
> root:/root # fdisk -f /dev/wd1
> [...]
> disklabel shows the disk layout as:
> 
> root:/root # disklabel -r -t /dev/wd0

disklabel wd0 (without -t) would have been easier to read.
> [...]
> the fstab looks like:
> 
> root:/root # cat /etc/fstab
> #Filesystem     Mntpt   Type    Option          Dump    Mount-order
> /dev/raid0a     /       ffs     rw              1       1
> /dev/raid0b     none    swap    sw              0       0
> # /dev/wd0e     /c      msdos   rw              1       2
> # /dev/wd2e     /d      msdos   rw              1       2
> /dev/cd0a       /cdrom  cd9660  ro,noauto       0       0
> /dev/fd0a       /floppy msdos   rw,noauto       1       0
> kernfs          /kern   kernfs  rw
> # procfs                /proc   procfs  rw,noauto
> procfs          /emul/linux/proc        procfs  ro,linux
> root:/root # 
> 
> the swap information is:
> 
> root:/root # swapctl -l
> Device      1K-blocks     Used    Avail Capacity  Priority
> /dev/raid0b   2097152   398076  1699076    19%    0
> root:/root # swapctl -z
> dump device is raid0b
> root:/root # 
> 
> and the raid configuration looks like:
> 
> root:/root # cat /etc/raid0.conf 
> [...]
> raidctl -s raid0 shows:
> [...]
> 
> My intentions were to allocate the first 2GB of the disks except for
> the first cylinder as swap space and let the rest of the disks be
> allocated to one big NetBSD partition, but this seems not to be the
> case.
> 
> According to the disktab all space except for the first cylinder is
> allocated to the NetBSD partition. And now I am wondering: where did I
> put my swap space area?

you didn't run the command that will tell you:
disklabel raid0

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index