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

全部博文(1211)

文章存档

2011年(1)

2008年(1210)

我的朋友

分类: 服务器与存储

2008-06-09 12:17:19

 6.  更换1号盘并重新同步镜像
 
root@xz_netman # luxadm remove_device /dev/rdsk/c1t1d0s2
WARNING!!! Please ensure that no filesystems are mounted on these device(s).
All data on these devices should have been backed up.
The list of devices which will be removed is:
 1: Device name: /dev/rdsk/c1t1d0s2
     Node WWN:    20000004cfc333ff
     Device Typeisk device
     Device Paths:
      /dev/rdsk/c1t1d0s2
Please verify the above list of devices and
then enter 'c' or to Continue or 'q' to Quit. [Default: c]: c
stopping: /dev/rdsk/c1t1d0s2....Done
offlining: /dev/rdsk/c1t1d0s2....Done
Hit after removing the device(s).
 Device: /dev/rdsk/c1t1d0s2
 Logical Nodes being removed under /dev/dsk/ and /dev/rdsk:
        c1t1d0s0
        c1t1d0s1
        c1t1d0s2
        c1t1d0s3
        c1t1d0s4
        c1t1d0s5
        c1t1d0s6
        c1t1d0s7
root@xz_netman # devfsadm
root@xz_netman # format     //确认识别正常
root@xz_netman # prtvtoc /dev/rdsk/c1t0d0s2|fmthard -s - /dev/rdsk/c1t1d0s2
fmthard: New volume table of contents now in place.
root@xz_netman # format   //确认
root@xz_netman # metadb -afc 3 c1t0d0s6
root@xz_netman # metadb -afc 3 c1t1d0s6
root@xz_netman # metainit -f d11 1 1 c1t0d0s0
d11: Concat/Stripe is setup
root@xz_netman # metainit d12 1 1 c1t1d0s0
d12: Concat/Stripe is setup
root@xz_netman # metainit -f d21 1 1 c1t0d0s1
d21: Concat/Stripe is setup
root@xz_netman # metainit d22 1 1 c1t1d0s1
d22: Concat/Stripe is setup
root@xz_netman # metainit d10 -m d11
d10: Mirror is setup
root@xz_netman # metainit d20 -m d21
d20: Mirror is setup
root@xz_netman # metaroot d10
root@xz_netman # lockfs -fa
root@xz_netman # cd /etc
root@xz_netman # TERM=vt100;export TERM
root@xz_netman # vi vfstab
root@xz_netman # vi system
root@xz_netman # sync
root@xz_netman # sync
root@xz_netman # shutdown -y -i6 -g0
root@xz_netman # metattach d10 d12
d10: submirror d12 is attached
root@xz_netman # metattach d20 d22
d20: submirror d22 is attached
root@xz_netman # metastat
root@xz_netman # eeprom boot-device="disk disk1"
root@xz_netman # dumpadm -d /dev/md/dsk/d20
      Dump content: kernel pages
       Dump device: /dev/md/dsk/d20 (swap)
Savecore directory: /var/crash/nj_netman
 Savecore enabled: yes
root@xz_netman # metastat|grep %
    Resync in progress: 0 % done
Resync in progress: 2 % done
阅读(582) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~