Chinaunix

标题: 光纤硬盘的DD及镜像,讨论一下。 [打印本页]

作者: solarissystem    时间: 2003-10-28 21:03
提示: 作者被禁止或删除 内容自动屏蔽
作者: gang5415    时间: 2003-10-28 21:36
提示: 作者被禁止或删除 内容自动屏蔽
作者: solarissystem    时间: 2003-10-28 21:44
提示: 作者被禁止或删除 内容自动屏蔽
作者: solarissystem    时间: 2003-10-28 21:48
提示: 作者被禁止或删除 内容自动屏蔽
作者: milan    时间: 2003-10-29 09:26
标题: 光纤硬盘的DD及镜像,讨论一下。
FC的硬盘没做过,是不是还得加个installboot
作者: diag    时间: 2003-10-29 09:27
标题: 光纤硬盘的DD及镜像,讨论一下。
edit vfstab ..

OK >; BOOT DISK
作者: billwang    时间: 2003-10-29 10:29
标题: 光纤硬盘的DD及镜像,讨论一下。
我来说一下:
首先dd完成后,将目标盘mount,并将目标盘上的一个文件path_to_inst删除。
然后将目标盘放入启动盘位置(这样就不需要改vfatab),使用boot -ai来进行引导并重建path_to_inst
作者: solarissystem    时间: 2003-10-29 10:31
提示: 作者被禁止或删除 内容自动屏蔽
作者: 南非蜘蛛    时间: 2003-10-29 10:31
标题: 光纤硬盘的DD及镜像,讨论一下。
以前讨论过,据说可以

但是都不推荐
作者: procrus    时间: 2003-10-29 10:45
标题: 光纤硬盘的DD及镜像,讨论一下。
直接dd就可以了
作者: solarissystem    时间: 2003-10-29 10:48
提示: 作者被禁止或删除 内容自动屏蔽
作者: solarissystem    时间: 2003-10-29 10:51
提示: 作者被禁止或删除 内容自动屏蔽
作者: race    时间: 2003-10-29 10:59
标题: 光纤硬盘的DD及镜像,讨论一下。
20-80那本书上说了不建议dd克隆用在FC-AL盘上
作者: solarissystem    时间: 2003-10-29 11:17
提示: 作者被禁止或删除 内容自动屏蔽
作者: race    时间: 2003-10-29 11:25
标题: 光纤硬盘的DD及镜像,讨论一下。
直接把原盘拔下来,把新盘换上去,OK>;boot -r
作者: race    时间: 2003-10-29 11:28
标题: 光纤硬盘的DD及镜像,讨论一下。
克隆还有别的方法,可以去参考
http://chinaunix.net/jh/6/108308.html

http://chinaunix.net/jh/6/97610.html
作者: sbxu    时间: 2003-10-29 12:03
标题: 光纤硬盘的DD及镜像,讨论一下。
SRDB ID: 17643

SYNOPSIS: Recovering from a failed FCAL boot disk

DETAIL DESCRIPTION:

A host that boots from a non-mirrored FCAL disk (either an A5000 or the E3500

internal disks) will have to overcome the hard-coded World Wide Number (WWN)

that each of these disks uses as an integral part of their device path.



On failure of the boot disk the systems administrator must ensure that this

WWN is correctly updated throughout the system to ensure it will reboot.



SOLUTION SUMMARY:

Procedure :



1) The boot disk fails and is replaced by another disk with a different

   WWN.



2) Boot the system into single user from the cdrom or network.



3) Label the replacement disk to match the slices from the failed one.



4) Create filesystems on all the slices to be restored.



5) Mount the root filesystem and restore the data from backups.



6) Install the boot block onto the recovered root slice using the

   "installboot" command.



7) With root mounted under "/a" run the following commands to re-build

   the devices tree :



   drvconfig -r /a/devices -p /a/etc/path_to_inst



   cd /devices

   find . -print | cpio -pduVm /a/devices



   disks -r /a

   devlinks -r /a



NOTE: It is currently necessary to use both "drvconfig" and "find | cpio" due

to bugid 4161768, drvconfig does not work properly with socal disks.



Configure the "boot-device" parameter in the EEPROM using the

   "luxadm set_boot_dev /dev/dsk/{root slice entry}" command.



9) Restore the other filesystems on that disk, or comment out the

   entries for them from /a/etc/vfstab. At least you must have all the

   Solaris filesystems (root, /var, /usr, /opt, etc.) recovered.



10) Reboot the system from the recovered disk.
作者: solarissystem    时间: 2003-10-29 18:36
提示: 作者被禁止或删除 内容自动屏蔽
作者: xzh2002    时间: 2003-10-29 22:27
标题: 光纤硬盘的DD及镜像,讨论一下。
光纤的带宽是多少?
作者: iamark    时间: 2003-10-29 23:59
标题: 光纤硬盘的DD及镜像,讨论一下。
原帖由 "sbxu" 发表:
SRDB ID: 17643

SYNOPSIS: Recovering from a failed FCAL boot disk

DETAIL DESCRIPTION:

A host that boots from a non-mirrored FCAL disk (either an A5000 or the E3500

internal disks) will h..........

楼上的正解,就是这样的,俺试过的。
作者: solarissystem    时间: 2003-10-30 10:19
提示: 作者被禁止或删除 内容自动屏蔽
作者: iricyan    时间: 2003-11-06 00:40
标题: 光纤硬盘的DD及镜像,讨论一下。
或者是修改ok下的devalias也可以,fc的硬盘信息记录在了prom里面。
换了盘,wwn也就换了,是起不来的。
作者: cookiwu    时间: 2003-11-06 09:32
标题: 光纤硬盘的DD及镜像,讨论一下。
原帖由 "solarissystem" 发表:
sbxu;iamark你好,你的意思是我做完DD后、换位、用BOOT CDROM -S启动后,挂上DD的那个从盘、接下来只要做以下几部就可以了吗?其它还要做什么吗?谢谢请回复我。
drvconfig -r /a/devices -p /a/etc/path_to_inst
..........


你可以在做完以上几步后这样确认有没有正确的完成:
boot cdrom -s
mount /dev/dsk/c0t0d0s0(启动分区) /mnt
cd /mnt/dev/dsk
ls -l c0t0d0s0
看看链接指向的硬盘的wwn号有没改变。
接下来的事就是改改boot-device了
作者: njdexp    时间: 2003-11-06 09:54
标题: 光纤硬盘的DD及镜像,讨论一下。
我觉得它与SCSI硬盘不一样的,不是这样简单的换一下的,因为光纤的硬盘的确有个WWN的号的问题,那么它的物理地址也就不一样。
作者: iamark    时间: 2003-11-06 11:27
标题: 光纤硬盘的DD及镜像,讨论一下。
原帖由 "solarissystem" 发表:
sbxu;iamark你好,你的意思是我做完DD后、换位、用BOOT CDROM -S启动后,挂上DD的那个从盘、接下来只要做以下几部就可以了吗?其它还要做什么吗?谢谢请回复我。
drvconfig -r /a/devices -p /a/etc/path_to_inst
..........

就是这样
作者: wuzhengok    时间: 2003-11-06 11:47
标题: 光纤硬盘的DD及镜像,讨论一下。
昨晚刚试过:
SCSI硬盘dd系统盘后,直接插入,boot ,no problem!
不需要修改任何参数,当然两台机器都是一样的——v210。

FC硬盘以前试过,没有成功,有机会按照sbxu试一试。
作者: solarissystem    时间: 2003-12-02 23:44
提示: 作者被禁止或删除 内容自动屏蔽
作者: solarissystem    时间: 2003-12-02 23:55
提示: 作者被禁止或删除 内容自动屏蔽
作者: solarissystem    时间: 2003-12-02 23:57
提示: 作者被禁止或删除 内容自动屏蔽
作者: MTTCT86    时间: 2005-07-06 14:54
标题: 光纤硬盘的DD及镜像,讨论一下。
36-146GB光纤硬盘来找我!
E-MAIL:MT81888@163.COM
WWW.MT81.COM
作者: lyh003473    时间: 2005-07-06 15:05
标题: 光纤硬盘的DD及镜像,讨论一下。
难道你们就这么喜欢用DD吗?
作者: Philmoon    时间: 2005-07-06 15:22
标题: 光纤硬盘的DD及镜像,讨论一下。
将一个新盘(DD过的备用盘或ufsrestore+installboot的盘)插到坏boot盘原来的位置,对SCSI盘而言,只要SCSI ID相同就没问题。而内置盘是不用做SCSI ID跳线的,只要插到原来位置ID号就相同,因此更换比较简单。
FC盘的设备号前部分是与插槽位置有关,后面部分则是盘所固有的WWN,因此不同的FC盘在同一个插槽中的设备名称是不一样的。只要在OK下把BOOT DEVICE的设备名中的WWN部分改为新盘的就可以了。
过去在E3500中换启动盘或从另一位置的盘启动都要做类似的WWN修改处理。
作者: youarewolf    时间: 2005-07-07 17:22
标题: 光纤硬盘的DD及镜像,讨论一下。
你的问题涉及到个关于光纤盘启动的问题。你可以去网上查一下“SAN BOOT”这个词,可以查到你想要的:)。也可以在论坛上找一下我以前发过的帖子,有一篇讲的是如何在SUN  F15K上实现SAN  BOOT的实践经验。
作者: samshi    时间: 2005-07-11 16:15
标题: 光纤硬盘的DD及镜像,讨论一下。
sun小型计算机光纤接口系统盘坏后的恢复方法


********问题描述:
目前大多光纤硬盘都有wwn号码,这类服务器系统根盘出现故障时更换硬盘、恢复操作系统,系统是无法正常启动的,如果原来系统采用了disksuite,处理过程更加复杂。
更换的过程中必须适当地处理光纤盘的wwn号,对于disksuite镜像的系统盘还需考虑到镜像的适当处理。

*******解决该问题采取的措施:


1) The boot disk fails and is replaced by another disk with a different WWN.


2) Boot the system into single user from the cdrom or network:boot cdrom -s


3) Label the replacement disk to match the slices from the failed one.
可以用prtvtoc备份原有硬盘分区信息,用fmthard 恢复到新硬盘上。


4) Create filesystems on all the slices to be restored.


5) Mount the root filesystem and restore the data from backups.


6) Install the boot block onto the recovered root slice using the

"installboot" command.


7) With root mounted under "/a" run the following commands to re-build

the devices tree :


drvconfig -r /a/devices -p /a/etc/path_to_inst


cd /devices

find . -print | cpio -pduVm /a/devices


disks -r /a

devlinks -r /a


NOTE: It is currently necessary to use both "drvconfig" and "find | cpio" due

to bugid 4161768, drvconfig does not work properly with socal disks.


Configure the "boot-device" parameter in the EEPROM using the

"luxadm set_boot_dev /dev/dsk/{root slice entry}" command.


9) Restore the other filesystems on that disk, or comment out the

entries for them from /a/etc/vfstab. At least you must have all the

Solaris filesystems (root, /var, /usr, /opt, etc.) recovered.

补充一点:
如果原有系统根盘采用disksuite做了镜像的话,先在缺省引导盘上做1-9步,完毕后做以下步骤:
备份/etc/system,然后将里面的disksuite root信息、内核驱动信息全部删除干净。
* Begin MDD root info (do not edit)
forceload: misc/md_trans
forceload: misc/md_raid
forceload: misc/md_hotspares
forceload: misc/md_sp
forceload: misc/md_stripe
forceload: misc/md_mirror
forceload: drv/pcipsy
forceload: drv/glm
forceload: drv/sd
rootdev:/pseudo/md@0:0,10,blk
* End MDD root info (do not edit)
* Begin MDD database info (do not edit)
set md:mddb_bootlist1="sd:6:16 sd:6:1050 sd:6:2084 sd:14:16 sd:14:1050"
set md:mddb_bootlist2="sd:14:2084 sd:22:16 sd:30:16"
* End MDD database info (do not edit)


10、如果原有系统根盘采用disksuite做了镜像的话,需要将disksuite镜像配置信息清理掉
/etc/lvm/md.cf

10) Reboot the system from the recovered disk.
建议用reboot -- -r选项重启

12、如果原有系统根盘采用disksuite做了镜像的话,正常启动后按照标准做法重新配置disksuite镜像。
作者: samshi    时间: 2005-07-11 16:17
标题: 光纤硬盘的DD及镜像,讨论一下。
我是根据sun的文档做的,只是我的环境稍微复杂一点.
作者: 东方蜘蛛    时间: 2007-03-08 12:18
原帖由 wangnn 于 2007-3-8 12:01 发表
......



你太有才了
作者: bencyber    时间: 2007-03-08 15:13
其实还一种方法复制系统盘的:就是使用SUN Solaris Live Upgrade
有兴趣的可以去看看http://docs.sun.com
这个命令是lucreate,而且复制的过程比DD快,也不用去修改WWN,直接使用。
作者: 东方蜘蛛    时间: 2007-03-08 15:18
原帖由 bencyber 于 2007-3-8 15:13 发表
其实还一种方法复制系统盘的:就是使用SUN Solaris Live Upgrade
有兴趣的可以去看看http://docs.sun.com
这个命令是lucreate,而且复制的过程比DD快,也不用去修改WWN,直接使用。


这么爽啊,去学习一下哈
作者: tzpi2000    时间: 2007-03-08 15:23
老帖子 又浮出来了 哈哈哈
作者: bencyber    时间: 2007-03-08 15:56
原帖由 东方蜘蛛 于 2007-3-8 15:18 发表


这么爽啊,去学习一下哈

你没有用过这种方式吗?SUN的想法做升级的,把系统盘复制了份。我在实验试过一次,觉得不错!

作者: btqs    时间: 2007-03-08 16:29
光纤才有wwwn,DD的时候小心1要放到别的机器上的话,最好是同型号配置一样的,2如果硬盘已经有坏块的话就别用DD了,下面也是别人写的忘记是谁写的了 你谢谢他吧
一、背景:
    V880,两块72G光纤硬盘。SunOS5.8 Generic_108528-21 sun4u sparc SUNW,Sun-Fire-880.Disk0是系统盘,disk1是它的克隆盘。现在disk0有问题,要求用新硬盘new disk更换disk0,成功以后重新克隆disk1,使它能够引导系统。
二、操作步骤:
1.拔出disk1硬盘,插入新硬盘new disk,开始克隆系统.
  dd if=/dev/dsk/c1t0d0s2 of=/dev/dsk/c1t1d0s2
  bs=8192k
注意:c1t0d0s2是源盘disk0,c1t1d0s2是目标盘new disk,
bs 是块的大小。源盘和目标盘一定要分清楚,如果错了,
盘上的数据会全部被删掉。72G的硬盘需要85分钟左右。
2.把克隆好的盘new disk放入原系统的位置,重新启动,不
能启动。发现new disk的WWN与/etc/vfstab里的WWN不匹配,
所以需要修改WWN。(WWN是world wide name 的简称,每一
块盘都有一个唯一的WWN)
3.从光盘引导系统。
   OK boot cdrom –s
安装根文件系统到/mnt
#mount /dev/dsk/c1t0d0s0 /mnt
使new disk /etc/path_to_inst中的设备名与实际/devices
中的设备名一致
#drvconfig  -r /mnt –p /mnt/etc/path_to_inst
#cd /devices
#find . –print |cpio –pduVm  /mnt/devices
创建new disk从逻辑设备到物理设备的正确的连接
#disks –r /mnt
设置new disk 的/dev/dsk/c1t0d0s0 为启动设备
#luxadm set_boot_dev /dev/dsk/c1t0d0s0
4.用硬盘重新启动,能启动,但不能进入图形模式。查找资
料,发现是显示器不能识别。运行下列命令,OK。
# reboot  -- -r
5.到目前为止,disk0 已经被new disk 替代,下面开始克
隆disk1.
# dd if=/dev/dsk/c1t0d0s2 of=/dev/dsk/c1t1d0s2 bs=8192k
  85分钟以后,克隆成功。。
6.更改disk1的/etc/vfstab的设备名。
    #mount /dev/c1t1d0s0 /mnt
    #vi /mnt/etc/vfstab
把所有c1t0d0s* 改成c1t1d0s*.
7.用disk1重新起动。
   OK boot  -r disk1
启动成功。
8.重新恢复disk0启动,一切正常。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2