1835421 Members
2427 Online
110078 Solutions
New Discussion

lvextend not working.

 
SOLVED
Go to solution
jerry1
Super Advisor

lvextend not working.

I increased a partition on a 10.20 box and
rebooted and the change did not take affect.

Ran:


lvdisplay -v /dev/vg00/lvol5

There were free extents. Used all of them.
lvdisplay shows lvol5 whould be 800 meg but
bdf still shows 480 meg total. I ran to extend:

lvextend -l 200 /dev/vg00/lvol5


/dev/vg00/lvol5 480341 417709 14597 97% /var


--- Logical volumes ---
LV Name /dev/vg00/lvol5
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 800
Current LE 200
Allocated PE 200
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: lvextend not working.

You extend the LV, but you didn't extend the filesystem.

Do you have online JFS installed? If so do the following:

# fsadm -b 800m /var
# bdf /var


If you don't have oline JFS you must reboot the machine, interrupt the boot at the 10 second prompt, and boot into single-user mode.

When in single-user mode:

# mount /usr
# extendfs /dev/vg00/rlvol5
# mount /var
# bdf /var

Now you should see the full size.
James R. Ferguson
Acclaimed Contributor

Re: lvextend not working.

Hi Jerry:

A filesystem (which is what 'bdf' examines) is contained *within* a logical volume (which is what you enlarged).

Having extented the container for the fileystem, you now need to enlarge the contents or filesystem.

Since you have an 800NB logical volume, you should now do:

# umount /dev/vg00/lvol5
# extendfs -F vxfs -v /dev/vg00/rlovl5
# mount /dev/vg00/lvol5 /var

You may need to boot into single user mode to unmount '/var'. Otherwise you can try 'fuser -ku '/var' to kill all processes using it. If you have OnlineJFS, used 'fsadm' to extend your filesystem without an unmount.

Regards!

...JRF...