Operating System - Linux
1748285 Members
3719 Online
108761 Solutions
New Discussion юеВ

Re: Logical Volume Extend Issue

 
Jon Gomersall
Advisor

Logical Volume Extend Issue

I am getting problems resizing a logical volume with the following errors

lvresize -l+6900 /dev/vg02/mbbvlv
Extending logical volume mbbvlv to 420.59 GB
device-mapper: reload ioctl failed: Invalid argument
Failed to suspend mbbvlv


lvextend -L+200G /dev/vg02/mbbvlv
Extending logical volume mbbvlv to 404.97 GB
device-mapper: reload ioctl failed: Invalid argument
Failed to suspend mbbvlv

Other information about versions below :-

Red Hat Enterprise Linux AS release 4 (Nahant Update 4)

Linux ***************** 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 athlon i386 GNU/Linux


lvm version
LVM version: 2.02.06 (2006-05-12)
Library version: 1.02.07 (2006-05-11)
Driver version: 4.5.0


--- Volume group ---
VG Name vg02
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 11
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 3
Act PV 3
VG Size 421.59 GB
PE Size 32.00 MB
Total PE 13491
Alloc PE / Size 6559 / 204.97 GB
Free PE / Size 6932 / 216.62 GB
VG UUID l4DT1P-9eFZ-3EZS-wH0U-xQkD-lJZZ-IBPnTf
3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: Logical Volume Extend Issue

If this host is part of a cluster, run:

service clvmd restart did the trick

If not, probably you need a patch.

Can you add the -v option to increase the messages?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
TwoProc
Honored Contributor

Re: Logical Volume Extend Issue

I'm thinking three things - one of them is ugly.

The most obvious solution to try is a reboot - just incase some service or other has gotten out of whack. That's one.

The next is that you need a patch. Check to see what newer patch levels are available for lvm. Orrr - even your i/o card driver.

Lastly, I'm wondering if your file system is out to lunch on you. I believe there's a good chance your problem would go away if you backed up everything you've got, recreated your lvm structure, and restored.

I've seen it in on Linux boxes often enough, sometimes the file systems need a permanent vacation, so to speak. Of course, not as much as the Windows boxes, but certainly more than I've seen on HPUX.
We are the people our parents warned us about --Jimmy Buffett
Jon Gomersall
Advisor

Re: Logical Volume Extend Issue

I have found that if I add the physical device from the volume group it works

lvextend
-L+130G /dev/vg02/mbbvlv /dev/cciss/c0d1p3