[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Help --need to increase swap partition on RH9 {solved}



Thanks. This worked out well.

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

James 

-----Original Message-----
From: Leonard den Ottolander [mailto:leonardjo hetnet nl]
Sent: Thursday, July 24, 2003 2:05 PM
To: redhat-list redhat com
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:redhat-list-request redhat com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]