LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-09-2014, 03:18 AM   #1
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36

Rep: Reputation: 0
Question 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.
 
Old 07-09-2014, 05:27 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 07-09-2014, 06:29 AM   #3
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36

Original Poster
Rep: Reputation: 0
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???
 
Old 07-09-2014, 06:53 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by dipanjan View Post
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 ?.
 
Old 07-09-2014, 07:15 AM   #5
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36

Original Poster
Rep: Reputation: 0
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.
 
Old 07-09-2014, 07:54 AM   #6
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36

Original Poster
Rep: Reputation: 0
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.
 
Old 07-09-2014, 08:11 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
Old 07-09-2014, 09:15 AM   #8
dipanjan
Member
 
Registered: Jul 2008
Location: Calcutta, India
Distribution: redhat
Posts: 36

Original Poster
Rep: Reputation: 0
Yes that's true.Thank you once again.
 
  


Reply

Tags
xfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy resize2fs lvreduce lvextend with (or in connection with) a device mapper chiendarret Linux - Software 3 06-01-2014 04:27 PM
LVM lvreduce and vgreduce yosi Linux - Server 1 04-28-2014 10:50 AM
LVM lvreduce and lvextend azurtem Linux - Server 11 10-17-2013 01:13 PM
lvreduce/lvextend vs lvresize drManhattan Linux - Newbie 2 06-04-2012 01:03 AM
messed up an fs with lvreduce ic_torres Linux - Newbie 2 03-30-2009 04:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration