Аааа, бля...
2007-06-09 14:22...сказали суровые сибирские мужики. :)
zpool create -m /export/test1 test1 raidz /export/sl1 /export/sl2 /export/sl3
zpool add -f test1 /export/sl4
zpool status
pool: test1
state: ONLINE
scrub: resilver completed with 0 errors on Sat Jun 9 21:52:50 2007
config:
NAME STATE READ WRITE CKSUM
test1 ONLINE 0 0 0
raidz1 ONLINE 0 0 0
/export/sl1 ONLINE 0 0 0
/export/sl2 ONLINE 0 0 0
/export/sl3 ONLINE 0 0 0
/sl4 ONLINE 0 0 0
dd if=/dev/zero of=sl4 bs=512 count=512000
zpool scrub test1
И пц котёнку. Система трапнулась и ушла на перезагрузку. :)
Впрочем, когда я добавлял отдельный vdev к рейду система меня честно нафиг послала, со словами что я тупой и не понимаю что делаю. Из-за этого -f использовать и пришлось. :)
zpool create -m /export/test1 test1 raidz /export/sl1 /export/sl2 /export/sl3
zpool add -f test1 /export/sl4
zpool status
pool: test1
state: ONLINE
scrub: resilver completed with 0 errors on Sat Jun 9 21:52:50 2007
config:
NAME STATE READ WRITE CKSUM
test1 ONLINE 0 0 0
raidz1 ONLINE 0 0 0
/export/sl1 ONLINE 0 0 0
/export/sl2 ONLINE 0 0 0
/export/sl3 ONLINE 0 0 0
/sl4 ONLINE 0 0 0
dd if=/dev/zero of=sl4 bs=512 count=512000
zpool scrub test1
И пц котёнку. Система трапнулась и ушла на перезагрузку. :)
Впрочем, когда я добавлял отдельный vdev к рейду система меня честно нафиг послала, со словами что я тупой и не понимаю что делаю. Из-за этого -f использовать и пришлось. :)
(no subject)
Date: 2007-06-09 19:32 (UTC)(no subject)
Date: 2007-06-09 20:29 (UTC)(no subject)
Date: 2007-06-09 20:47 (UTC)(no subject)
Date: 2007-06-09 21:12 (UTC)pool
raidz
/export/sl1
/export/sl2
/export/sl3
/export/sl4
I believe 'zpool add' will warn you about this, hence needing the '-f'.
You then overwrite the entire contents of /export/sl4, causing ZFS to
reopen the device, only to not recognize the device and therefore mark
it FAULTED. Because you are in an unreplicated pool, you then tripped
over:
6413847 vdev label write failure should be handled more gracefully
Which is just one manifestation of a series of issues currently being
worked on where a failed writes in an unreplicated config can cause ZFS
to panic.
Using a replicated config will prevent this problem from happining in
the future.
- Eric