aix 下删除一个卷组vg

公司今天要删除一个asm磁盘组,这个磁盘组对应的卷组也要被删掉,释放硬盘空间。处理如下:删除datavg卷组

# lsvg -l datavg
datavg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
lv_asm              jfs        2400    2400    2    closed/syncd  N/A
# lspv           
hdisk0          0006c86a0451ed0f                    rootvg          active
hdisk1          000e5e0cb4179dce                    dsgvg           active
hdisk2          000e5e0cb3d4c86c                    dsgvg           active
hdisk3          000e5e0cb3d53940                    datavg2         active
hdisk4          000e5e0cb3d59d35                    datavg          active
hdisk5          000e5e0cb3d5f310                    datavg          active
hdisk6          000e5e0cb3d656b6                    datavg          active
hdisk7          000e5e0cb3d6b725                    datavg2         active
hdisk8          000e5e0cb3eca697                    rootvg          active
# reducevg datavg hdisk4
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 hdisk4.
# reducevg -d datavg hdisk4
0516-914 rmlv: Warning, all data belonging to logical volume
        lv_asm on physical volume hdisk4 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? y
#
#
# lspv
hdisk0          0006c86a0451ed0f                    rootvg          active
hdisk1          000e5e0cb4179dce                    dsgvg           active
hdisk2          000e5e0cb3d4c86c                    dsgvg           active
hdisk3          000e5e0cb3d53940                    datavg2         active
hdisk4          000e5e0cb3d59d35                    None           
hdisk5          000e5e0cb3d5f310                    datavg          active
hdisk6          000e5e0cb3d656b6                    datavg          active
hdisk7          000e5e0cb3d6b725                    datavg2         active
hdisk8          000e5e0cb3eca697                    rootvg          active
# reducevg -d datavg hdisk5
0516-914 rmlv: Warning, all data belonging to logical volume
        lv_asm on physical volume hdisk5 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? y
rmlv: Logical volume lv_asm is removed.
# reducevg -d datavg hdisk6
ldeletepv: Volume Group deleted since it contains no physical volumes.
#
#
# lsvg
rootvg
dsgvg
datavg2

已经被删除
# lspv
hdisk0          0006c86a0451ed0f                    rootvg          active
hdisk1          000e5e0cb4179dce                    dsgvg           active
hdisk2          000e5e0cb3d4c86c                    dsgvg           active
hdisk3          000e5e0cb3d53940                    datavg2         active
hdisk4          000e5e0cb3d59d35                    None           
hdisk5          000e5e0cb3d5f310                    None           
hdisk6          000e5e0cb3d656b6                    None           
hdisk7          000e5e0cb3d6b725                    datavg2         active
hdisk8          000e5e0cb3eca697                    rootvg          active
#

总结:AIX中没有删除VG的命令,欲删除一个VG,只要将此VG中的PV全部移除即可

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23062014/viewspace-717926/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23062014/viewspace-717926/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值