Re: LVM resize question (howto?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Red Hat 8.0 does not have ext2online by default so you must first unmount.

assuming ext2 or ext3
---------------------
umount /home
e2fsadm -L+1G /dev/Volume00/LogVol01
mount -a

The e2fsadm handles the lvextend and filesystem resize automatically.

Check out the latest lvm reference at http://tldp.org/HOWTO/LVM-HOWTO/

Matt.

Quoting Danial Howard <howadani@isu.edu>:

> Patrick wrote:
> [snip]
> > Any experts out there who can give me some pointers how
> > to do this?
> > 
> > 
> > Output from df:
> > Filesystem           1K-blocks      Used Available Use% Mounted on
> > /dev/Volume00/LogVol00
> >                        1007896    757808    198888  80% /
> > /dev/hda1               101089      9773     86097  11% /boot
> > /dev/Volume00/LogVol01
> >                       10079084   8708180    858904  92% /home
> > /dev/Volume00/LogVol06
> >                       10079084   2267924   7299160  24% /opt
> > none                    256988         0    256988   0% /dev/shm
> > /dev/Volume00/LogVol02
> >                        1007896     16528    940168   2% /tmp
> > /dev/Volume00/LogVol03
> >                       10079084   1926444   7640640  21% /usr
> > /dev/Volume00/LogVol05
> >                        1007896     16516    940180   2% /usr/local
> > /dev/Volume00/LogVol04
> >                        1007896    112276    844420  12% /var
> > 
> 
> Basically, you
> 1--extend the logical volume to the desired size
> 2--extend the filesystem to the desired size
> 
> Whether you can do this while the filesystem is mounted depends on the 
> tools you have.
> 
> 
> One way:
> 
> umount /home
> lvextend +2G /dev/Volume00/LogVol01
> e2fsck -f /dev/Volume00/LogVol01
> resize2fs -p /dev/Volume00/LogVol01
> mount /home
> 
> You might need to use e2fsadm instead of resize2fs. Read the man pages.
> 
> -- 
> Danial M. Howard--howadani at isu.edu--(208) 282-3097
> IT Systems Programmer, Computing and Communications
> Idaho State University, Pocatello, Idaho, USA
> 
> 
> 
> -- 
> Psyche-list mailing list
> Psyche-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/psyche-list
> 







[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux