On Wed, 2004-07-28 at 14:48, James Melin wrote:
> I have it defined to my guest..... how do I set it up in linux?

Are you using FBA or DIAG?  (If you used SWAPGEN without the FBA switch,
you're using DIAG; if you CMS RESERVEd it, you're using DIAG, otherwise,
you're probably using FBA.)

My recommendation is to use SWAPGEN because it's easier.  If you're
doing it without any CMS tools, though:

We're going to assume that the VDISK device is /dev/dasdb.  Change that
if it's not the case.  And, of course, you'll have to modify
/etc/zipl.conf and rerun zipl to have the swap device as the second disk
it finds.

Before you get to the point in the boot process where the system mounts
what it finds in /etc/fstab, you need to have:

FBA: mkswap /dev/dasdb

DIAG: mkswap /dev/dasdb1

Then you just have a swap partition define as usual in /etc/fstab.

fdasd won't touch FBA devices, so you have to use the raw device if
you're using the FBA driver.  Speaking of which...IBM, are you
listening?  fdasd maybe should learn about FBA since in z/VM 5.1 I think
a lot more people will be using it for real disks, because it's easier
than setting up SCSI/Fibre Channel.

You could also avoid rerunning zipl at all by just adding a
late-in-the-boot script to add the device dynamically, and then write a
swap partition on it.  Parsing the console output from the "add device"
to determine which driver got loaded at what device name is left as an
exercise for the student.

*OR*

You could just pick up a copy of SWAPGEN from
http://www.sinenomine.net/download and use it.  Run it before IPL of the
Linux volume (so you'd need to IPL CMS first), and then just have an
appropriate line in /etc/fstab.

I use SWAPGEN.  Part of that, of course, is that Dave Jones and I wrote
it, but the reason we wrote it is because I got sick of doing it the
long way.

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

Reply via email to