Chinaunix首页 | 论坛 | 博客
  • 博客访问: 573494
  • 博文数量: 113
  • 博客积分: 3322
  • 博客等级: 少校
  • 技术积分: 1565
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-04 11:38
文章分类

全部博文(113)

文章存档

2012年(21)

2010年(92)

分类:

2010-03-03 08:53:37

由于原来机器的硬盘是2个36G的硬盘,现在发现使用空间越来越少所以,需要对现在的2个36G更换为2个72G的硬盘。阵列的封装使用veritas volume manager 3.2.以下是系统操作的情况。
1、        检查集群系统状态:(在两台服务器上操作)

# scstat
# vxdisk list
# vxprint
# /usr/platform/sun4u/sbin/prtdiag -v
# dmesg
# more /var/adm/messages
# more /var/adm/messages.0
# more /var/adm/messages.1
# more /var/adm/messages.2
# more /var/adm/messages.3

使用以上命令查看集群系统状态,确保整套系统运转正常,没有如何错误信息;如果有报错信息,必须先解决故障,再进行以下的升级操作。

确认双机的磁带机/CDROM都能够正常读写,在双机中把补丁光盘放入。
# ls –al  /cdrom/cdrom0    能够正常列出目录中的内容

把备份用的磁带插入双机的磁带机,输入
# mt status                 能够正常读出磁带中的信息.
               
                准备4盘磁带,用于操作系统的备份。

2、        服务器ht-01系统盘升级:

(1)        备份服务器操作系统:
关闭操作系统:
# shutdown –g0 –y –i0
将系统启动到非集群单用户状态:
ok boot –xs
备份操作系统:
# ufsdump –0ucf /dev/rmt/0n /dev/dsk/c0t0d0s0
# ufsdump –0ucf /dev/rmt/0n /dev/dsk/c0t0d0s3
# ufsdump –0ucf /dev/rmt/0n /dev/dsk/c0t1d0s0
# ufsdump –0ucf /dev/rmt/0n /dev/dsk/c0t1d0s1

(2)        更换硬盘:
关闭操作系统:
# shutdown –g0 –y –i0
取出旧硬盘,插入新硬盘;将solaris 8操作系统的software 1/2光盘放入光驱中:
ok boot cdrom –s

(3)        新硬盘重新分区:
对新的系统盘进行分区:
# format

硬盘分区        挂接目录        容量
c0t0d0s0        /        15G
c0t0d0s1        swap        20G
c0t0d0s3        /global/.devices/node@1        512M
c0t0d0s4        /oracle        15G
c0t0d0s5        /home        20G(剩余)
c0t0d0s7        rootdg        512M

# newfs /dev/rdsk/c0t0d0s0
# newfs /dev/rdsk/c0t0d0s3
# newfs /dev/rdsk/c0t0d0s4
# newfs /dev/rdsk/c0t0d0s5

(4)        恢复操作系统:
将磁带放入磁带机中。
恢复根文件系统:
# mount /dev/dsk/c0t0d0s0 /a
# cd /a
# ufsrestore rvf /dev/rmt/0n
# rm restoresymtable
修改系统文件
# vi /a/etc/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/c0t0d0s1        -        -        swap        -        no        -
/dev/dsk/c0t0d0s0        /dev/rdsk/c0t0d0s0        /        ufs        1        no        logging
/dev/dsk/c0t0d0s4        /dev/rdsk/c0t0d0s4        /oracle        ufs        2        yes        logging
/dev/dsk/c0t0d0s5        /dev/rdsk/c0t0d0s5        /home        ufs        2        yes        logging
#/dev/dsk/c0t0d0s3        /dev/rdsk/c0t0d0s3        /globaldevices        ufs        2        yes        -
swap        -        /tmp        tmpfs        -        yes        -
/dev/did/dsk/d1s3 /dev/did/rdsk/d1s3 /global/.devices/node@1 ufs 2 no global
/dev/vx/dsk/htdg3/arch1        /dev/vx/rdsk/htdg3/arch1        /global/arch1        ufs        2        yes global,logging
#mincache=global,logging
/dev/vx/dsk/htdg5/guest        /dev/vx/rdsk/htdg5/guest        /global/guest        ufs        2        yes global,logging       
#mincache=global,logging
/dev/vx/dsk/htdg4/arch2 /dev/vx/rdsk/htdg4/arch2        /global/arch2   ufs  2       yes      global,logging
/dev/vx/dsk/backup_dg/backup /dev/vx/rdsk/backup_dg/backup        /global/backup   ufs  2       yes      global,logging
/dev/vx/dsk/htdg5/gatherdata        /dev/vx/rdsk/htdg5/gatherdata        /global/gather        ufs        2

# cd /
# umount /a
# fsck /dev/rdsk/c0t0d0s0
# /usr/sbin/installboot /usr/platform/‘uname -i‘/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0

恢复/global/.devices/node@1文件系统
# mount /dev/dsk/c0t0d0s3 /a
# cd /a
# ufsrestore rvf /dev/rmt/0n
# rm restoresymtable
# cd /
# umount /a
# fsck /dev/rdsk/c0t0d0s3

恢复/oracle文件系统
# mount /dev/dsk/c0t0d0s4 /a
# cd /a
# ufsrestore rvf /dev/rmt/0n
# rm restoresymtable
# cd /
# umount /a
# fsck /dev/rdsk/c0t0d0s4

恢复/home文件系统
# mount /dev/dsk/c0t0d0s5 /a
# cd /a
# ufsrestore rvf /dev/rmt/0n
# rm restoresymtable
# cd /
# umount /a
# fsck /dev/rdsk/c0t0d0s5

(5)        重启系统,更新系统配置信息:
# reboot -- -s

# vxdctl init
# vxdg init rootdg
# vxdctl add disk c0t0d0s7 type=simple
# vxdisk -f init c0t0d0s7 type=simple
# vxdg adddisk c0t0d0s7
# vxdctl enable

# scdidadm -R /dev/rdsk/c0t0d0
# scdidadm -R /dev/rdsk/c0t1d0
在操作的时候执行完scdidadm之后并没有更改,所以,选择了重新启动机器,重新启动机器以后变为正常。
按CTRL-d键进入多用户状态。

(6)        测试系统:
# scstat
# vxdisk list
# vxprint
# df -k
确定系统运转是否正常。

(7)        创建备用系统盘:
关闭系统:
# shutdown –g0 –y –i0
重启系统到单用户非集群状态:
ok boot –xs
创建备用系统盘:
# dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2 bs=10240k

(8)        重启系统到正常状态:
# shutdown –g0 –y –i0
ok boot

再次测试系统:
# scstat
# vxdisk list
# vxprint
# /usr/platform/sun4u/sbin/prtdiag –v
# dmesg
# more /var/adm/messages
# df –k
# ifconfig –a

3、        服务器ht-02系统盘升级:

服务器ht-01升级完成后,最少经过一天的实际测试后,才能对服务器ht-02进行升级。
                服务器ht-02的升级步骤于服务器ht-01的升级步骤相同。

4、        集群系统测试:

两台服务器升级完成后,集群系统加入试运行阶段。
阅读(3848) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~