存储 频道

利用lucreate克隆V880的系统盘详细过程

今天有同事重装了V880+S10,重新克隆了系统盘,建议先升级OS kernel patch到最新版本.

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上操作成功完成.


0
相关文章