Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
lvresize allows you to resize a logical volume. Be careful when reducing a logical volume's size, because data in the reduced part
is lost!!! You should therefore ensure that any filesystem on the volume is shrunk first so that the extents that are to be removed
are not in use. Resizing snapshot logical volumes (see lvcreate(8) for information about creating snapshots) is supported as well.
But to change the number of copies in a mirrored logical volume use lvconvert(8).
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.
Last edited by brianmcgee; 08-09-2007 at 12:56 AM.
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 ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.