Resizing Centos (ext3/LVM) partition
Hi,
How can I resize (shrinking) an ext3/LVM partition created by Centos 5's Anaconda? |
For example if you want to shrink a 100G partition to 50G:
Code:
# rsync -rv /mount/point/* /srv/backups Quote:
|
Is it necessary to backup data before proceeding (rsync -rv /mount/point/* /srv/backups) ?
|
If the data is important you should have a backup anyway. In my point of view the shrinking of a filesystem is more dangerous than extending it. For example if there is only a slight difference in how the programs calculate the parameters for the sizing you might end up with a filesystem that is truncated. In that case not only the data that was cut off is lost but there is also the possibility that you get a corrupted filesystem that may be never restored again.
Usually I shrink my filesystem more than I shrink the lvm or the actual partition. Then I extend the filesystem to the maximum possible amount. |
Thank you for the fast reply.
If I have any problem I will notice them in this post... Thank you again! |
I tried to procced through the 'linux rescue' option of the centos installation cd but when i try to unmount the partition it say that I can-t do it {i tried with force option too]...Is it possible that I can't resize a LVM partition ? :cry: :cry: :cry:
PLEASE HELP ME! |
You sure can resize a LVM partition. Did you try to unmount the root partition in the rescue mode? Because the actual system wil be mounted under /mnt/sysimage/
The unmount is needed for the filesystem check. Ext3 can be resized online. |
All times are GMT -5. The time now is 09:44 PM. |