Удаляем диск вместе с LV.
- Смотрим какой VG использует этот диск
lspv
hdisk4 00f6c06229d05551 rootvg active
hdisk6 00f6c0627a620f85 rootvg active
hdisk7 00f6c0622a2896d8 MY_VG active
- Смотрим какие LV находится на этом VG
lsvg -l MY_VG
MY_VG:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
MY_LV_ONE jfs2log 1 1 1 closed/syncd N/A
MY_LV_TWO jfs2 638 638 1 closed/syncd /my_mount_point
- Удаляем все LV
rmlv MY_LV_TWO
Warning, all data contained on logical volume MY_LV_TWO will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? y
rmlv: Logical volume MY_LV_TWO is removed.
rmlv MY_LV_ONE
Warning, all data contained on logical volume MY_LV_ONE will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? y
rmlv: Logical volume MY_LV_ONE is removed.
- Деактивизируем VG
varyoffvg MY_VG
lspv
hdisk4 00f6c06229d05551 rootvg active
hdisk6 00f6c0627a620f85 rootvg active
hdisk7 00f6c0622a2896d8 MY_VG
- Отключаем VG
exportvg MY_VG
lspv
hdisk4 00f6c06229d05551 rootvg active
hdisk6 00f6c0627a620f85 rootvg active
hdisk7 00f6c0622a2896d8 None
- Удаляем диск
rmdev -l hdisk7 -d
hdisk7 Defined
lspv
hdisk4 00f6c06229d05551 rootvg active
hdisk6 00f6c0627a620f85 rootvg active
lsdev | grep hdisk7