1752319 Members
5977 Online
108786 Solutions
New Discussion юеВ

Re: LVM error

 
SOLVED
Go to solution
himacs
Super Advisor

LVM error

Hi Admins,

I have extended 64 MB LV to 100 MB.The same has been done with below error.


lvextend -L 100 /dev/vg00/lvname
Warning: rounding up logical volume size to extent boundary at size "112" MB.
Logical volume "/dev/vg00/lvname" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

lvdisplay tells the LV has been extended with new value ie, 112 MB

But when i mounted ,it shows the same old value..not extendde one..

what will be the issue..


Regards
himacs

7 REPLIES 7
James R. Ferguson
Acclaimed Contributor
Solution

Re: LVM error

Hi:

You can 'lvextend' the logical volume all day long, but until you expand/extend the _filesystem_ within you will not see your additional space when you mount the filesystem.

If you have OnlineJFS, you can 'fsadm' the filesystem online. Otherwise, unmount the filesystem and use 'extendfs'. See the manpages.

Regards!

...JRF...
Hakki Aydin Ucar
Honored Contributor

Re: LVM error

exactly what J R F says. I attached a real example , I extended /home directory/FS :

# lvextend -L 522 /dev/vg00/lvol4 /dev/dsk/c3t5d
Warning: rounding up logical volume size to extent boundary at size "528" MB.
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
# umount /home
# extendfs /dev/vg00/rlvol4
# mount /home
# bdf /home
Suraj K Sankari
Honored Contributor

Re: LVM error

Hi,
After lvextend you need to apply these command extendfs or fsadm .

see the example in man page of lvextend

Suraj
Asif Sharif
Honored Contributor

Re: LVM error

Hi himacs,

This is a warning that lvm will extend the lvol to the next multiple you specified in relation to the PE size. The default size of PE is 4MB.

You can extend mounted VxFS file systems using the fsadm command if onlineJFS is installed.

http://docs.hp.com/en/5971-4772/apas07.html

Regards,
Asif Sharif
Regards,
Asif Sharif
Md. Farhan A Azam
Trusted Contributor

Re: LVM error

Hi,

You need to extened the file system.

#/sbin/extendfs -F vxfs /dev/vg00/r{lvname}

example -
#/sbin/extendfs -F vxfs /dev/vg00/rlvol8

Ensure the filesystem now reports to be the new size

# bdf

thnx...farhan
himacs
Super Advisor

Re: LVM error

Hi Admins,

Thanx for ur support and sorry for this delayed reply.


Actually i missed that part-extendfs

The LV has been extended successfully.

m closing this thread.


regards
himacs
himacs
Super Advisor

Re: LVM error

Closin the thread