利用lucreate克隆V880的系統盤詳細過程
1、將目標盤的分區信息設置與原系統一樣(目標c0t1d0s2);
root@v880-2 # prtvtoc /dev/rdsk/c0t0d0s2 |fmthard -s - /dev/rdsk/c0t1d0s2
2、執行復制
root@v880-2 # lucreate -c S10_org -m /:/dev/dsk/c0t1d0s0:ufs -m -:/dev/dsk/c0t1d0s1:swap \
root@v880-2 >-m /globaldevices:/dev/dsk/c0t1d0s5:ufs \
root@v880-2 > -n BE_new
解釋:m 是mountpoint 具體看man lucreate
3、查看復制是否完整
root@v880-2 # lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
S10_org yes yes yes no -
BE_new yes no no yes -
檢查Is Complete列下的目標盤項是不是為yes,如不是則表明復制沒有完成或不完整,其它項請查看man lustatus
4、激活目標盤,測試是否可以啟動
root@v880-2 # luactivate BE_new
**********************************************************************
The target boot environment has been activated. It will be used when you
reboot. NOTE: You MUST NOT USE the reboot, halt, or uadmin commands. You
MUST USE either the init or the shutdown command when you reboot. If you
do not use either init or shutdown, the system will not boot using the
target BE.
**********************************************************************
In case of a failure while booting to the target BE, the following process
needs to be followed to fallback to the currently working boot environment:
1. Enter the PROM monitor (ok prompt).
2. Change the boot device back to the original boot environment by typing:
setenv boot-device
/pci@8,600000/SUNW,qlc@2/fp@0,0/disk@w21000000876c1c54,0:a
3. Boot to the original boot environment by typing:
boot
**********************************************************************
Activation of boot environment <BE_new> successful.
5、用命令啟動服務器(注意不能用reboot, halt, or uadmin命令重啟)
root@v880-2 # init 6
6、檢查是否從目標盤啟動(與format輸出比較)
root@v880-2 # prtpicl -v |grep bootpath
以上步驟在V880上操作成功完成.
- 上一篇:關于NFS的詳細描述 2017/5/17
- 下一篇:沒有啦