[CentOS] resize lvm

Robert Nichols rnicholsNOSPAM at comcast.net
Sat May 7 13:47:00 UTC 2016


On 05/06/2016 01:42 PM, John R Pierce wrote:
> On 5/6/2016 11:39 AM, Wes James wrote:
>> file -s /dev/dm-0
>>
>>
>>
>> and it says XFS
>>
>>
>>
>> So would I use xfs_growfs?
>
> bingo!    xfs_growfs can be used with the file system online, I'm pretty
> sure resize2fs requires the file system to be offline (unmounted).

Online expansion of a filesystem is allowed by resize2fs. It is only for 
shrinking that being offline and running fsck is required.

xfs does not allow shrinking at all.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.




More information about the CentOS mailing list