QNAPの作るLVMのボリュームの segment type というのが、通常のlvm2が扱えない 「thick」 または他のQNAPオリジナルのものになっているケースがあるようです。そのため通常のLinuxでは扱えないみたいでした。
QNAP公式フォーラムの2015年のスレッドに、以下のように 「thick」はQNAP独自拡張みたいという書き込みがあります。
Now I’m stuck with the vg1 not being activated due to the invalid “thick” segment type, which appears to be unique to QNAP, since there is no LVM documentation supporting such a segment type. Reviewed the segtype.h file in the lvm2 project found here: https://git.fedorahosted.org/cgit/lvm2.githttps://forum.qnap.com/viewtopic.php?t=93862#p448002
QNAP MD for RAID, and then uses a segment type, on LVM2, named tier_thin_pool. On top of all that, you’ll find an ext4 filesystem. This segment type was created by QNAP and never released to the public as the license GPLv2 demands.
https://forum.qnap.com/viewtopic.php?t=147495#p718385
First of all, it looks like “static volumes” use “traditional” LVM. Logical volume on a volume group of physical volumes. The limitation (I think it’s just QNAP’s, not LVM’s) is that there is only one volume per group of disks.
When storage pools are used, LVM is configured differently, in a way that allows thin or thick volumes to be created.
https://forum.qnap.com/viewtopic.php?t=102299#p460052
$ sudo apt install -y lvm2
$ sudo vgchange -ay
WARNING: Unrecognised segment type thick
WARNING: PV /dev/md1 in VG vg1 is using an old PV header, modify the VG to update.
Check of pool vg1/tp1 failed (status:1). Manual repair required!
Refusing activation of LV vg1/lv1 containing an unrecognised segment.
Having said that, the QNAP GPL tarball at http://sourceforge.net/projects/qosgpl/ contains all the relevant sources, so I was able to build a working recovery environment by compiling and installing QNAP’s kernel and LVM tools on a standard system.
https://forum.qnap.com/viewtopic.php?t=93862#p500354
コメント