查看池状态,已经不可用,相应的挂载目录已经无法使用
zpool status -v
pool: zp1
state: UNAVAILABLE
scan: scrub repaired 0 in 7h7m with 0 errors on Mon Dec 28 17:15:23 2015
config:
NAME STATE READ WRITE CKSUM
zp1 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c023b05c1051b ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c024a06aa5b02 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c025107155644 ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c02590785272d ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c025f07e1518d ONLINE 0 0 0
mirror-3 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c0265084450d1 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c026b08a28f99 ONLINE 0 0 0
mirror-4 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c02740922c2ad ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c028f0ac3fa8b ONLINE 0 0 0
mirror-5 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c02a50c08723f ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c02ab0c6b39cb ONLINE 0 0 0
scsi-36b083fe0e61cb400209240e6bd1a0152 UNAVAILABLE 0 0 0
logs
wwn-0x6b083fe0e61cb4001c3fd2201b653f52-part3 ONLINE 0 0 0
errors: No known data errors
这里做了mirror,机器重启之前zpool是可用的,重启以后,整个zpool变为不可用
查看硬盘状态:
MegaCli -PDList -aAll -NoLog
Enclosure Device ID: 32
Slot Number: 1
Drive's position: DiskGroup: 12, Span: 0, Arm: 0
Enclosure position: 1
Device Id: 1
WWN: 5000c50067306485
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
Raw Size: 3.638 TB [0x1d1c0beb0 Sectors]
Non Coerced Size: 3.637 TB [0x1d1b0beb0 Sectors]
Coerced Size: 3.637 TB [0x1d1b00000 Sectors]
Sector Size: 0
Firmware state: unconfigured (good), Spun Up
这里说明硬盘是好的,这里重新做raid
MegaCli -CfgLdAdd -r0[32:1] -a0
修复zpool
rm -f /etc/zfs/zpool.cache
zpool import zp1
提示需要-f
zpool import -f zp1
恢复完成
zpool status -v
pool: zp1
state: ONLINE
scan: scrub repaired 0 in 7h7m with 0 errors on Mon Dec 28 17:15:23 2015
config:
NAME STATE READ WRITE CKSUM
zp1 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c023b05c1051b ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c024a06aa5b02 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c025107155644 ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c02590785272d ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c025f07e1518d ONLINE 0 0 0
mirror-3 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c0265084450d1 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c026b08a28f99 ONLINE 0 0 0
mirror-4 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c02740922c2ad ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c028f0ac3fa8b ONLINE 0 0 0
mirror-5 ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c02a50c08723f ONLINE 0 0 0
wwn-0x6b083fe0e61cb4001c4c02ab0c6b39cb ONLINE 0 0 0
scsi-36b083fe0e61cb400209240e6bd1a0152 ONLINE 0 0 0
logs
wwn-0x6b083fe0e61cb4001c3fd2201b653f52-part3 ONLINE 0 0 0
errors: No known data errors
wwn-0x6b083fe0e61cb4001c4c023b05c1051b
scsi-36b083fe0e61cb400209240e6bd1a0152
这里看到除了mirror之外,出现了2块单独的设备,除了重新建池,没有办法让这两块设备成为一个mirror了