Re: LVM resize question (howto?)

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

 



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





[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