oushitianxia 发表于 2012-03-21 10:42

metadb做RAID报错

# 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: 与元设备状态数据库中的设备重叠

财版 发表于 2012-03-21 10:57

metastat -p

oushitianxia 发表于 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: 与元设备状态数据库中的设备重叠

东方蜘蛛 发表于 2012-03-21 12:03

lz的机器有几块硬盘?c0d1s0是/文件系统吧。。。。。lz做d0的目的是?

xuzhen8848 发表于 2012-03-21 14:13

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

119beyond_cu 发表于 2012-03-21 14:26

冒看懂,不知道客户要搞什么的

oushitianxia 发表于 2012-03-21 16:20

回复 5# xuzhen8848


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

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

oushitianxia 发表于 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

/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): 2
selecting c1d1
Controller working 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

yiguihuo 发表于 2012-03-21 16:50

贴metastat

oushitianxia 发表于 2012-03-21 16:54

回复 9# yiguihuo


    # metastat
# metastat
#
页: [1] 2
查看完整版本: metadb做RAID报错