# reducevg rootvg hdisk0
0516-016 ldeletepv: Cannot delete physical volume with allocated
partitions. Use either migratepv to move the partitions or
reducevg with the -d option to delete the partitions.
0516-884 reducevg: Unable to remove physical volume hdisk0.
这是因为 lg_dumplv在rootvg缺省情况下没有做镜像的原因,只创建在hdisk0上,现在要修改主dump目录为null(空目录)
# lslv -l lg_dumplv
lg_dumplv:N/A
PV COPIES IN BAND DISTRIBUTION
hdisk0 008:000:000 100% 000:008:000:000:000
# sysdumpdev -P -p /dev/sysdumpnull
primary /dev/sysdumpnull
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump FALSE
dump compression ON
type of dump traditional
从rootvg中删除hdisk0硬盘
# reducevg -d rootvg hdisk0
0516-914 rmlv: Warning, all data belonging to logical volume
lg_dumplv on physical volume hdisk0 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? yes
rmlv: Logical volume lg_dumplv is removed.
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 33 33 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 40 40 1 open/syncd /
hd2 jfs2 10 10 1 open/syncd /usr
hd9var jfs2 10 10 1 open/syncd /var
hd3 jfs2 20 20 1 open/syncd /tmp
hd1 jfs2 10 10 1 open/syncd /home
hd10opt jfs2 196 196 1 open/syncd /opt
hd11admin jfs2 10 10 1 open/syncd /admin
fwdump jfs2 3 3 1 open/syncd /var/adm/ras/platform
livedump jfs2 1 1 1 open/syncd /var/adm/ras/livedump
fslv00 jfs2 40 40 1 closed/syncd /u01
删除hdisk0硬盘
# rmdev -dl hdisk0
hdisk0 deleted
# lspv
hdisk1 00f45bd06cef0cfa rootvg active
hdisk2 none None
hdisk3 none None
hdisk4 none None
hdisk5 none None
hdisk6 none None
hdisk7 none None
hdisk8 none None
hdisk9 none None
hdisk10 none None
hdisk11 none None
hdiskpower0 none None
hdiskpower1 none None
hdiskpower2 none None
hdiskpower3 none None
hdiskpower4 none None
hdisk12 none None
hdisk13 none None
hdisk14 none None
hdisk15 none None
hdisk16 none None
hdisk17 none None
hdiskpower5 none None
hdiskpower6 none None
hdiskpower7 none None
hdisk18 none None
hdisk19 none None
hdisk20 none None
hdisk21 none None
hdisk22 none None
hdisk23 none None
hdiskpower8 none None
hdiskpower9 none None
hdiskpower10 none None