solaris8 用卷管理做的raid1,其中一个盘(非系统盘)坏了,如果处理
raid情况:
# metastat
d10: Mirror
Submirror 0: d11
State: Needs maintenance
Submirror 1: d12
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 573376896 blocks
d11: Submirror of d10
State: Needs maintenance
Invoke: metareplace d10 c1t3d0s0 <new device>
Size: 573376896 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t2d0s0 0 No Okay
Stripe 1:
Device Start Block Dbase State Hot Spare
c1t3d0s0 20352 No Maintenance
d12: Submirror of d10
State: Okay
Size: 573376896 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t4d0s0 0 No Okay
Stripe 1:
Device Start Block Dbase State Hot Spare
c1t5d0s0 20352 No Okay
d100: Mirror
Submirror 0: d101
State: Okay
Submirror 1: d102
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 209727360 blocks
d101: Submirror of d100
State: Okay
Size: 209727360 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s0 0 No Okay
d102: Submirror of d100
State: Okay
Size: 209727360 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s0 0 No Okay
d110: Mirror
Submirror 0: d111
State: Okay
Submirror 1: d112
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 67120896 blocks
d111: Submirror of d110
State: Okay
Size: 67120896 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s1 0 No Okay
d112: Submirror of d110
State: Okay
Size: 67120896 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s1 0 No Okay
卷管理数据库情况:
# metadb -i
flags first blk block count
a m p luo 16 1034 /dev/dsk/c1t0d0s7
a p luo 16 1034 /dev/dsk/c1t1d0s7
a p luo 1050 1034 /dev/dsk/c1t1d0s7
a p luo 2084 1034 /dev/dsk/c1t1d0s7
a p luo 1050 1034 /dev/dsk/c1t0d0s7
a p luo 2084 1034 /dev/dsk/c1t0d0s7
o - replica active prior to last mddb configuration change
u - replica is up to date
l - locator for this replica was read successfully
c - replica's location was in /etc/lvm/mddb.cf
p - replica's location was patched in kernel
m - replica is master, this is replica selected as input
W - replica has device write errors
a - replica is active, commits are occurring to this replica
M - replica had problem with master blocks
D - replica had problem with data blocks
F - replica had format problems
S - replica is too small to hold current data base
R - replica had device read errors
磁盘情况:
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000014c39d6ea0,0
1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000014c39d25ad,0
2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000014c39d6dc2,0
3. c1t4d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000014c39d27fc,0
4. c1t5d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000014c39d711d,0
5. c8t5006016B30603B4Fd0 <DGC-RAID5-0219 cyl 32766 alt 2 hd 128 sec 10>
/pci@9,600000/SUNW,qlc@1/fp@0,0/ssd@w5006016b30603b4f,0
6. c8t5006016230603B4Fd0 <DGC-RAID5-0219 cyl 32766 alt 2 hd 128 sec 10>
/pci@9,600000/SUNW,qlc@1/fp@0,0/ssd@w5006016230603b4f,0
7. c9t5006016A30603B4Fd0 <DGC-RAID5-0219 cyl 32766 alt 2 hd 128 sec 10>
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w5006016a30603b4f,0
8. c9t5006016330603B4Fd0 <DGC-RAID5-0219 cyl 32766 alt 2 hd 128 sec 10>
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w5006016330603b4f,0
9. emcpower0a <DGC-RAID5-0219 cyl 32766 alt 2 hd 128 sec 10>
/pseudo/emcp@0
其中c1t3d0这块盘坏了,设备上也亮了黄灯。现在有盘,我该如果操作,换上新盘呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
直接强悍
新换的盘是默认分区,和c1t2d0分区不一样的,要做镜像的话,这两个盘分区要一样。
1.拔换盘
2.# prtvtoc /dev/rdsk/c1t5d0s2 |fmthard –s – /dev/rdsk/c1t3d0s2
3.# metareplace -e d10 c1t3d0s0
回复 9# 东方蜘蛛
我想问下是不是原位换盘就只需进行metareplace操作 什么情况下才需要重做镜像难?
文件系统环境
df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d100 103280783 9358206 92889770 10% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
swap 37313248 24 37313224 1% /var/run
swap 37718656 405432 37313224 2% /tmp
/dev/dsk/emcpower0g 20381033 11082380 9094843 55% /apps
/dev/md/dsk/d10 282360663 243747155 35789902 88% /data
东方大师,d10就挂了一个文件系统/data,我还要复制分区吗
直接拔盘换,然后复制c1t2d0硬盘的分区过去,再然后metareplace -e d10 c1t3d0s0
环境很简单,就是单机,本地硬盘。
回复 1# shilei1
找找文档
比较简单的。
你的环境说一下吧。单机双机。光纤盘换法有所不同。