I recently resized an active volume. In preparation for resizing the
JFS file system, I unmounted the device and deactivated the volume (I
thought I remembered that being necessary), though it appears that I
needn't have according to the following instructions from
<a href="http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html" target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html</a>:<br>
<br>>Just like XFS the JFS file system must be mounted to be
resized and the mount-point is specified rather than the
device name. You need at least Version 1.0.21 of the
jfs-utils to do this.<br>><b><font color="#000000">#</font> mount -o remount,resize /home</b><br><br>So
I tried to mount the drive but failed, and since then have not been
able to activate the volume, resize the filesystem, or do anything
remotely useful.<br>
I've seen a lot of search results with similar symptoms (device-mapper:
reload ioctl failed: Invalid argument), but the solutions have all been
situation specific and I'm missing the general principal and the
specific application for this situation.<br>
I've included some information below, and would appreciate any help/pointers.<br><br>Thanks,<br>Phil<br><br># sudo lvchange -ay -v /dev/vg_share/lv_share<br> Using logical volume(s) on command line<br> Activating logical volume "lv_share"<br>
Found volume group "vg_share"<br> Creating vg_share-lv_share<br> Loading vg_share-lv_share table<br> device-mapper: reload ioctl failed: Invalid argument<br>------------------------------<div id="1eqe" class="ArwC7c ckChnd">
---------------------------------------------<br>
<br># dmesg | tail<br>[ 181.331807] /dev/vmnet: open called by PID 7002 (vmnet-dhcpd)<br>[ 181.331823] /dev/vmnet: port on hub 1 successfully opened<br>[ 181.336824] /dev/vmnet: open called by PID 7003 (vmnet-dhcpd)<br>
[ 181.336840] /dev/vmnet: port on hub 2 successfully opened<br>[ 186.907623] vmnet2: no IPv6 routers present<br>[ 187.107349] vmnet1: no IPv6 routers present<br>[ 187.571087] eth0: no IPv6 routers present<br>[ 595.959391] device-mapper: table: device 8:9 too small for target<br>
[ 595.959397] device-mapper: table: 254:7: linear: dm-linear: Device lookup failed<br>[ 595.959401] device-mapper: ioctl: error adding target to table<br>
---------------------------------------------------------------------------<br>
<br># sudo lvm lvs<br> LV VG Attr LSize Origin Snap% Move Log Copy% <br> lv_home vg_fs -wi-ao 14.00G <br> lv_opt vg_fs -wi-ao 6.00G <br>
lv_root vg_fs -wi-ao 1.00G <br> lv_usr vg_fs -wi-ao 10.00G <br> lv_var vg_fs -wi-ao 5.00G <br> lv_mythrec1 vg_mythtv -wi-ao 93.13G <br>
lv_mythrec2 vg_mythtv2 -wi-ao 143.06G <br> lv_share vg_share -wi-d- 144.00G <br>---------------------------------------------------------------------------<br><br># sudo vgdisplay -v /dev/vg_share<br>
Using volume group(s) on command line<br> Finding volume group "vg_share"<br> --- Volume group ---<br> VG Name vg_share<br> System ID <br> Format lvm2<br> Metadata Areas 3<br>
Metadata Sequence No 41<br> VG Access read/write<br> VG Status resizable<br> MAX LV 0<br> Cur LV 1<br> Open LV 0<br> Max PV 0<br>
Cur PV 3<br> Act PV 3<br> VG Size 186.36 GB<br> PE Size 4.00 MB<br> Total PE 47708<br> Alloc PE / Size 36864 / 144.00 GB<br> Free PE / Size 10844 / 42.36 GB<br>
VG UUID IpRQvV-EBVB-T32r-wuju-AL3M-9PEv-P0i0rz<br> <br> --- Logical volume ---<br> LV Name /dev/vg_share/lv_share<br> VG Name vg_share<br> LV UUID Mm4Vve-9AJc-Pr1u-6RnO-bzLs-m0js-q8bf3m<br>
LV Write Access read/write<br> LV Status available<br> # open 0<br> LV Size 144.00 GB<br> Current LE 36864<br> Segments 4<br> Allocation inherit<br>
Read ahead sectors 0<br> Block device 254:7<br> <br> --- Physical volumes ---<br> PV Name /dev/sda7 <br> PV UUID rWpPc9-wQGk-0V7W-CxO9-RYJo-dcOJ-emUerb<br> PV Status allocatable<br>
Total PE / Free PE 11921 / 10844<br> <br> PV Name /dev/sda8 <br> PV UUID fiKdbI-mGve-GYYi-4Lbn-Q3SR-3Nda-a9qQxW<br> PV Status allocatable<br> Total PE / Free PE 11921 / 0<br>
<br> PV Name /dev/sda9 <br> PV UUID MqYeap-DFiH-eNWM-nhfa-TXcw-5mCi-ClCXEg<br> PV Status allocatable<br> Total PE / Free PE 23866 / 0<br>---------------------------------------------------------------------------<br>
<br># sudo pvdisplay -v /dev/sda{7,8,9}<br> Using physical volume(s) on command line<br> --- Physical volume ---<br> PV Name /dev/sda7<br> VG Name vg_share<br> PV Size 46.57 GB / not usable 1.09 MB<br>
Allocatable yes <br> PE Size (KByte) 4096<br> Total PE 11921<br> Free PE 10844<br> Allocated PE 1077<br> PV UUID rWpPc9-wQGk-0V7W-CxO9-RYJo-dcOJ-emUerb<br>
<br> --- Physical volume ---<br> PV Name /dev/sda8<br> VG Name vg_share<br> PV Size 46.57 GB / not usable 1.09 MB<br> Allocatable yes (but full)<br> PE Size (KByte) 4096<br>
Total PE 11921<br> Free PE 0<br> Allocated PE 11921<br> PV UUID fiKdbI-mGve-GYYi-4Lbn-Q3SR-3Nda-a9qQxW<br> <br> --- Physical volume ---<br> PV Name /dev/sda9<br>
VG Name vg_share<br> PV Size 93.23 GB / not usable 357.00 KB<br> Allocatable yes (but full)<br> PE Size (KByte) 4096<br> Total PE 23866<br> Free PE 0<br>
Allocated PE 23866<br> PV UUID MqYeap-DFiH-eNWM-nhfa-TXcw-5mCi-ClCXEg<br>---------------------------------------------------------------------------</div>