Re: New version of SWAPGEN available

2004-06-25 Thread James Melin
So this swapgen utility makes the V-Disk linux ready? Does that mean it's
formatted as swap?  What do you do then within in the Linux guest to use
the device as swap?




 Adam Thornton
 [EMAIL PROTECTED]
 mine.net  To
 Sent by: Linux on [EMAIL PROTECTED]
 390 Port   cc
 [EMAIL PROTECTED]
 IST.EDU  Subject
   New version of SWAPGEN available

 06/24/2004 05:00
 PM


 Please respond to
 Linux on 390 Port
 [EMAIL PROTECTED]
 IST.EDU






Version 5 of SWAPGEN is now available from
http://www.sinenomine.net/downloads

It's pretty much the same as version 4, but there's a new option:
REUSE

If your system policy doesn't allow your guests to define their own
VDISKs, but instead mandates that they be present in the directory
entry, you can use, for example,

SWAPGEN 152 20 ( REUSE

(which would write a Linux swap signature on a DIAG-accessible,
CMS-FORMATted and RESERVEd 20 block V-DISK at address 152).

Note that if you're using REUSE you still have to specify the size in
512-blocks, and it needs to match the actual device size.  I agonized
over putting the feature in at all, because it makes it possible to
destroy extant data with SWAPGEN (which was not previously possible),
and I finally compromised by only touching devices whose size you've
specified on the command line.  Consider that the safety catch: if
you've said REUSE and you know the size of the device, we assume you
really do mean to overwrite it.

REUSE is *not* the default.  The default is still to detach whatever's
at the address you specify, allocate a V-DISK at that address, and use
it.

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


Re: New version of SWAPGEN available

2004-06-25 Thread Dave Jones
Yes, it's ready for Linux use as a swap device. You just need an entry
for swap in the /etc/fstab file...
DJ
James Melin wrote:
So this swapgen utility makes the V-Disk linux ready? Does that mean it's
formatted as swap?  What do you do then within in the Linux guest to use
the device as swap?

Adam Thornton
[EMAIL PROTECTED]
mine.net  To
Sent by: Linux on [EMAIL PROTECTED]
390 Port   cc
[EMAIL PROTECTED]
IST.EDU  Subject
  New version of SWAPGEN available
06/24/2004 05:00
PM
Please respond to
Linux on 390 Port
[EMAIL PROTECTED]
IST.EDU


Version 5 of SWAPGEN is now available from
http://www.sinenomine.net/downloads
It's pretty much the same as version 4, but there's a new option:
REUSE
If your system policy doesn't allow your guests to define their own
VDISKs, but instead mandates that they be present in the directory
entry, you can use, for example,
SWAPGEN 152 20 ( REUSE
(which would write a Linux swap signature on a DIAG-accessible,
CMS-FORMATted and RESERVEd 20 block V-DISK at address 152).
Note that if you're using REUSE you still have to specify the size in
512-blocks, and it needs to match the actual device size.  I agonized
over putting the feature in at all, because it makes it possible to
destroy extant data with SWAPGEN (which was not previously possible),
and I finally compromised by only touching devices whose size you've
specified on the command line.  Consider that the safety catch: if
you've said REUSE and you know the size of the device, we assume you
really do mean to overwrite it.
REUSE is *not* the default.  The default is still to detach whatever's
at the address you specify, allocate a V-DISK at that address, and use
it.
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

--
Dave Jones   Sine Nomine Associates
Houston, TX  281.578.7544
--
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


Re: New version of SWAPGEN available

2004-06-25 Thread James Melin
K. I've just gotten to the point where our VM guy is going to finally let
me USE vdisk for swap (took much convincing) and he assigned that device at
dev 300.
swapgen not withstanding, I've been unable to get linux to recognize the
device. I've tried adding it using an add command echoed to
/proc/dasd/devices and I get

0203(ECKD) at ( 94: 12) is dasdd  : active at blocksize: 4096, 216000
blocks, 843 MB
0300(none) at ( 94: 16) is dasde  : unknown

I wanted to resolve THIS part before I tried to do something slick with
swapgen. Perhaps I am being premature?




 Dave Jones
 [EMAIL PROTECTED]
 e.net To
 Sent by: Linux on [EMAIL PROTECTED]
 390 Port   cc
 [EMAIL PROTECTED]
 IST.EDU  Subject
   Re: New version of SWAPGEN
   available
 06/25/2004 09:24
 AM


 Please respond to
 Linux on 390 Port
 [EMAIL PROTECTED]
 IST.EDU






Yes, it's ready for Linux use as a swap device. You just need an entry
for swap in the /etc/fstab file...
DJ

James Melin wrote:

So this swapgen utility makes the V-Disk linux ready? Does that mean it's
formatted as swap?  What do you do then within in the Linux guest to use
the device as swap?




 Adam Thornton
 [EMAIL PROTECTED]
 mine.net  To
 Sent by: Linux on [EMAIL PROTECTED]
 390 Port   cc
 [EMAIL PROTECTED]
 IST.EDU  Subject
   New version of SWAPGEN available

 06/24/2004 05:00
 PM


 Please respond to
 Linux on 390 Port
 [EMAIL PROTECTED]
 IST.EDU






Version 5 of SWAPGEN is now available from
http://www.sinenomine.net/downloads

It's pretty much the same as version 4, but there's a new option:
REUSE

If your system policy doesn't allow your guests to define their own
VDISKs, but instead mandates that they be present in the directory
entry, you can use, for example,

SWAPGEN 152 20 ( REUSE

(which would write a Linux swap signature on a DIAG-accessible,
CMS-FORMATted and RESERVEd 20 block V-DISK at address 152).

Note that if you're using REUSE you still have to specify the size in
512-blocks, and it needs to match the actual device size.  I agonized
over putting the feature in at all, because it makes it possible to
destroy extant data with SWAPGEN (which was not previously possible),
and I finally compromised by only touching devices whose size you've
specified on the command line.  Consider that the safety catch: if
you've said REUSE and you know the size of the device, we assume you
really do mean to overwrite it.

REUSE is *not* the default.  The default is still to detach whatever's
at the address you specify, allocate a V-DISK at that address, and use
it.

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




--
Dave Jones   Sine Nomine Associates
Houston, TX  281.578.7544

--
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


Re: New version of SWAPGEN available

2004-06-25 Thread Ronald Van Der Laan
Dave Jones wrote on 25-06-2004 15:48:32:

 K. I've just gotten to the point where our VM guy is going to finally let
 me USE vdisk for swap (took much convincing) and he assigned that device
at
 dev 300.
 swapgen not withstanding, I've been unable to get linux to recognize the
 device. I've tried adding it using an add command echoed to
 /proc/dasd/devices and I get

 0203(ECKD) at ( 94: 12) is dasdd  : active at blocksize: 4096, 216000
 blocks, 843 MB
 0300(none) at ( 94: 16) is dasde  : unknown

 I wanted to resolve THIS part before I tried to do something slick with
 swapgen. Perhaps I am being premature?

Dave,

Please check if you've got the dasd_diag_mod and/or dasd_fba_mod kernel
module loaded.
The dasd_diag_mod module allows you fast access to CMS reserved disks via
the diagnose driver,
or the dasd_fba_mod module lets you use fba type devices like the
dasd_eckd_mod module lets
you talk to 3390s.

Ronald van der Laan

--
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


Re: New version of SWAPGEN available

2004-06-25 Thread Adam Thornton
On Fri, 2004-06-25 at 08:12, James Melin wrote:
 So this swapgen utility makes the V-Disk linux ready? Does that mean it's
 formatted as swap?  What do you do then within in the Linux guest to use
 the device as swap?

Yes.  It is formatted as swap.

Within the Linux guest you then do (presuming that the swap device is
/dev/dasdb)

swapon /dev/dasdb1  (in DIAG mode)   or
swapon /dev/dasdb

But actually you just put the correct device in /etc/fstab and it
happens automagically.

This saves you the step of having to do a mkswap/swapon in your boot
sequence--which is no big deal, but if you're using DIAG you will need
to have CMS FORMATted and RESERVEd your V-DISK anyway in CMS before
IPLing Linux, and while you are doing that you might as well write the
swap signature.

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


Re: New version of SWAPGEN available

2004-06-25 Thread Adam Thornton
On Fri, 2004-06-25 at 08:48, James Melin wrote:
 K. I've just gotten to the point where our VM guy is going to finally let
 me USE vdisk for swap (took much convincing) and he assigned that device at
 dev 300.
 swapgen not withstanding, I've been unable to get linux to recognize the
 device. I've tried adding it using an add command echoed to
 /proc/dasd/devices and I get

 0203(ECKD) at ( 94: 12) is dasdd  : active at blocksize: 4096, 216000
 blocks, 843 MB
 0300(none) at ( 94: 16) is dasde  : unknown

You need to load the FBA DASD driver.  insmod dasd_fba, IIRC.

If you want the best performance out of your VDISK, you need the DIAG
driver too.

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


Re: New version of SWAPGEN available

2004-06-25 Thread Michael MacIsaac
James,

With help from Don Robbins and others I wrote up using VDISK swap with the
SWAPGEN EXEC in the Domino on zLinux (tm) redbook:


http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg247021.html?Open

Section 6.6.2 I believe.

-Mike MacIsaac, IBM  mikemac at us.ibm.com   (845) 433-7061


--
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


Re: New version of SWAPGEN available

2004-06-25 Thread Loren Charnley, Jr.
James,

In order to use vdisks, they have to configured similar to an FBA device.
Block size must be 512.  If you define the vdisk in the VM directory and run
SWAPGEN with the proper device number, you should be alright.  I am no
expert, just tried it once.

Cheers,
Loren Charnley, Jr.
IT Systems Engineer
Family Dollar Stores, Inc.
[EMAIL PROTECTED]
(704) 847-6961 x 2000

-Original Message-
From: James Melin [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 9:49 AM
To: [EMAIL PROTECTED]
Subject: Re: New version of SWAPGEN available

K. I've just gotten to the point where our VM guy is going to finally let
me USE vdisk for swap (took much convincing) and he assigned that device at
dev 300.
swapgen not withstanding, I've been unable to get linux to recognize the
device. I've tried adding it using an add command echoed to
/proc/dasd/devices and I get

0203(ECKD) at ( 94: 12) is dasdd  : active at blocksize: 4096, 216000
blocks, 843 MB
0300(none) at ( 94: 16) is dasde  : unknown

I wanted to resolve THIS part before I tried to do something slick with
swapgen. Perhaps I am being premature?




 Dave Jones
 [EMAIL PROTECTED]
 e.net To
 Sent by: Linux on [EMAIL PROTECTED]
 390 Port   cc
 [EMAIL PROTECTED]
 IST.EDU  Subject
   Re: New version of SWAPGEN
   available
 06/25/2004 09:24
 AM


 Please respond to
 Linux on 390 Port
 [EMAIL PROTECTED]
 IST.EDU






Yes, it's ready for Linux use as a swap device. You just need an entry
for swap in the /etc/fstab file...
DJ

James Melin wrote:

So this swapgen utility makes the V-Disk linux ready? Does that mean it's
formatted as swap?  What do you do then within in the Linux guest to use
the device as swap?




 Adam Thornton
 [EMAIL PROTECTED]
 mine.net  To
 Sent by: Linux on [EMAIL PROTECTED]
 390 Port   cc
 [EMAIL PROTECTED]
 IST.EDU  Subject
   New version of SWAPGEN available

 06/24/2004 05:00
 PM


 Please respond to
 Linux on 390 Port
 [EMAIL PROTECTED]
 IST.EDU






Version 5 of SWAPGEN is now available from
http://www.sinenomine.net/downloads

It's pretty much the same as version 4, but there's a new option:
REUSE

If your system policy doesn't allow your guests to define their own
VDISKs, but instead mandates that they be present in the directory
entry, you can use, for example,

SWAPGEN 152 20 ( REUSE

(which would write a Linux swap signature on a DIAG-accessible,
CMS-FORMATted and RESERVEd 20 block V-DISK at address 152).

Note that if you're using REUSE you still have to specify the size in
512-blocks, and it needs to match the actual device size.  I agonized
over putting the feature in at all, because it makes it possible to
destroy extant data with SWAPGEN (which was not previously possible),
and I finally compromised by only touching devices whose size you've
specified on the command line.  Consider that the safety catch: if
you've said REUSE and you know the size of the device, we assume you
really do mean to overwrite it.

REUSE is *not* the default.  The default is still to detach whatever's
at the address you specify, allocate a V-DISK at that address, and use
it.

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




--
Dave Jones   Sine Nomine Associates
Houston, TX  281.578.7544

--
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

New version of SWAPGEN available

2004-06-24 Thread Adam Thornton
Version 5 of SWAPGEN is now available from
http://www.sinenomine.net/downloads

It's pretty much the same as version 4, but there's a new option:
REUSE

If your system policy doesn't allow your guests to define their own
VDISKs, but instead mandates that they be present in the directory
entry, you can use, for example,

SWAPGEN 152 20 ( REUSE

(which would write a Linux swap signature on a DIAG-accessible,
CMS-FORMATted and RESERVEd 20 block V-DISK at address 152).

Note that if you're using REUSE you still have to specify the size in
512-blocks, and it needs to match the actual device size.  I agonized
over putting the feature in at all, because it makes it possible to
destroy extant data with SWAPGEN (which was not previously possible),
and I finally compromised by only touching devices whose size you've
specified on the command line.  Consider that the safety catch: if
you've said REUSE and you know the size of the device, we assume you
really do mean to overwrite it.

REUSE is *not* the default.  The default is still to detach whatever's
at the address you specify, allocate a V-DISK at that address, and use
it.

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