Phillip Susi
2016-05-29 16:50:17 UTC
I upgraded last night to Ubuntu 16.04, and LVM has ( even when booting
back into 15.10 ) decided that two of my three physical volumes are
missing, but they are not:
***@faldara:~$ sudo pvs
PV VG Fmt Attr PSize PFree
/dev/md0 faldara lvm2 a-m 101.91g 58.91g
/dev/md1 faldara lvm2 a-m 1.69t 264.86g
/dev/sdb1 faldara lvm2 a-- 1.82t 1.81t
***@faldara:~$ sudo vgchange -ay
Refusing activation of partial LV faldara/Music. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/Videos. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/swap. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/trusty-old. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/vivid. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/pool0. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/xenial. Use
'--activationmode partial' to override.
6 logical volume(s) in volume group "faldara" now active
If I use --activationmode partial, then all volumes are correctly
mapped, with no missing extents:
***@faldara:~$ sudo dmsetup table faldara-vivid
0 44040192 linear 9:1 2468358144
44040192 24969216 linear 9:1 2996840448
69009408 14876672 linear 8:17 2048
***@faldara:~$ sudo dmsetup table faldara-xenial
0 83886080 linear 9:0 98304
How can it claim the pvs are missing, and then go ahead and use them?
Is there a way to manually clear the missing flag from the pv?
back into 15.10 ) decided that two of my three physical volumes are
missing, but they are not:
***@faldara:~$ sudo pvs
PV VG Fmt Attr PSize PFree
/dev/md0 faldara lvm2 a-m 101.91g 58.91g
/dev/md1 faldara lvm2 a-m 1.69t 264.86g
/dev/sdb1 faldara lvm2 a-- 1.82t 1.81t
***@faldara:~$ sudo vgchange -ay
Refusing activation of partial LV faldara/Music. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/Videos. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/swap. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/trusty-old. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/vivid. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/pool0. Use
'--activationmode partial' to override.
Refusing activation of partial LV faldara/xenial. Use
'--activationmode partial' to override.
6 logical volume(s) in volume group "faldara" now active
If I use --activationmode partial, then all volumes are correctly
mapped, with no missing extents:
***@faldara:~$ sudo dmsetup table faldara-vivid
0 44040192 linear 9:1 2468358144
44040192 24969216 linear 9:1 2996840448
69009408 14876672 linear 8:17 2048
***@faldara:~$ sudo dmsetup table faldara-xenial
0 83886080 linear 9:0 98304
How can it claim the pvs are missing, and then go ahead and use them?
Is there a way to manually clear the missing flag from the pv?