Thanks. This worked out well.

I added "swapon swapfile" to /etc/rc.d/rc.local

James 

-----Original Message-----
From: Leonard den Ottolander [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:05 PM
To: [EMAIL PROTECTED]
Subject: Re: Help --need to increase swap partition on RH9


Hi James,

> How can I increase the swap size on production system? We added more RAM
> and I need to increase the swap space.

 You could run parted and resize the partition that way. You will need 
to reboot/reinit the machine in that case. Another option is to create 
a swapfile on a partition that has enough space left. In the case you 
use /home for this the procedure would be:

# dd if=/dev/zero of=/home/swapfile bs=1k count=Xk
# mkswap -f /home/swapfile
# swapon /home/swapfile

 Dont forget to add /home/swapfile to /etc/fstab. Using /home might not 
be the best option from a security standpoint, but it is probably the 
partition with the most free space left...

Bye,
Leonard.

--
How clean is a war when you shoot around nukelar waste?
Stop the use of depleted uranium ammo!
End all weapons of mass destruction.


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to