Sector Alignment Error when Replacing Device

Moderators: jhartley, MSR734, nola

Sector Alignment Error when Replacing Device

Post by hendrst1 » Wed Jan 02, 2013 11:59 pm

Guys,

I am trying to replace a disk in a pool of 2 mirrored pairs but am getting a "devices have different sector alignment" error. The current vdev is a mirrored pair of identical 1 Tb drives; I am replacing one of the disks with a WD 2TB green drive and will replace the second one shortly with another 2 TB drive. Can this be fixed with the sector alignment command with the replace command?
hendrst1 Offline


 
Posts: 14
Joined: Sun Nov 25, 2012 2:15 pm

devices have different sector alignment

Post by grahamperrin » Thu Jan 03, 2013 12:22 am

For the affected pool, please

Code: Select all
zpool get ashift nameofpool


DuckDuckGo finds foremost this point (2012-11-10) in the following topic:

Very recent: ZFS and Advanced Format disks (2012-12-17)
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Overriding the physical block size

Post by grahamperrin » Thu Jan 03, 2013 12:37 am

hendrst1 wrote:… Can this be fixed with the sector alignment command with the replace command?


If I understand correctly from the recent addition to the illumos wiki, the override is possible with illumos … and so, I guess, possible with OpenIndiana. If this approach is to be taken with OI in a virtual machine then (depending on the VM implementation) you might temporarily uninstall ZEVO so that dynamism at the host (OS X) level does not get to the device before the guest (OI).

HTH
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Sector Alignment Error when Replacing Device

Post by hendrst1 » Thu Jan 03, 2013 9:18 am

Thank you, Graham. I have avoided the problem for now as I have another non-advanced format 2 TB drive that is not in a ZFS pool and will use that instead. Looking ahead, though, when I need to increase capacity in the older pool I'll either have to find non-AF large drives or buy all new AF drives and replace the whole pool. Oh well.
hendrst1 Offline


 
Posts: 14
Joined: Sun Nov 25, 2012 2:15 pm

Re: Sector Alignment Error when Replacing Device

Post by hendrst1 » Thu Jan 03, 2013 12:46 pm

Graham, when I add the second 2 TB disk to the mirror will it automatically reflect tHe larger size or do I have to set it manually with some command like auto expand?
hendrst1 Offline


 
Posts: 14
Joined: Sun Nov 25, 2012 2:15 pm


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 1 guest

cron