You are not logged in.

#1 2016-10-20 07:40:56

ryant0000
Member
Registered: 2016-10-20
Posts: 1

Mirrored LVM Failing on kernel update

My mirrored lvm array failed to mount on reboot. dmesg shows

device-mapper: ioctl: error adding target to table

lvdisplay shows

--- Logical volume ---
  LV Path                /dev/vol/fast
  LV Name                fast
  VG Name                vol
  LV UUID                b2Ty2h-xt2t-Djcs-lkgi-0iPB-4muX-Zm0SGr
  LV Write Access        read/write
  LV Creation host, time archdell, 2016-08-13 00:27:39 -0500
  LV Status              NOT available
  LV Size                2.95 TiB
  Current LE             774620
  Mirrored volumes       2
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

The relevant bit being LV Status
vgdisplay shows

--- Volume group ---
  VG Name               vol
  System ID
  Format                lvm2
  Metadata Areas        5
  Metadata Sequence No  68
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                5
  Act PV                5
  VG Size               6.37 TiB
  PE Size               4.00 MiB
  Total PE              1668736
  Alloc PE / Size       1549242 / 5.91 TiB
  Free  PE / Size       119494 / 466.77 GiB
  VG UUID               TCZiTc-vAT9-48ty-tn0L-NaUG-Q0uq-K0PEOa

The extra space is not an error, my mirrored disks just aren't the same size. Max LV is set to 0. The volume does not show up in /dev at all. Attempting to activate the volume with

vgchange -ay vol

gives

device-mapper: reload ioctl on (254:4) failed: Invalid argument
  0 logical volume(s) in volume group "vol" now active

During my googling to solve the issue I found https://bugs.launchpad.net/ubuntu/+sour … ug/1631298
After downgrading the kernel and rebooting the volume automatically mounts just fine.

Offline

Board footer

Powered by FluxBB