1828642 Members
7161 Online
109983 Solutions
New Discussion

LVM

 
Pham Quoc Trung
Advisor

LVM

Hi,

I'm using SuSE8 with LVM. When I need to increase a filesystem's size of a Logical Volume, it's OK in the YaST. But when I check in the shell console, the filesystem's size still unchanges.

I need to remove the filesystem, and then create it again with a new size. It's unacceptable !

Please advice. Thanks
4 REPLIES 4
Kjartan Maraas
Valued Contributor

Re: LVM

According to the docs on LVM you need to do two things:

- use 'lvextend' to extend the logical volume to the desired size.

- then resize the filesystem to match the volume's new size. How this is done depends on the filesystem you're using.

http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/LVM-HOWTO.html#AEN586

Bruno Vidal
Respected Contributor

Re: LVM

Hi,
It is normal, don't make the confusion between LVM that is a volume manager: ie give access to an disk space (like whole disk, VxVm) and a file system that is a specific software layer to access files. So if you extend the logical volume, you then after need to extend your file system by using the right command. In your case it should be resize2fs.

Cheers.
Sunil Sharma_1
Honored Contributor

Re: LVM

Hi,

LVM is logical volume Manager not a File System Manager so when we use LVM related commands it work only up to volume levels and even after extending size by lvextend it won't take affect till you increase file system size using FS related commands like fsadm,vxresize for Veritas file systems, extendfs in HPUX HFS file system etc.

so just have a look what kind of file system you re using and use appropriate command
All above command preserve data during execution ....

Sunil S
*** Dream as if you'll live forever. Live as if you'll die today ***
Pham Quoc Trung
Advisor

Re: LVM

Thanks a lot