On 19 September 2016 at 20:12, 郑圆杰 <zhengyuan...@briphant.com> wrote:
> I have created an zpool with ashift=9.

How did you do this?  Just by using disks with native 512 byte
sectors, or through some other mechanism?

> Now  a disk is out of service. And I try to replace with a new disk.

Is the replacement disk a different model from the original disk?

> Unfortunately, new disk reports that the physical sector size is 4k. Some 
> error occurs when trying exec command “zfs replace”/ “zfs attach”.

Do you know if the new disk is an "Advanced Format" disk (aka "512e")?
 That is: does the new disk present 4KB physical sectors, but provide
emulation for legacy 512 byte sectors?

If the new disks are 4K native, I'm afraid you cannot use them in an
ashift=9 pool.  If the disks _do_ provide an emulated 512 byte logical
sector size, you might be hitting this bug:


If these _are_ Advanced Format (512e) disks, you might want to try
this custom patched platform:


This custom platform image includes an attempted fix for OS-4718 which
should help.  Source diff for the platform build is here:


Let me know how it goes!


Joshua M. Clulow
UNIX Admin/Developer

Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
Powered by Listbox: http://www.listbox.com

Reply via email to