- 论坛徽章:
- 0
|
误操作了,我该怎么恢复啊
本想在测试机A上运行如下命令redefinevg -d hdisk0 hdisk4 hdisk5 rootvg,却因telnet 到另一台机器B上,在另一台机器B上运行了该命令,出问题了,我现在想恢复,欲把hdisk5 vg删除,可却不行
# lsvg
rootvg
hdisk5
oraclevg
# lsvg -o
oraclevg
rootvg
# lspv
hdisk0 0008719e8866941d rootvg active
hdisk1 0008719ec3a73d53 hdisk5
hdisk2 0008719e57f8ebdb None
hdisk3 0008719e57eda79c None
hdisk4 003ba4ed5e8a3a30 None
# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 546 275 110..46..00..10..109
hdisk1 active 546 299 10..08..63..109..109
# lsvg -p hdisk5
hdisk5:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 546 275 110..46..00..10..109
hdisk1 active 546 299 10..08..63..109..109
# lsvg -p oraclevg
0516-304 : Unable to find device id 0008719e6150c3c2 in the Device
Configuration Database.
oraclevg:
PV ID PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
0008719e6150c3c2 active 469 68 00..00..00..00..68
# lsdev -Cc disk
hdisk0 Available 1Z-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 1Z-08-00-9,0 16 Bit LVD SCSI Disk Drive
hdisk2 Available 11-08-02 1722-600 (600) Disk Array Device
hdisk3 Available 11-08-02 1722-600 (600) Disk Array Device
hdisk4 Available 11-08-02 1722-600 (600) Disk Array Device
hdisk6 Defined 11-08-02 1722-600 (600) Disk Array Device
hdisk5本是oraclevg下的pv
误操作过程
912 man redefinevg
913 redefinevg -d hdisk5 rootvg
914 lsvg -p rootvg
915 ifconfig -a
916 redefinevg -d hdisk0 hdisk5 hdisk4 rootvg
917 lsvg -p rootvg
918 redefinevg -d hdisk0 rootvg
919 lsvg -p rootvg
测试机A的环境:
# lspv
hdisk0 000ccc7d703152a9 rootvg
hdisk1 000ccc7dd62f0127 oravg
hdisk2 000ccc7dd62f1417 oravg
hdisk3 000ccc7dd62f17a9 oravg
hdisk4 000ccc7de1b3d7ab rootvg
hdisk5 000ccc7de5952514 rootvg
hdisk6 000ccc7d48e00386 install |
|