标签:
利用一台机器的磁带,在另外一台配置相同机器上恢复
步骤:
1、先执行恢复的操作
(a) OK> boot cdrom -s --------------以维护模式启动
(b) # newfs /dev/rdsk/c0t0d0s0
(c) # mount /dev/dsk/c0t0d0s0 /a ----------注意这里和上面(b)的区别
(d) # cd /a
(e) # nohup ufsrestore -rvf 192.168.0.2:/dev/rmt/0 ./ & -----恢复的参数要用rvf而不是xvf(本机没有磁带机,借用192.168.0.2的磁带机)
(f) # rm restoresymtable
下面修改针对用disksuite做过镜像的磁盘:
2、/etc/vfstab -----------将MD信息给修改过来
3、/etc/hosts -------------将原来地址注释掉,新加IP地址
4、/etc/system --将其中用disksuite做镜像时加的MD删除掉
5、/etc/dumpadm.conf -------------修改其中的MD的选项
6、/var/spool/cron/crontabs -------------注意这个目录下的各个用户的定时执行文件
7、做光纤硬盘 --------------一般帖子上都没有介绍做这步
(a)# drvconfig -r /a/devices -p /a/etc/path_to_inst
(b)# cd /devices
(c)# find . -print | cpio -pduVm /a/devices
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
......
0 blocks
(e)# cd /a/devices
(f)# disks -r /a
(g)# devlinks -r /a
8、正常引导并全部做SDS(sun disksuite)
# cd /usr/platform/sun4u/lib/fs/ufs
# installboot bootblk /dev/rdsk/c1t0d0s0 --------------安装引导块
# luxadm set_boot_dev /dev/dsk/c1t0d0s0 --------------重新配置启动设备
Do you want to change boot-device to the new setting? (y/n) y
# cd / ; umount /a
# fsck -y /dev/rdsk/c1t0d0s0
** /dev/rdsk/c1t0d0s0
** Last Mounted on /a
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
107390 files, 18271015 used, 8553207 free (7927 frags, 1068160 blocks, 0.0% fragmentation)
# reboot -- -r ----------第一次启动的时候最好用这个命令