免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4345 | 回复: 5
打印 上一主题 下一主题

【请教】磁盘阵列为RAID0+1,关于metastat命令的问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-14 09:52 |只看该作者 |倒序浏览
阵列为RAID0+1,共4块盘,有一块坏了进行更换。

执行metastat -s billig|more后有如下输出:


#metastat -s billig|more
billig/d10: Trans
    State: Okay
    Size: 70251208 blocks
    Master Device: billig/d11
    Logging Device: billig/d14

billig/d11: Mirror
    Submirror 0: billig/d12
      State: Resyncing
    Submirror 1: billig/d13
      State: Okay
    Resync in progress: 0 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 70251208 blocks

billig/d12: Submirror of billig/d11
    State: Resyncing
    Size: 70251208 blocks
    Stripe 0: (interlace: 32 blocks)
        Device              Start Block  Dbase State        Hot Spare
        /dev/did/dsk/d2s0          0     No    Okay
        /dev/did/dsk/d3s0          0     No    Okay


billig/d13: Submirror of billig/d11
    State: Okay
    Size: 70251208 blocks
    Stripe 0: (interlace: 32 blocks)
        Device              Start Block  Dbase State        Hot Spare
        /dev/did/dsk/d4s0          0     No    Okay
        /dev/did/dsk/d5s0          0     No    Okay


billig/d14: Logging device for billig/d10
    State: Okay
    Size: 353142 blocks

billig/d14: Mirror
    Submirror 0: billig/d15
      State: Resyncing
    Submirror 1: billig/d16
      State: Okay
    Resync in progress: 41 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 353400 blocks

billig/d15: Submirror of billig/d14
    State: Resyncing
    Size: 353400 blocks
    Stripe 0: (interlace: 32 blocks)
        Device              Start Block  Dbase State        Hot Spare
        /dev/did/dsk/d2s6          0     No    Okay
        /dev/did/dsk/d3s6          0     No    Okay


billig/d16: Submirror of billig/d14
    State: Okay
    Size: 353400 blocks
    Stripe 0: (interlace: 32 blocks)
        Device              Start Block  Dbase State        Hot Spare
        /dev/did/dsk/d4s6          0     No    Okay
        /dev/did/dsk/d5s6          0     No    Okay



billig/d100: Mirror
    Submirror 0: billig/d101
      State: Resyncing
    Submirror 1: billig/d102
      State: Okay
    Resync in progress: 33 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 80104 blocks

billig/d101: Submirror of billig/d100
    State: Resyncing
    Size: 80104 blocks
    Stripe 0: (interlace: 32 blocks)
        Device              Start Block  Dbase State        Hot Spare
        /dev/did/dsk/d2s4          0     No    Okay
        /dev/did/dsk/d3s4          0     No    Okay


billig/d102: Submirror of billig/d100
    State: Okay
    Size: 80104 blocks
    Stripe 0: (interlace: 32 blocks)
        Device              Start Block  Dbase State        Hot Spare
        /dev/did/dsk/d4s4          0     No    Okay
        /dev/did/dsk/d5s4          0     No    Okay






那么d10,d11,d12,d13,d14,d15,d16,d100,d101,d102之间分别是什么关系啊,谢谢老大!
另外什么是master 和 logging啊?

论坛徽章:
0
2 [报告]
发表于 2006-08-14 15:59 |只看该作者
#metastat -s billig -p 可看出来

论坛徽章:
0
3 [报告]
发表于 2014-11-03 11:02 |只看该作者
同问,菜鸟一枚,望大虾们给解释下,谢谢

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
4 [报告]
发表于 2014-11-03 14:00 |只看该作者
本帖最后由 东方蜘蛛 于 2014-11-03 14:29 编辑

回复 1# newsmart
Trans meta devices enables ufs logging . There is one logging device and a master device and all file system changes are written into logging device and posted on to master device . This greatly reduces the fsck time for very large file systems as fsck has to check only the logging device which is usually of 64 M. maximum size.Logging device preferably should be mirrored and located on a different drive and controller than the master device .
Ufs logging can not be done for root partition.

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
5 [报告]
发表于 2014-11-03 14:03 |只看该作者
Trans Metadevice for a File System That Can Be Unmounted • /home2
1. Setup metadevice
# umount /home2
# metainit d63 -t c0t2d0s2 c2t2d0s1
d63: Trans is setup
Logging becomes effective for the file system when it is remounted
2. Change vfstab entry & reboot
from
/dev/md/dsk/d2 /dev/md/rdsk/d2 /home2 ufs 2 yes -
to
/dev/md/dsk/d63 /dev/md/rdsk/d63 /home2 ufs 2 yes -
# mount /home2
Next reboot displays the following message for logging device
# reboot
...
/dev/md/rdsk/d63: is logging

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
6 [报告]
发表于 2014-11-03 14:07 |只看该作者
Using Soft Partitions for MetaTrans (UFS Logging) Devices
MetaTrans devices (UFS logging) can be built on top of soft partitions. Soft partitions can be used for the master device, the logging device, or both. In the following example, soft partitions are used for both the master and the logging device:
   # metainit d1 -p c1t0d0s0 500m
   d1: Soft Partition is setup
   # metainit d2 -p c2t0d0s0 50m
   d2: Soft Partition is setup
   # metainit d10 -t d1 d2
   d1: Trans is setup


Once done, the resulting metastat output of the metatrans device will look like this:
   # metastat d10
   d10: Trans
       State: Okay         
       Size: 1024000 blocks
       Master Device: d1
       Logging Device: d2

   d1: Soft Partition
       Component: c1t1d3s0
       State: Okay
       Size: 1024000 blocks
           Extent              Start Block              Block count
                0                        1                  1024000

   d2: Logging device for d10
       State: Okay         
       Size: 102142 blocks

   d2: Soft Partition
       Component: c1t1d1s0
       State: Okay
       Size: 102400 blocks
           Extent              Start Block              Block count
                0                        1                   102400

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP