インストール:認識できない薄いセグメントタイプ

インストール:認識できない薄いセグメントタイプ

その結果、アップデート中にFedora Linuxシステムがクラッシュし、正しく起動できません。私はそれを使用していますシステム回復ディスクハードドライブの内容を回復してみてください。

手順に従ってくださいこの記事では、各コマンドに対応する出力とともに、次のようにしました。

まず、パーティションをリストします。

root@sysresccd /root % fdisk -l
Disk /dev/loop0: 338.5 MiB, 354885632 bytes, 693136 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x283f70c2

Device     Boot   Start        End   Sectors   Size Id Type
/dev/sda1  *       2048    1026047   1024000   500M 83 Linux
/dev/sda2       1026048 1000214527 999188480 476.5G 8e Linux LVM


Disk /dev/mapper/fedora-swap: 7.6 GiB, 8187281408 bytes, 15990784 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sdb: 7.5 GiB, 8076132352 bytes, 15773696 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x29ca9ce2

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1        2048 7641087 7639040  3.7G  b W95 FAT32

私が接近したいハードディスクがsda2にとってマウントしてみたいと思います。

root@sysresccd /root % mkdir /mnt/old
root@sysresccd /root % mount /dev/sda2 /mnt/old 
mount: unknown filesystem type 'LVM2_member'

そのため、ハードドライブがファイルシステムを認識しないため、マウントできません。

lvm2ツールを使用してディスクチェックを実行します。

root@sysresccd /root % lvmdiskscan
/dev/loop0              [     338.45 MiB] 
/dev/mapper/fedora-swap [       7.62 GiB] 
/dev/sda1               [     500.00 MiB] 
/dev/sda2               [     476.45 GiB] LVM physical volume
/dev/sdb1               [       3.64 GiB] 
1 disk
3 partitions
0 LVM physical volume whole disks
1 LVM physical volume

lvdisplayを使用して、論理ボリューム(LV)名とボリュームグループ(VG)名を取得します。

root@sysresccd /root % lvdisplay
WARNING: Unrecognised segment type thin-pool
WARNING: Unrecognised segment type thin
--- Logical volume ---
LV Path                /dev/fedora/pool00
LV Name                pool00
VG Name                fedora
LV UUID                Ye2FvY-Sx80-znoh-aYdi-Q5wM-e0W3-UPaQtA
LV Write Access        read/write
LV Creation host, time localhost, 2016-01-04 15:59:45 +0000
LV Status              NOT available
LV Size                452.82 GiB
Current LE             115922
Segments               1
Allocation             inherit
Read ahead sectors     auto

--- Logical volume ---
LV Path                /dev/fedora/root
LV Name                root
VG Name                fedora
LV UUID                DLcLQA-VcRn-u7fQ-sWaL-v9cY-M5EW-F3ZFuN
LV Write Access        read/write
LV Creation host, time localhost, 2016-01-04 15:59:46 +0000
LV Status              NOT available
LV Size                50.00 GiB
Current LE             12800
Segments               1
Allocation             inherit
Read ahead sectors     auto

--- Logical volume ---
LV Path                /dev/fedora/home
LV Name                home
VG Name                fedora
LV UUID                aTrVab-urfB-u0xU-zoit-PK8H-l5Sf-2MfaXV
LV Write Access        read/write
LV Creation host, time localhost, 2016-01-04 15:59:48 +0000
LV Status              NOT available
LV Size                402.82 GiB
Current LE             103122
Segments               1
Allocation             inherit
Read ahead sectors     auto

--- Logical volume ---
LV Path                /dev/fedora/swap
LV Name                swap
VG Name                fedora
LV UUID                MuFrai-TMdG-uiap-y7fh-5lhU-dYlL-cjjBAZ
LV Write Access        read/write
LV Creation host, time localhost, 2016-01-04 15:59:51 +0000
LV Status              available
# open                 0
LV Size                7.62 GiB
Current LE             1952
Segments               1
Allocation             inherit
Read ahead sectors     auto
- currently set to     256
Block device           253:0

vgdisplayコマンドも同様の情報を提供します

root@sysresccd /root % vgdisplay
WARNING: Unrecognised segment type thin-pool
WARNING: Unrecognised segment type thin
--- Volume group ---
VG Name               fedora
System ID             
Format                lvm2
Metadata Areas        1
Metadata Sequence No  9
VG Access             read/write
VG Status             resizable
MAX LV                0
Cur LV                4
Open LV               0
Max PV                0
Cur PV                1
Act PV                1
VG Size               476.45 GiB
PE Size               4.00 MiB
Total PE              121971
Alloc PE / Size       117932 / 460.67 GiB
Free  PE / Size       4039 / 15.78 GiB
VG UUID               WduLzz-NwqH-DXYy-8fQy-ojos-SDi4-EmmHs5

これで、LVネームパスを使用して新しいマウントを試みました。

root@sysresccd /root % mount /dev/fedora/home /mnt/old 
mount: special device /dev/fedora/home does not exist

それでもインストールを拒否します。

lvscanは論理ボリュームの状態を表示します

root@sysresccd /root % lvscan
WARNING: Unrecognised segment type thin-pool
WARNING: Unrecognised segment type thin
inactive          '/dev/fedora/pool00' [452.82 GiB] inherit
inactive          '/dev/fedora/root' [50.00 GiB] inherit
inactive          '/dev/fedora/home' [402.82 GiB] inherit
ACTIVE            '/dev/fedora/swap' [7.62 GiB] inherit

ご覧のとおり、まだ非アクティブでインストールされていません。また、認識できないセグメントタイプに関する2つの警告があります。

したがって、与えられた指示に進み、デバイスマッピングモジュールdm-modをカーネルに追加しても:

root@sysresccd /root % modprobe dm-mod

次に、ボリュームグループの属性を変更します。

root@sysresccd /root % vgchange -ay
WARNING: Unrecognised segment type thin-pool
WARNING: Unrecognised segment type thin
Refusing activation of LV pool00 containing an unrecognised segment.
Refusing activation of LV root containing an unrecognised segment.
Refusing activation of LV home containing an unrecognised segment.
1 logical volume(s) in volume group "fedora" now active

ただし、認識されていないセグメントは属性を変更せず、論理ボリュームを無効にしたままにします。

root@sysresccd /root % lvscan
WARNING: Unrecognised segment type thin-pool
WARNING: Unrecognised segment type thin
inactive          '/dev/fedora/pool00' [452.82 GiB] inherit
inactive          '/dev/fedora/root' [50.00 GiB] inherit
inactive          '/dev/fedora/home' [402.82 GiB] inherit
ACTIVE            '/dev/fedora/swap' [7.62 GiB] inherit

この文脈では、「シーン」と「シーンプール」が何を意味するのかわかりませんが、明らかに古いパーティションへのアクセスをブロックしています。

したがって、誰でも問題を発見できる場合は、解決策を教えてください。

ベストアンサー1

これは以前のバージョンのLVMで発生したバグのようです。別のフラグセットを使用してソースからコンパイルしてシンデバイスのサポートを追加すると、このバグを修正できます。あなたが言及したSystemRescueCDについては一度も試したことがないので言うことはできませんが、何らかの理由でこのバグがあるかもしれない以前のバージョンのLVMを使用している可能性があります。

Fedoraを実行していると述べた後、公式のFedora ISOイメージを起動してみましたか?ここからサーバーのバージョンを入手してください。https://getfedora.org/en/server/download/

利用可能なトラブルシューティングオプションがあるので、デスクトップバージョンではなくサーバーバージョンを使用することをお勧めします。

ISOイメージ(CD / DVDまたはUSBサムドライブ)から起動して回復モードを開始します。私がテストしたFedora Server ISOバージョン23は、意図的にファイルシステムを「壊した」テストシステムからLVMボリュームを読み取るのに問題がないようです。もちろん、マイレージは異なる場合があります。 :\

また、ここにあるシンプロビジョニングツールを使用して成功しました。https://github.com/jthornber/thin-provisioning-tools

Fedora ISOから起動した後、ツールをインストールするのに十分なコンピュータを起動するには、少しの作業が必要な場合があります。可能であれば、起動時に破損したマウントポイントをマウントしないでください。

おすすめ記事