免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4658 | 回复: 7
打印 上一主题 下一主题

请问如何删除rootvg中的hdisk1 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-29 21:42 |只看该作者 |倒序浏览
本帖最后由 juming1983 于 2010-03-29 23:36 编辑 \n\n我有一台B50,有两个硬盘,\r\nroot@ibmb50:/>lspv\r\nhdisk0          000d871d0005dd01                    rootvg          active\r\nhdisk1          000d871d0014be46                    rootvg          active\r\n\r\n我想删除rootvg中的hdisk1,但failed,请问各位大大该如何解决。\r\nroot@ibmb50:/>smit reducevg\r\n\r\nRemove a Physical Volume from a Volume Group\r\nType or select values in entry fields.\r\nPress Enter AFTER making all desired changes.\r\n                                                        [Entry Fields]\r\n* VOLUME GROUP name                                   rootvg\r\n* PHYSICAL VOLUME names                              [hdisk1]                +\r\n  FORCE deallocation of all partitions on             no                     +\r\n    this physical volume?\r\n\r\nCommand: failed        stdout: yes           stderr: no\r\nBefore command completion, additional instructions may appear below.\r\n0516-016 ldeletepv: Cannot delete physical volume with allocated\r\n        partitions. Use either migratepv to move the partitions or\r\n        reducevg with the -d option to delete the partitions.\r\n0516-884 reducevg: Unable to remove physical volume hdisk1.\r\n----------------------------------------------------------------------\r\nroot@ibmb50:/>reducevg -d rootvg hdisk1\r\n0516-914 rmlv: Warning, all data belonging to logical volume\r\n        hd9var on physical volume hdisk1 will be destroyed.\r\nrmlv: Do you wish to continue? y(es) n(o)? y\r\n0516-1008 rmlv: Logical volume hd9var must be closed.  If the logical\r\n        volume contains a filesystem, the umount command will close\r\n        the LV device.\r\n0516-884 reducevg: Unable to remove physical volume hdisk1.\r\nroot@ibmb50:/>lspv -l hdisk1\r\nhdisk1:\r\nLV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT\r\nhd3                   93    93    00..00..09..84..00    /tmp\r\nhd9var                1     1     00..00..01..00..00    /var\r\nhd1                   8     8     00..05..00..03..00    /home\r\n\r\n--------------------------------------------------------------\r\n解决方案:\r\n\r\n将hdisk1的数据复制到hdisk0\r\n\r\n Move Contents of a Physical Volume\r\n\r\nType or select values in entry fields.\r\nPress Enter AFTER making all desired changes.\r\n\r\n                                                        [Entry Fields]\r\n* SOURCE physical volume name                         hdisk0\r\n* DESTINATION physical volumes                       [hdisk1]                +\r\n  Move only data belonging to this                   []                      +\r\n    LOGICAL VOLUME?\r\n\r\nRemove a Physical Volume from a Volume Group\r\n\r\nType or select values in entry fields.\r\nPress Enter AFTER making all desired changes.\r\n\r\n                                                        [Entry Fields]\r\n* VOLUME GROUP name                                   rootvg\r\n* PHYSICAL VOLUME names                              [hdis10]                +\r\n  FORCE deallocation of all partitions on             no                     +\r\n    this physical volume?\r\n\r\nroot@ibmb50:/>lspv\r\nhdisk0          000d871d0005dd01                    rootvg          active\r\nhdisk1          000d871d0014be46                    None

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2010-03-29 23:05 |只看该作者
hdisk1上有lv的lp存在,所以不能reducevg

论坛徽章:
0
3 [报告]
发表于 2010-03-30 09:15 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
4 [报告]
发表于 2010-03-31 14:04 |只看该作者
不要执着的寻找如何删除hdisk1的方法,首先确定这种解决方案是否可行?\r\n1. hdisk0和hdisk1之间是什么关系,Mirror ?如果是mirror,需要先拆除mirror之后再reduce再删除。\r\n2. hdisk0和hdisk1之间如果不是mirror关系,确认hdisk1上是否有LV,尤其是系统LV。根据情况再到底在确定是否需要做LV迁移。需要确认确保系统不被crash能否这么做。

论坛徽章:
0
5 [报告]
发表于 2010-03-31 14:10 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
6 [报告]
发表于 2010-04-04 11:10 |只看该作者
lsvg -l rootvg 是否有mirror(hdisk0和hdisk1),有的话先卸载mirror,如果没有的话,看hdisk1里是否有lv还在,有的话umount掉,再做reducevg rootvg hdisk1,做以上这些工作时,要做好备份。

论坛徽章:
0
7 [报告]
发表于 2010-04-04 11:38 |只看该作者
root@ibmb50:/>lspv -l hdisk1\r\nhdisk1:\r\nLV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT\r\nhd3                   93    93    00..00..09..84..00    /tmp\r\nhd9var                1     1     00..00..01..00..00    /var\r\nhd1                   8     8     00..05..00..03..00    /home\r\n\r\n#migratepv -l hd3 hdisk1 hdisk0\r\n#migratepv -l hd9var hdisk1 hdisk0\r\n#migratepv -l hd1 hdisk1 hdisk0

论坛徽章:
0
8 [报告]
发表于 2010-04-04 11:39 |只看该作者
then\r\n#reducevg rootvg hdisk1
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP