Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
View Poll Results: Which Is Your Preferred Linux File System?
Increasing the volume size is way easier and less risky than reducing it. When reducing a LVM volume there has to be enough space available to do it without causing corruption which I read from many articles and videos online.
It's best to practice LVM in a virtual machine and practice both increasing and reducing a LVM volume before implementing it on the main system.
Me too.
It would be nice if I could reduce the size of a LVM volume in situ without destroying the underlying ext4 filesystem.
Reducing a LVM volume is more risky than increasing it. When reducing a LVM volume, there must be some free space available to be done correctly, otherwise corruption can happen. This is mentioned in the many articles online.
It's wise to practice reducing LVM volumes in a virtual machine to get a hang of it. And once the process is understood, it can be implemented on the main system.
Last edited by Keyboard Cowboy; 11-27-2014 at 07:03 PM.
jfs... because ibm is god and re-sizing your file system is heresy
Why is resizing your file-system heresy?
when I have set-up file-systems in Linux, AIX or HPUX I actually use LVM commands to create the PV (Physical Volume) followed by VG (Volume Group) then the LV (Logical Volume) and then an only then I create the file-system. Sure there are different but logical commands to do this in AIX but the concepts remain the same.
Depending on the requirements resizing a file-system is fairly easy under LVM and is supported by ext3, ext4, BtrFS, ZFS as well as JFS and VxFS. Of course it usually is better to have the logical volume and its file-system the right size to start with but on occasion it may be necessary to do a resize (shrinking is possible as well) such as the LV and file-system associated with a database needs to be increased in size and that I have seen quite a few times.
Increasing the volume size is very easy - but volumes sit on physical space which is finite!
I've come to the conclusion that data backup, delete volume, recreate reduced volume, restore data from the backup is the only reliable way of performing a reduction in volume size.
Increasing the volume size is very easy - but volumes sit on physical space which is finite!
I've come to the conclusion that data backup, delete volume, recreate reduced volume, restore data from the backup is the only reliable way of performing a reduction in volume size.
I agree that increasing the volume size is much easier as I stated. I haven't reduce any volumes thus far, but I do agree, it's wise to backup the data first before doing a volume reduction.
[QUOTE=donaldm;5276324]Why is resizing your file-system heresy?
Because the user had to find a good apology for his favourite filesystem not supporting it (well).
That's actually one of the reasons I never even tried jfs (lacking feature). (So I'm probably agnostic or even pagan to this user. )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.