I am not positive that it will work.  But this is what was passed to us for 
doing this.

Make Swap File Procedure and Activate:
1.      There are three different types of swap files.
(a.)    Swap space on a ramdisk.
(b.)    Swap space on a partition.
(c.)    Swap file.
2.       It is recommended that we use (c.) Swap file.  IBM RedBook "Linux for 
S/390" chapter 10.3.4.3 has the procedure that I used.
3.      Create a directory for the swap file.  For example:
"mkdir /vol1/swap"
Create a swap file of 128 MB:
"dd if=/dev/zero of=/vol1/swap/swapfs1 bs=1M count=128"
Set up as swap area:
"Mkswap -c /vol1/swap/swapfs1"
Adjust the access permissions of the file:
"chmod 600 /vol1/swap/swapfs1"
"chmod 700 /vol1/swap"  documented in chapter 5 page 74
Activate the swap file:
"swapon /vol1/swap/swapfs1"
Make an entry in /etc/fstab:
/vol1/swap/swapfs1   swap                 swap            defaults   0   0

Thanks
John Eatherly


-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Martin, Terry R. 
(CMS/CTR) (CTR)
Sent: Wednesday, November 26, 2008 10:58 AM
To: [email protected]
Subject: Add a swap file to a running z/Linux guest

Hi,



Is there a way to add a SWAP file to a running z/Linux guest and have
that guest start using the SWAP file while that guest is running?



I am running REDHAT 4.6.



Thank You,



Terry Martin

Lockheed Martin - Information Technology

z/OS & z/VM Systems - Performance and Tuning

Cell - 443 632-4191

Work - 410 786-0386

[EMAIL PROTECTED]




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