we tried the /etc/fstab route with no success.  after ipl with the
following /etc/fstab
lnx2142:/etc# cat fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>               <dump>
<pass>
/dev/dasd/0201/part1    /               ext3    errors=remount-ro       01
proc            /proc           proc    defaults                0       0
/dev/fd0        /floppy         auto    user,noauto             0       0
/dev/cdrom      /cdrom          iso9660 ro,user,noauto          0       0
/dev/dasd/0200/part1    /boot   ext3    defaults                        02
/dev/dasd/0202/part1    /usr    ext3    defaults                        02
/dev/dasd/0203/part1    /var    ext3    defaults                        02
/dev/dasd/0204/part1    /opt    ext3    defaults                        02
/dev/dasd/0205/part1    none    swap    sw              0       0
devfs   /dev    devfs   defaults                        0       2
............................
a free shows us:
lnx2142:~# free
            total       used       free     shared    buffers     cached
Mem:        250552      31508     219044          0       1496      10928
-/+ buffers/cache:      19084     231468
Swap:            0          0          0

Trying to do a swapon /dev/dasd/0205/part1 at this point gives us:
lnx2142:~# swapon /dev/dasd/0205/part1
swapon: /dev/dasd/0205/part1: Invalid argument
lnx2142:~#
and the console on the vm guest shows:
Debian GNU/Linux 3.0 lnx2142 console

lnx2142 login: Unable to find swap-space signature

...........................
after ipl with doswap, free shows this:
lnx2142:/etc# free
            total       used       free     shared    buffers     cached
Mem:        250552      31724     218828          0       1528      11080
-/+ buffers/cache:      19116     231436
Swap:        14988          0      14988

.......................
so we will probably go with the modified rc.boot script

Adam Thornton wrote:

On Mon, 2004-06-14 at 15:04, Scorch Burnet wrote:


0205 was not available because SWAPGEN detached it.  Then since we
didn't allow for guests to allocate a V-Disk, SWAPGEN could not build
one.  However, commenting out the lines that Adam suggested resolved
this.  So, we added the swapgen command to the profile exec:
SWAPGEN  0205  30000 ( FBA )
then created /etc/boot.rc/doswap that looks like:
/sbin/mkswap /dev/dasd/0205/part1
/sbin/swapon  /dev/dasd/0205/part1



One thing: you don't need doswap at all.

Just put a line in /etc/fstab:

/dev/dasd/0205/part1    none    swap    sw     0      0

SWAPGEN does the "mkswap" for you, and the line in /etc/fstab will let
Linux do the swapon at boot.

Adam

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390




---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to