[root@hoge-str ~]# lvdisplay
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Couldn't find all physical volumes for volume group VolGroup00.
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Couldn't find all physical volumes for volume group VolGroup00.
Volume group "VolGroup00" not found
[root@hoge-str ~]# vgdisplay
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Couldn't find all physical volumes for volume group VolGroup00.
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Couldn't find all physical volumes for volume group VolGroup00.
Volume group "VolGroup00" doesn't exist
同じですな。
pv は1つだけ認識している。残した方だけ認識している。
[root@hoge-str ~]# pvdisplay
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
--- Physical volume ---
PV Name unknown device
VG Name VolGroup00
PV Size 233.75 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 59841
Free PE 0
Allocated PE 59841
PV UUID 7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L
--- Physical volume ---
PV Name /dev/sdb1
VG Name VolGroup00
PV Size 233.75 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 59841
Free PE 0
Allocated PE 59841
PV UUID 7SQ9Ju-dF8h-PBtE-Vsc5-Onao-9KvR-p08YSr
vg を削除する。
[root@hoge-str ~]# vgremove VolGroup00
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Couldn't find all physical volumes for volume group VolGroup00.
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Couldn't find all physical volumes for volume group VolGroup00.
Volume group "VolGroup00" not found or inconsistent.
Consider vgreduce --removemissing if metadata is inconsistent.
削除しようと試みるも『Volume group "VolGroup00" not found or inconsistent.(見つからない or 不整合)』
『vgreduce --removemissing』せよと言ってます。
[root@hoge-str ~]# vgreduce --removemissing VolGroup00
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Couldn't find all physical volumes for volume group VolGroup00.
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Couldn't find all physical volumes for volume group VolGroup00.
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Couldn't find device with uuid '7A3Ctp-mKsG-RCBh-GcF9-Ak2N-Myl8-EllY3L'.
Wrote out consistent volume group VolGroup00
[root@hoge-str ~]# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 233.75 GB
PE Size 4.00 MB
Total PE 59841
Alloc PE / Size 0 / 0
Free PE / Size 59841 / 233.75 GB
VG UUID 6cNVis-jrEL-x4Bl-jDDs-1tS4-Ckiq-B14os
※写真と本文は関係ありません。
何台かのSCSI ディスクで構成しているLVM、調子が悪そうなのを外して再構成しようとしたらエラー。(LVM 内のデータはいらないデータなので unount しただけ。)
そうだよなぁ。LV(Logical Volume)削除してないもんなぁ。
こんな感じでエラー。
pv(Physical Volume) がないと言っています。そうですね外しましたので…。
vg 内の pv がないので vg を認識しない。
vg(Volume Group)を見てみる。
同じですな。
pv は1つだけ認識している。残した方だけ認識している。
vg を削除する。
削除しようと試みるも『Volume group "VolGroup00" not found or inconsistent.(見つからない or 不整合)』
『vgreduce --removemissing』せよと言ってます。
削除出来た。
※ あとで調べたら。
# vgreduce --removemissing --test VolGroup00
として、uuid が間違いないかどうか確認してからのほうが間違いがない。
その後は vg が接続されている pv だけで構成されるので、lvcreate して fdisk して mk2fs して mount すると使えるようになる。
なんか楽しいことかきたいなぁ。