- 论坛徽章:
- 0
|
误操作了,我该怎么恢复啊\r\n\r\n本想在测试机A上运行如下命令redefinevg -d hdisk0 hdisk4 hdisk5 rootvg,却因telnet 到另一台机器B上,在另一台机器B上运行了该命令,出问题了,我现在想恢复,欲把hdisk5 vg删除,可却不行\r\n# lsvg\r\nrootvg\r\nhdisk5\r\noraclevg\r\n\r\n# lsvg -o\r\noraclevg\r\nrootvg\r\n\r\n# lspv\r\nhdisk0 0008719e8866941d rootvg active\r\nhdisk1 0008719ec3a73d53 hdisk5\r\nhdisk2 0008719e57f8ebdb None\r\nhdisk3 0008719e57eda79c None\r\nhdisk4 003ba4ed5e8a3a30 None\r\n\r\n# lsvg -p rootvg\r\nrootvg:\r\nPV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION\r\nhdisk0 active 546 275 110..46..00..10..109\r\nhdisk1 active 546 299 10..08..63..109..109\r\n\r\n# lsvg -p hdisk5\r\nhdisk5:\r\nPV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION\r\nhdisk0 active 546 275 110..46..00..10..109\r\nhdisk1 active 546 299 10..08..63..109..109\r\n\r\n# lsvg -p oraclevg\r\n0516-304 : Unable to find device id 0008719e6150c3c2 in the Device\r\n Configuration Database.\r\noraclevg:\r\nPV ID PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION\r\n0008719e6150c3c2 active 469 68 00..00..00..00..68\r\n\r\n# lsdev -Cc disk\r\nhdisk0 Available 1Z-08-00-8,0 16 Bit LVD SCSI Disk Drive\r\nhdisk1 Available 1Z-08-00-9,0 16 Bit LVD SCSI Disk Drive\r\nhdisk2 Available 11-08-02 1722-600 (600) Disk Array Device\r\nhdisk3 Available 11-08-02 1722-600 (600) Disk Array Device\r\nhdisk4 Available 11-08-02 1722-600 (600) Disk Array Device\r\nhdisk6 Defined 11-08-02 1722-600 (600) Disk Array Device\r\n\r\nhdisk5本是oraclevg下的pv \r\n\r\n误操作过程\r\n912 man redefinevg\r\n913 redefinevg -d hdisk5 rootvg\r\n914 lsvg -p rootvg\r\n915 ifconfig -a\r\n916 redefinevg -d hdisk0 hdisk5 hdisk4 rootvg\r\n917 lsvg -p rootvg\r\n918 redefinevg -d hdisk0 rootvg\r\n919 lsvg -p rootvg\r\n\r\n测试机A的环境:\r\n# lspv\r\nhdisk0 000ccc7d703152a9 rootvg\r\nhdisk1 000ccc7dd62f0127 oravg\r\nhdisk2 000ccc7dd62f1417 oravg\r\nhdisk3 000ccc7dd62f17a9 oravg\r\nhdisk4 000ccc7de1b3d7ab rootvg\r\nhdisk5 000ccc7de5952514 rootvg\r\nhdisk6 000ccc7d48e00386 install |
|