免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-05-28 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-04 06:22 |只看该作者 |倒序浏览
V890上克隆磁盘
转载请注明Oldunix

很久以前写过一个克隆磁盘的帖子 http://bbs.chinaunix.net/viewthread.php?tid=136216&extra=

这是SCSI时代的技术,用在FC时代有点勉为其难了!

昨天参考论坛文章,http://bbs.chinaunix.net/thread-951614-1-1.html 在V890上做了一次。增加了一项解决不成功克隆后的处理方法。

下面是整个过程:

硬盘克隆目标   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

来选择启动哪块硬盘

[ 本帖最后由 oldunix 于 2008-6-4 17:32 编辑 ]

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-05-28 06:20:00
2 [报告]
发表于 2008-06-04 06:54 |只看该作者
占座!

论坛徽章:
0
3 [报告]
发表于 2008-06-04 08:48 |只看该作者
不错,学习一下

论坛徽章:
0
4 [报告]
发表于 2008-06-04 09:03 |只看该作者
好,一直没有搞清楚LU的用法,这回一看就差不多了

论坛徽章:
0
5 [报告]
发表于 2008-06-04 09:11 |只看该作者

论坛徽章:
0
6 [报告]
发表于 2008-06-04 09:23 |只看该作者
又学习新的克隆盘方法

论坛徽章:
0
7 [报告]
发表于 2008-08-31 23:16 |只看该作者
好贴子,别让沉了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP