On May 06, 2016, at 12:29 PM, John R Pierce <pierce at hogranch.com> wrote: On 5/6/2016 11:19 AM, Wes James wrote: sudo resize2fs /dev/lvname/root I get: resize2fs: Bad magic number in super-block while trying to open /dev/lvname/root Couldn't find valid filesystem superblock. what file system type is this /dev/lvname/root ? I tried to find the type from blkid /dev/sda4 but that didn't give me the info so I tried file -s /dev/dm-0 and it says XFS So would I use xfs_growfs? ? -- john r pierce, recycling bits in santa cruz _______________________________________________ CentOS mailing list CentOS at centos.org https://lists.centos.org/mailman/listinfo/centos
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). -- john r pierce, recycling bits in santa cruz
On Fri, May 06, 2016 at 11:42:18AM -0700, 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).Sorry, I missed that it would most likely be xfs. resize2fs doesn't necessarily require it to be offline, but it does frequently (though not always, IIRC), suggest running e2fsk first which should definitely be done while it's unmounted. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
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.