免费注册 查看新帖 |

Chinaunix

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

metadb做RAID报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-03-21 10:42 |只看该作者 |倒序浏览
# metadb -i
        flags           first blk       block count
     a        u         16              8192            /dev/dsk/c0d1s7
     a        u         8208            8192            /dev/dsk/c0d1s7
     a        u         16400           8192            /dev/dsk/c0d1s7
     a        u         24592           8192            /dev/dsk/c0d1s7
     a        u         16              8192            /dev/dsk/c1d1s7
     a        u         8208            8192            /dev/dsk/c1d1s7
     a        u         16400           8192            /dev/dsk/c1d1s7
     a        u         24592           8192            /dev/dsk/c1d1s7
r - 副本没有设备的重新分配信息
o - 上次 mddb 配置更改前副本已在激活中
u - 副本已更新
l - 已成功读入此副本的定位器
c - 副本位于 /etc/lvm/mddb.cf
p - 已于内核中修补副本的位置
m - 此副本主副本,且已选作为输入
W - 副本含有设备写入错误
a - 副本正在激活中,所有确定事项都将传给此副本
M - 副本主块有问题
D - 副本数据块有问题
F - 副本格式有问题
S - 副本太小,不能容纳当前数据库
R - 副本含有设备读入错误
# metainit -f d0 1 2 c0d1s0 c1d1s0
metainit: solaris1: c0d1s0: 与元设备状态数据库中的设备重叠

论坛徽章:
0
2 [报告]
发表于 2012-03-21 10:57 |只看该作者
metastat -p  

论坛徽章:
0
3 [报告]
发表于 2012-03-21 11:05 |只看该作者
回复 2# 财版


    # metadb -p
# metainit -f d0 1 2 c0d1s0 c1d1s0
metainit: solaris1: c0d1s0: 与元设备状态数据库中的设备重叠

# metadb -p
# metainit -f d0 1 2 c0d1s0 c1d1s0
metainit: solaris1: c0d1s0: 与元设备状态数据库中的设备重叠

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
4 [报告]
发表于 2012-03-21 12:03 |只看该作者
lz的机器有几块硬盘?c0d1s0是/文件系统吧。。。。。lz做d0的目的是?

论坛徽章:
0
5 [报告]
发表于 2012-03-21 14:13 |只看该作者
很明显,s0和s7存在重叠的block。

论坛徽章:
0
6 [报告]
发表于 2012-03-21 14:26 |只看该作者
冒看懂,不知道客户要搞什么的

论坛徽章:
0
7 [报告]
发表于 2012-03-21 16:20 |只看该作者
回复 5# xuzhen8848


  很明显,s0和s7存在重叠的block。

什么意思啊? 怎么会重叠啊?  

论坛徽章:
0
8 [报告]
发表于 2012-03-21 16:22 |只看该作者
回复 4# 东方蜘蛛


做实验呵呵
    # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0d0 <DEFAULT cyl 2085 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
       1. c0d1 <DEFAULT cyl 2085 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0
       2. c1d1 <DEFAULT cyl 2085 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1,1/ide@1/cmdk@1,0
Specify disk (enter its number): 1
selecting c0d1
Controller working list found
[disk formatted, defect list found]
/dev/dsk/c0d1s7 contains an SVM mdb. Please see metadb(1M).


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        show       - translate a disk address
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 2085 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0 - 1305       10.00GB    (1306/0/0) 20980890
  1 unassigned    wm       0               0         (0/0/0)           0
  2     backup    wu       0 - 2084       15.97GB    (2085/0/0) 33495525
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6 unassigned    wm       0               0         (0/0/0)           0
  7 unassigned    wm       0 -    6       54.91MB    (7/0/0)      112455
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 alternates    wm       1 -    2       15.69MB    (2/0/0)       32130

partition> quit


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        show       - translate a disk address
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> disk


AVAILABLE DISK SELECTIONS:
       0. c0d0 <DEFAULT cyl 2085 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
       1. c0d1 <DEFAULT cyl 2085 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0
       2. c1d1 <DEFAULT cyl 2085 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1,1/ide@1/cmdk@1,0
Specify disk (enter its number)[1]: 2
selecting c1d1
Controller working list found
[disk formatted, defect list found]
/dev/dsk/c1d1s7 contains an SVM mdb. Please see metadb(1M).
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 2085 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0 - 1305       10.00GB    (1306/0/0) 20980890
  1 unassigned    wm       0               0         (0/0/0)           0
  2     backup    wu       0 - 2084       15.97GB    (2085/0/0) 33495525
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6 unassigned    wm       0               0         (0/0/0)           0
  7 unassigned    wm       0 -    6       54.91MB    (7/0/0)      112455
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 alternates    wm       1 -    2       15.69MB    (2/0/0)       32130

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:54:45
9 [报告]
发表于 2012-03-21 16:50 |只看该作者
贴metastat

论坛徽章:
0
10 [报告]
发表于 2012-03-21 16:54 |只看该作者
回复 9# yiguihuo


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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP