Results 1 to 3 of 3
Hello, we are running Red Hat Enterprise Linux 5 and we need to give more space to our swap. It resides in the same volume group as the "root lv", ...
- 02-25-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 6
Resize logical volume
Hello, we are running Red Hat Enterprise Linux 5 and we need to give more space to our swap. It resides in the same volume group as the "root lv", so, we need to free some space from "root lv" to append it to "swap lv". The problem is that "root lv" is mounted at "/" and we are not able to umount it since it is in use. We are trying to use the graphical tool "system-config-lvm". Does anybody knows a way to workaround this? Thanks you all for any help you can provide!
- 02-25-2010 #2
you can't resize a system that is live
linux user # 503963
- 02-25-2010 #3Just Joined!
- Join Date
- Feb 2010
- Posts
- 6
Hello and thanks for the feedback. We were able to solve our problem by creating a swap file following this tips
1) create the file
dd if=/dev/zero of=<path to swap> bs=1024 count=<size in Kb>
2) make it a swap file
mkswap <path to swap>
3) turn it on and set it at /etc/fstab
swapon <path to swap>
<path to swap> none swap sw 0 0
Since we need this extra swap for an specific operation and then it can be removed, this solution came to be ideal for us (no need to change the LVM of the system).


Reply With Quote