Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-09-2014, 03:18 AM
|
#1
|
Member
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36
Rep:
|
lvreduce on RHEL 7
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.
|
|
|
07-09-2014, 05:27 AM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,362
|
And what do those same manuals suggest you do to achieve the same effect ?.
A quick search would no doubt get you to the XFS_FAQ.
|
|
|
07-09-2014, 06:29 AM
|
#3
|
Member
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36
Original Poster
Rep:
|
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???
|
|
|
07-09-2014, 06:53 AM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,362
|
Quote:
Originally Posted by dipanjan
If you read the docs of xfs faq you could also see this line "You can NOT make a XFS partition smaller online."
|
And the very next sentence is ?.
|
|
|
07-09-2014, 07:15 AM
|
#5
|
Member
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36
Original Poster
Rep:
|
Is it not painful and time taking to dump 4TB of data another place and restore it again? We could easily did using resize2fs in ext4.
|
|
|
07-09-2014, 07:54 AM
|
#6
|
Member
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36
Original Poster
Rep:
|
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.
|
|
|
07-09-2014, 08:11 AM
|
#7
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,362
|
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.
|
|
1 members found this post helpful.
|
07-09-2014, 09:15 AM
|
#8
|
Member
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36
Original Poster
Rep:
|
Yes that's true.Thank you once again.
|
|
|
All times are GMT -5. The time now is 07:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|