[SOLVED] Made ZFS raid with ashift=12 on 512n Drives, will this effect performance?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As you can see I used ashift=12 even though my disks are 512n(4x WD Re4 WD1003FBYZ 1TB 64MB Cache) so when a drive gets replaced I can use 512e or true 4Kn Hard Disks
Will this slow my raid ? and/or Will this effect the raid in anyway ?
Last edited by User9; 09-05-2017 at 12:07 PM.
Reason: Text Code
As of 2014, there are still 512-byte and 4096-byte drives on the market, but they are known to properly identify themselves unless behind a USB to SATA controller. Replacing a 512-byte sector drive with a 4096-byte sector drives in a vdev created with 512-byte sector drives will adversely affect performance. Replacing a 4096-byte sector drive with a 512-byte sector drive will have no negative effect on performance.
Looking at this information it seems that if a raid created for 4Kn drives(ashift=12)
won't take a performance hit when a 512n drive is put in the raid then I should be okay as
the new 512n drive would inherit ashift=12 from the raid. So I'm going to assume it should
be fine, you just lose a little space.
I would like to update this again as I have recently got a new set of drives that are 512e these disks are on average 30 MB/s faster per a disk. This is with all the same stats 64MB Cache and 7200RPM. So one would think that if you had a set of these disks going at avg. 161.68 MB/sec and replaced one with a 512n going at 131.48 MB/sec it would slow the whole raid down.
But it still holds true that formatting with ashift=12 is the better option in this situation. Or any situation for that matter unless you have 512n disks and want the most space(over performance) and don't ever plan on using 4Kn drives in the raid.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.