[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] trouble resizing / activating lvm volume



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 http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html:

>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.
># mount -o remount,resize /home

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.
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.
I've included some information below, and would appreciate any help/pointers.

Thanks,
Phil

# sudo lvchange -ay -v /dev/vg_share/lv_share
    Using logical volume(s) on command line
    Activating logical volume "lv_share"
    Found volume group "vg_share"
    Creating vg_share-lv_share
    Loading vg_share-lv_share table
  device-mapper: reload ioctl failed: Invalid argument
------------------------------
---------------------------------------------

# dmesg | tail
[  181.331807] /dev/vmnet: open called by PID 7002 (vmnet-dhcpd)
[  181.331823] /dev/vmnet: port on hub 1 successfully opened
[  181.336824] /dev/vmnet: open called by PID 7003 (vmnet-dhcpd)
[  181.336840] /dev/vmnet: port on hub 2 successfully opened
[  186.907623] vmnet2: no IPv6 routers present
[  187.107349] vmnet1: no IPv6 routers present
[  187.571087] eth0: no IPv6 routers present
[  595.959391] device-mapper: table: device 8:9 too small for target
[  595.959397] device-mapper: table: 254:7: linear: dm-linear: Device lookup failed
[  595.959401] device-mapper: ioctl: error adding target to table
---------------------------------------------------------------------------

# sudo lvm lvs
  LV          VG         Attr   LSize   Origin Snap%  Move Log Copy%
  lv_home     vg_fs      -wi-ao  14.00G                             
  lv_opt      vg_fs      -wi-ao   6.00G                             
  lv_root     vg_fs      -wi-ao   1.00G                             
  lv_usr      vg_fs      -wi-ao  10.00G                             
  lv_var      vg_fs      -wi-ao   5.00G                             
  lv_mythrec1 vg_mythtv  -wi-ao  93.13G                             
  lv_mythrec2 vg_mythtv2 -wi-ao 143.06G                             
  lv_share    vg_share   -wi-d- 144.00G   
---------------------------------------------------------------------------

# sudo vgdisplay -v /dev/vg_share
    Using volume group(s) on command line
    Finding volume group "vg_share"
  --- Volume group ---
  VG Name               vg_share
  System ID            
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  41
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               186.36 GB
  PE Size               4.00 MB
  Total PE              47708
  Alloc PE / Size       36864 / 144.00 GB
  Free  PE / Size       10844 / 42.36 GB
  VG UUID               IpRQvV-EBVB-T32r-wuju-AL3M-9PEv-P0i0rz
  
  --- Logical volume ---
  LV Name                /dev/vg_share/lv_share
  VG Name                vg_share
  LV UUID                Mm4Vve-9AJc-Pr1u-6RnO-bzLs-m0js-q8bf3m
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                144.00 GB
  Current LE             36864
  Segments               4
  Allocation             inherit
  Read ahead sectors     0
  Block device           254:7
  
  --- Physical volumes ---
  PV Name               /dev/sda7    
  PV UUID               rWpPc9-wQGk-0V7W-CxO9-RYJo-dcOJ-emUerb
  PV Status             allocatable
  Total PE / Free PE    11921 / 10844
  
  PV Name               /dev/sda8    
  PV UUID               fiKdbI-mGve-GYYi-4Lbn-Q3SR-3Nda-a9qQxW
  PV Status             allocatable
  Total PE / Free PE    11921 / 0
  
  PV Name               /dev/sda9    
  PV UUID               MqYeap-DFiH-eNWM-nhfa-TXcw-5mCi-ClCXEg
  PV Status             allocatable
  Total PE / Free PE    23866 / 0
---------------------------------------------------------------------------

# sudo pvdisplay -v /dev/sda{7,8,9}
    Using physical volume(s) on command line
  --- Physical volume ---
  PV Name               /dev/sda7
  VG Name               vg_share
  PV Size               46.57 GB / not usable 1.09 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              11921
  Free PE               10844
  Allocated PE          1077
  PV UUID               rWpPc9-wQGk-0V7W-CxO9-RYJo-dcOJ-emUerb
  
  --- Physical volume ---
  PV Name               /dev/sda8
  VG Name               vg_share
  PV Size               46.57 GB / not usable 1.09 MB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              11921
  Free PE               0
  Allocated PE          11921
  PV UUID               fiKdbI-mGve-GYYi-4Lbn-Q3SR-3Nda-a9qQxW
  
  --- Physical volume ---
  PV Name               /dev/sda9
  VG Name               vg_share
  PV Size               93.23 GB / not usable 357.00 KB
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              23866
  Free PE               0
  Allocated PE          23866
  PV UUID               MqYeap-DFiH-eNWM-nhfa-TXcw-5mCi-ClCXEg
---------------------------------------------------------------------------

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]