LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-04-2017, 02:54 PM   #1
User9
Member
 
Registered: Mar 2016
Location: Boston
Distribution: Arch Linux, Debian, Ubuntu Server, FreeBSD, FreeNAS
Posts: 53

Rep: Reputation: Disabled
Question Made ZFS raid with ashift=12 on 512n Drives, will this effect performance?


I created a pair of striped mirrors (raid-10) with this . . .

Code:
>zpool create -f -o ashift=12 -o cachefile=/etc/zfs/zpool.cache -O normalization=formD -O atime=off
-m /mnt/zfs_pool zfs_pool mirror /dev/disk/id1 /dev/disk/id2 mirror /dev/disk/id3 /dev/disk/id4
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
 
Old 09-05-2017, 09:49 PM   #2
User9
Member
 
Registered: Mar 2016
Location: Boston
Distribution: Arch Linux, Debian, Ubuntu Server, FreeBSD, FreeNAS
Posts: 53

Original Poster
Rep: Reputation: Disabled
Looks like I've finally found my answer . . .
http://open-zfs.org/wiki/Hardware#Hard_drives

Quote:
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.

Last edited by User9; 09-05-2017 at 09:50 PM.
 
Old 09-06-2017, 02:50 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Thanks for the update and solution.
 
Old 01-29-2018, 07:28 PM   #4
User9
Member
 
Registered: Mar 2016
Location: Boston
Distribution: Arch Linux, Debian, Ubuntu Server, FreeBSD, FreeNAS
Posts: 53

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
raid, zfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ZFS performance issue / isolating bottlenecks bucovaina78 Linux - Desktop 2 09-24-2013 07:13 AM
[SOLVED] RAID 5 with even number of drives gives bad write performance. Why? dbrazeau Linux - Software 2 10-28-2010 11:37 AM
Would setting these drives in a RAID array give me significant performance increase? annihilan Linux - Hardware 1 12-06-2009 07:10 AM
Does mounting 2 drives to one point give the raid effect joshuarowley Linux - Software 6 01-09-2006 08:52 AM
Changes made to /etc/rc.conf have no effect jnt *BSD 4 12-16-2005 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration