- 论坛徽章:
- 0
|
本帖最后由 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 |
|