[LVM] volume group(VG) 삭제 안되는 문제 해결

반응형
반응형

 

VG를 삭제하려고 하는데 찾을 수 없는 PV들이 있어서 정상적으로 삭제가 되지 않음

[root@db-1 dev]# vgremove vg_1
  WARNING: Device for PV ADmbXc-e6Oj-NQDc-Qbz5-B0iJ-NKwY-meu6j9 not found or rejected by a filter.
  WARNING: Device for PV 2eN2R7-ppIp-BdKd-uM6Q-wgg1-tPkm-km0ytz not found or rejected by a filter.
  WARNING: Device for PV 0gAe8I-b56v-F8xG-49D6-e7fU-tUEL-cnZpe3 not found or rejected by a filter.
  WARNING: Device for PV yJn4Sj-E6Th-7mAe-0eeS-hxGy-MujS-5DjW76 not found or rejected by a filter.
  Couldn't find device with uuid ADmbXc-e6Oj-NQDc-Qbz5-B0iJ-NKwY-meu6j9.
  Couldn't find device with uuid 2eN2R7-ppIp-BdKd-uM6Q-wgg1-tPkm-km0ytz.
  Couldn't find device with uuid 0gAe8I-b56v-F8xG-49D6-e7fU-tUEL-cnZpe3.
  Couldn't find device with uuid yJn4Sj-E6Th-7mAe-0eeS-hxGy-MujS-5DjW76.
  Volume group "vg_1" not found, is inconsistent or has PVs missing.
  Consider vgreduce --removemissing if metadata is inconsistent.

 

- "vgreduce --removemissing" 명령어로 missing 된 물리볼륨(PV)들을 삭제

- 데이터를 복구하려면 절대 진행하면 안됨.

[root@db-1 dev]# vgreduce --removemissing vg_1
  WARNING: Device for PV ADmbXc-e6Oj-NQDc-Qbz5-B0iJ-NKwY-meu6j9 not found or rejected by a filter.
  WARNING: Device for PV 2eN2R7-ppIp-BdKd-uM6Q-wgg1-tPkm-km0ytz not found or rejected by a filter.
  WARNING: Device for PV 0gAe8I-b56v-F8xG-49D6-e7fU-tUEL-cnZpe3 not found or rejected by a filter.
  WARNING: Device for PV yJn4Sj-E6Th-7mAe-0eeS-hxGy-MujS-5DjW76 not found or rejected by a filter.
  Couldn't find device with uuid ADmbXc-e6Oj-NQDc-Qbz5-B0iJ-NKwY-meu6j9.
  Couldn't find device with uuid 2eN2R7-ppIp-BdKd-uM6Q-wgg1-tPkm-km0ytz.
  Couldn't find device with uuid 0gAe8I-b56v-F8xG-49D6-e7fU-tUEL-cnZpe3.
  Couldn't find device with uuid yJn4Sj-E6Th-7mAe-0eeS-hxGy-MujS-5DjW76.
  Wrote out consistent volume group vg_1.


다시 vgremove로 볼륨그룹 삭제

[root@db-1 dev]# vgremove vg_1
  Volume group "vg_1" successfully removed
반응형

댓글

Designed by JB FACTORY

loading