Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1265041
  • 博文数量: 1211
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 14340
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-09 11:20
文章分类

全部博文(1211)

文章存档

2011年(1)

2008年(1210)

我的朋友

分类: 服务器与存储

2008-06-09 12:18:03

  5.    安装启动块及刷新启动盘WWN
 
根文件系统备份完成后,要进入单用户在启动盘的0号分区安装启动块,并刷新WWN
 
root@xz_netman # cd /etc
root@xz_netman # more vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t0d0s1       -       -       swap    -       no      -
/dev/dsk/c1t0d0s0       /dev/rdsk/c1t0d0s0      /       ufs     1       no     
-
swap    -       /tmp    tmpfs   -       yes     -
root@xz_netman # more vfstab-INSTALL
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/ c1t0d0s1 -       -       swap    -       no      -
#/dev/dsk/c1t0d0s1      -       -       swap    -       no      -
/dev/dsk/d10 /dev/rdsk/ c1t0d0s0        /       ufs     1       no      logging
swap    -       /tmp    tmpfs   -       yes     -
root@xz_netman # cp vfstab-I* vfstab //将现在的vfstab文件还原为镜像前的状态
root@xz_netman # more vfstab        //确认还原成功
root@xz_netman # TERM=vt100;export TERM
root@xz_netman # vi system   //将 rootdev:/pseudo/md@0:0,10,blk 项注释掉
 
注:因为从1号盘把系统备份到0号盘时,1号盘上的镜像还没有拆除,所以备份完成后,此时的0号盘上还是“镜像状态”,为了下面从0号盘单盘启动正常,必须把镜像彻底拆除。
******************************************************************************
root@xz_netman # cd /mnt
root@xz_netman # rm restoresymtable
root@xz_netman # cd
root@xz_netman # umount /mnt
root@xz_netman # init 0
root@xz_netman #
INIT: New run level: 0
The system is coming down. Please wait.
System services are now being stopped.
stopping NetWorker daemons:
nsr_shutdown -a –q
打印服务已停止。
Mar 21 02:12:41 xz_netman syslogd: going down on signal 15
+4h43m30s Alarm 3 ON
The system is down.
syncing file systems... done
Program terminated
{0} ok boot cdrom -s
Boot device: /pci@8,700000/scsi@6/disk@6,0:f File and args: -s
SunOS Release 5.8 Version Generic_108528-22 64-bit
Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved.
Configuring /dev and /devices
Using RPC Bootparams for network configuration information.
Skipping interface fcip0
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
Skipping interface hme0
Skipping interface eri0
\
INIT: SINGLE USER MODE
# cd /usr/platform/sun4u/lib/fs/ufs
# installboot bootblk /dev/rdsk/c1t0d0s0   //安装启动块
# mount /dev/dsk/c1t0d0s0 /a
# drvconfig -r /a -p /a/etc/path_to_inst
# cd /devices
# find . -print | cpio -pduVm /a/devices
..............................
0 blocks
# disks -r /a
# devlinks -r /a
# luxadm set_boot_dev /dev/dsk/c1t0d0s0
Do you want to change boot-device to the new setting? (y/n) y
root@xz_netman # reboot - - -r   //此处之所以要加-r 参数 是要系统重新识别一下这个0号盘,不然如果直接boot会有报错,具体信息见附件
syncing file systems... done
rebooting...
R
LOM event: +5h34m29s host reset
screen not found.
keyboard not found.
Keyboard not present. Using lom-console for input and output.
Sun Netra T4 (2 X UltraSPARC-III+) , No Keyboard
Copyright 1998-2002 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.5, 2048 MB memory installed, Serial #52968011.
Ethernet address 0:3:ba:28:3a:4b, Host ID: 83283a4b.
 
Rebooting with command: boot -r                                      
Boot device: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@w21000014c33883a9,0:a File and args: -r
SunOS Release 5.8 Version Generic_108528-19 64-bit
Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved.
Sourcing //.profile-EIS.....
root@xz_netman #
root@xz_netman # metastat    //因为6号分区没有备份,所以metadb也就不存在
metastat: xz_netman: there are no existing databases 
root@xz_netman #cd
root@xz_netman #mkdir
root@xz_netman #prtdiag –v
root@xz_netman #rm
root@xz_netman #su
root@xz_netman #df –k
 
注:以上是对备份的系统是否正常的检查,此时要求客户启动业务,查看应用是否正常,若应用正常,则可以确定本次系统dump成功,可以更换另一个盘,并重新镜像。
阅读(450) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~