Jingcheng zhang
2013-08-14 13:41:01 UTC
I ran into an interesting problem by doing the following test on ZFS:
1) create a RAID0 pool with 3 drives.
2) keeping writing the pool with dd
3) pull out a drive from the pool
My action broken the RAID0 pool, but the result is strange:
1) the ZFS thread hangs on zio_wait of dsl_pool_sync of spa_sync;
2) dd thread already blocks by incomplete sync transaction group. But
there are still many IOs keep other 2 drives very busy.
3) Dtrace shows that the traffic is caused by the endless retry of zio
issued by dmu_objset_sync. It calls arc_write to sync its os->os_rootbp.
The zio wants to write 3 copies, but only two drive is online. so it
definitely fail and keep retrying.
Is this the expected behaviour of ZFS or just a bug? Is the zio allowed to
fail if it can't write enough copies?
Who can help explain the result?
-------------------------------------------
illumos-zfs
Archives: https://www.listbox.com/member/archive/182191/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182191/23047029-187a0c8d
Modify Your Subscription: https://www.listbox.com/member/?member_id=23047029&id_secret=23047029-2e85923f
Powered by Listbox: http://www.listbox.com
1) create a RAID0 pool with 3 drives.
2) keeping writing the pool with dd
3) pull out a drive from the pool
My action broken the RAID0 pool, but the result is strange:
1) the ZFS thread hangs on zio_wait of dsl_pool_sync of spa_sync;
2) dd thread already blocks by incomplete sync transaction group. But
there are still many IOs keep other 2 drives very busy.
3) Dtrace shows that the traffic is caused by the endless retry of zio
issued by dmu_objset_sync. It calls arc_write to sync its os->os_rootbp.
The zio wants to write 3 copies, but only two drive is online. so it
definitely fail and keep retrying.
Is this the expected behaviour of ZFS or just a bug? Is the zio allowed to
fail if it can't write enough copies?
Who can help explain the result?
-------------------------------------------
illumos-zfs
Archives: https://www.listbox.com/member/archive/182191/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182191/23047029-187a0c8d
Modify Your Subscription: https://www.listbox.com/member/?member_id=23047029&id_secret=23047029-2e85923f
Powered by Listbox: http://www.listbox.com