3

I am on SLES10 and am trying to extend the size of /usr I did:

lvextend -L +5G /dev/vg00/vol03

which seemed to work. Now when I try to do:

resize2fs /dev/vg00/vol03 11G

I get:

an ... is mounted; can't resize a mounted filesystem

I also tried:

ext2online /dev/vg00/vol03 11G

which results in:

warning - device size 157...., specified 288.... error invalid argument: seeking to 11811155968

The host is an VMWARE SLES9 so I can't boot from CD and therefore can not unmount /usr

Please Help.

sysadmin1138
  • 135,853
macbert
  • 153

3 Answers3

4

Don't specify the size of the new partition when you run ext2online, just let it run and auto-detect.

You've probably specified a size that's slightly larger than the actual LV.

MikeyB
  • 40,079
1

Grab a linux boot CD like the Gparted live CD iso or the ubuntu desktop distro iso and resize your volume from there. You can mount the iso in the virtual cd-rom drive for your virtual machine.

moshen
  • 1,564
0

What happens with:

ext2online /dev/vg00/vol03
Not Now
  • 3,602