免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4664 | 回复: 4
打印 上一主题 下一主题

V890上克隆磁盘(Edit by oldunix 有实际操作案例,step-by-step) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-25 08:48 |只看该作者 |倒序浏览
硬盘克隆目标   c1t0d0   ----->  c1t1d0

1、复制分区信息

prtvtoc /dev/rdsk/c1t1d0s2 |fmthard -s - /dev/rdsk/c1t1d0s2


2、如果有以前不成功的复制,执行如下,进行清除:

lucancel
lustatus
ludelete c1t1d0s2

3、执行如下克隆每个启动盘的分区

lucreate  -c  c1t0d0 \\
-m /:/dev/dsk/c1t1d0s0:ufs \\
-m -:/dev/dsk/c1t1d0s1:swap \\
-m /var:/dev/dsk/c1t1d0s3:ufs \\
-m /globaldevices:/dev/dsk/c1t1d0s4:ufs \\
-m /opt:/dev/dsk/c1t1d0s5:ufs \\
-m /users:/dev/dsk/c1t1d0s6:ufs \\
-n c1t1d0

-c  c1t0d0   源盘
-n  c1t1d0  目标盘
-m  目录:目标盘块设备分区:文件系统 或者  -:目标盘块设备交换分区:swap

4、克隆结束后,查看状态:


root@rac1 # lustatus
Boot Environment           Is       Active Active    Can    Copy      
Name                       Complete Now    On Reboot Delete Status   
-------------------------- -------- ------ --------- ------ ----------
c1t0d0                     yes      yes    yes       no     -         
c1t1d0                     yes      no     no        yes    -         



5、激活克隆盘


root@rac1 # luactivate c1t1d0


**********************************************************************

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@w5000cca004261389,0:a

3. Boot to the original boot environment by typing:

     boot

**********************************************************************

Activation of boot environment <c1t1d0> successful.
root@rac1 #

6、记录以上的信息,根据需要是否修改PROM,或者通过:

boot disk1
boot disk

来选择启动哪块硬盘

论坛徽章:
0
2 [报告]
发表于 2009-05-29 11:43 |只看该作者
好东东,,,不错,,,,谢谢

论坛徽章:
0
3 [报告]
发表于 2009-07-23 10:18 |只看该作者
好资料呀!学习...................

论坛徽章:
0
4 [报告]
发表于 2009-11-03 20:07 |只看该作者
我觉得clone能以最快的速度恢复系统。

论坛徽章:
1
19周年集字徽章-19
日期:2020-01-08 15:08:20
5 [报告]
发表于 2009-11-28 17:34 |只看该作者
学习了。。不错的文章。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP