Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Hi, I am testing new RHEL7 but as per manuals The XFS file system has no utility to shrink a file system. XFS file systems can be grown online via the xfs_growfs command. So how could I perform lvreduce command ? because it requires shrink the file system first.Please give advice on it.
Yes I have already searched this before posting. And I always try to find solution in google first before post here. If you read the docs of xfs faq you could also see this line "You can NOT make a XFS partition smaller online." (http://www.linuxquestions.org/questi...175510550/)And the official docs which I have followed is from redhat site and there has no solution at yet.You could find it here: https://access.redhat.com/documentat...de/ch-xfs.html
My simple question is there any options to lvreduce using xfs or not???
Also in this solution where I use lvreduce? besides we make a new file system on it and restore the data.We can do it in normal partition as well so what is the need for lvm?
Ok thanks for help me on this issue.
Same as after a resize2fs - you fix the filesystem up then reduce the lv.
The choice of LVM or not is yours, just like which filesystem you use - each has its own benefits/drawbacks. LVM has always been better when increasing space allocations - when first released it didn't even have a lvreduce command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.