[CentOS] is it safe to resize root, on an LVM system, online?

Mon Jul 12 21:07:04 UTC 2010
Keith Keller <kkeller at wombat.san-francisco.ca.us>

On Mon, Jul 12, 2010 at 01:56:57PM -0700, Gordon Messmer wrote:
> On 07/12/2010 05:15 AM, Max Hetrick wrote:
> > There should be no issues doing it live.
> >
> > # lvextend -L+1G /dev/myvg/myvol
> > # resize2fs /dev/myvg/myvol
> >    
> Though I'm late to the party, I'd like to note that "fsadm" can be used 
> as well:
> fsadm -e -y resize /dev/myvg/myvol 4G

If I'm reading the man page correctly, -e will umount the filesystem
before resizing, which is not what the OP wants.  (It might work by
leaving out -e.)


kkeller at wombat.san-francisco.ca.us

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20100712/08a32bf1/attachment-0003.sig>