LoginSignup
0
0

WARNING: VG datastore is missing PV と言われたら

Posted at

apt upgrade 時などに以下のエラーが出るようになった。datastore は私の環境の VG 名。

WARNING: Couldn't find device with uuid HDX23A-oxyB-XkEt-91fs-mDRO-POuX-tnpVG9.
WARNING: VG datastore is missing PV HDX23A-oxyB-XkEt-91fs-mDRO-POuX-tnpVG9 (last written to /dev/sda1).

以前ディスクを引っこ抜いて volume group から pv を削除し忘れたらしい。sudo vgreduce --removemissing --force で見つからない PV をすべて削除できる。

$ sudo vgreduce --removemissing datastore --force
  WARNING: Couldn't find device with uuid HDX23A-oxyB-XkEt-91fs-mDRO-POuX-tnpVG9.
  WARNING: VG datastore is missing PV HDX23A-oxyB-XkEt-91fs-mDRO-POuX-tnpVG9 (last written to [unknown]).
  WARNING: Couldn't find device with uuid HDX23A-oxyB-XkEt-91fs-mDRO-POuX-tnpVG9.
  WARNING: Removing partial LV datastore/02.
  WARNING: Couldn't find device with uuid HDX23A-oxyB-XkEt-91fs-mDRO-POuX-tnpVG9.
  Logical volume "02" successfully removed
  Wrote out consistent volume group datastore.

参照: https://serverfault.com/questions/319427/how-to-remove-bad-disk-from-lvm2-with-the-less-data-loss-on-other-pvs

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0