Chinaunix首页 | 论坛 | 博客
  • 博客访问: 138732
  • 博文数量: 31
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 0
  • 用 户 组: 普通用户
  • 注册时间: 2018-11-12 09:56
文章分类

全部博文(31)

文章存档

2014年(6)

2013年(9)

2008年(7)

2007年(7)

2006年(2)

分类:

2006-04-11 12:52:28

                          解镜像

   

         作者:  zhaopingzi

 

案例:一台SUN480,两块硬盘c1t0d0s2,c1t1d0s2。文件系统//zcbuffdisksuite做了镜像;

c1t0d0s0c1t1d0s0/分区,做了镜像d1,c1t0d0s7c1t1d0s7/zcbuff,做了镜像d7.

 

#metastat d7

d7: Mirror

    Submirror 0: d17

      State: Okay

    Submirror 1: d27

      State: Okay

    Pass: 1

    Read option: roundrobin (default)

    Write option: parallel (default)

    Size: 20972736 blocks

d17: Submirror of d7

    State: Okay

    Size: 20972736 blocks

    Stripe 0:

        Device              Start Block  Dbase State        Hot Spare

        c1t0d0s7                   0     No    Okay

d27: Submirror of d7

    State: Okay

    Size: 20972736 blocks

    Stripe 0:

        Device              Start Block  Dbase State        Hot Spare

        c1t1d0s7                   0     No    Okay

# metastat d1

d1: Mirror

    Submirror 0: d11

      State: Okay

    Submirror 1: d21

      State: Okay

    Pass: 1

    Read option: roundrobin (default)

    Write option: parallel (default)

    Size: 20972736 blocks

d11: Submirror of d1

    State: Okay

    Size: 20972736 blocks

    Stripe 0:

        Device              Start Block  Dbase State        Hot Spare

        c1t0d0s0                   0     No    Okay

d21: Submirror of d1

    State: Okay

    Size: 20972736 blocks

    Stripe 0:

        Device              Start Block  Dbase State        Hot Spare

        c1t1d0s0                   0     No    Okay

 

以下步骤对镜像D7进行解镜像:

(1)#metadetach d7 d27

d7: submirror d27 is detached

(2)修改vfstab文件

/dev/md/dsk/d7  /dev/md/rdsk/d7  /zcbuff ufs 2  yes -        改为

/dev/dsk/c1t0d0s7  /dev/rdsk/c1t0d0s7  /zcbuff ufs  2   yes     -

(3)重新启动机器

(4)#metaclear –r d7

  d7: Mirror is cleared

d17: Concat/Stripe is cleared

# metaclear d27

d27: Concat/Stripe is cleared

(5)解镜像成功。

以下步骤对镜像d1进行解镜像:

(1)# metadetach d1 d21

d1: submirror d21 is detached

(2) metaroot /dev/dsk/c1t0d0s0

(3)重新启动机器reboot

(4) # metaclear -r d1

d1: Mirror is cleared

d11: Concat/Stripe is cleared

(5)# metaclear d21

d21: Concat/Stripe is cleared

root@s1 #

解完成

阅读(2118) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:snoop的一些命令

给主人留下些什么吧!~~