M
M
Megabyte882018-07-24 09:39:33
LVM
Megabyte88, 2018-07-24 09:39:33

LVM thin pool is not activated what to do?

Hello. There was a thunderstorm, the server under Ubuntu 16.04 turned off despite the UPS. On the server, the exchange folder (/srv/data) is under samba. /srv/data mounts the thin volume vg/thinpool/data from LVM.
After a thunderstorm, the volume group (vg) and the volume (data) in particular stopped being activated. I tried lvconvert --repair vg/thinpool didn't help, I tried to restore the meta via vgcfrestore, the effect is the same. The data section is very necessary, there are no backups. I call on the LVM gurus, I enclose the exhaust:

spoiler
lvchange -aey vg
device-mapper: resume ioctl on (252:2) failed: Invalid argument
Unable to resume vg-thinpool-tpool (252:2)
device-mapper: resume ioctl on (252:2) failed: Invalid argument
Unable to resume vg-thinpool-tpool (252:2)

spoiler
lvscan
inactive '/dev/vg/thinpool' [1.79 TiB] inherit
inactive '/dev/vg/data' [950.00 GiB] inherit

spoiler
lvs -a
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data vg Vwi---tz-- 950.00g thinpool
[lvol0_pmspare] vg ewi------- 16.00g
thinpool vg twi---tz-- 1.79t
[thinpool_tdata] vg Twi-a----- 1.79t
[thinpool_tmeta] vg ewi-ao---- 16.00g

spoiler
lvconvert --repair vg/thinpool
truncating metadata device to 4161600 4k blocks
Transaction id 6469 from pool "vg/thinpool" does not match repaired transaction id 6468 from /dev/mapper/vg-lvol0_pmspare.
Volume group "vg" has insufficient free space (229 extents): 4096 required.
WARNING: If everything works, remove "vg/thinpool_meta0".
WARNING: Use pvmove command to move "vg/thinpool_tmeta" on the best fitting PV.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question