Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

New 6TB SAS drives added, very slow parity rebuild speed

Featured Replies

I'm in the process of adding several 6TB 512e drives (physically 4k block size, but emulate 512).  Right now, my parity drive upgrade with the first drive is going *extremely* slow compared to expected speeds with this new drive, even on the portion of the drive that is larger than any other drive (ie, no reads are required)

 

All other drives in the system are <=3TB, and the parity rebuild onto the 6TB drive is currently at ~5TB position, but is only writing at <40MB/sec. The only activity is write to the new parity drive, and no reads are happening at all.  From preclear testing, even the slowest portion of this one disk writes at >175MB/sec.

 

Digging into iostat details, it looks like unraid is using write size of 512 instead of 4k, which is likely slowing this down significantly (I assume the drive internally does a read-modify-write to emulate 512B writes to a 4k physical sector?).

 

How can I tell unraid to use a 4k access size for parity checks/rebuilds? 

 

New filesystems can be done with a 4k block size which should help for the new data disks, but if my parity drive is 512e, it would also likely be faster if unraid used 4k access size for everything, not just new filesystems; is there a setting to change this as well?

Screenshot 2020-07-16 15.23.01.png

Edited by nick5429
change subject

  • Community Expert

That is almost certainly not the problem, I would guess that over 99% of drives used with Unraid are 512E, and they perform as expected, and they should as long as the partitions are 4k aligned, which Unraid does by default.

 

Posting the diags might give some clues on the actual problem.

  • Author

You're likely right, I misinterpreted the output of iostat and came to the wrong conclusion. 'write request size' is listed in kB, writes are just being buffered to 512kB chunks before written. Unlikely to have anything to do with drive block size.

 

I did a brief parity check for speed test after the rebuild finished, and a read-only parity check was going at ~110MB/sec.  Still, something's not right if the 5-6TB portion of the rebuild (when the new fast drive is the only disk active) is going at 40MB/sec, when it was >175MB/sec during the preclear

nickserver-diagnostics-20200717-1007.zip

 

"routine writes" to the array (non-cache, tested with dd) with the new 6tb drive installed go at about 40MB/sec, regardless of RMW or 'turbo write' mode.  The new drives are all 6TB SAS, and individually perform great.  Something odd showed up when testing with the diskspeed plugin, which shows that when all drives are in use -- the new 6TB SAS ones consistently take a much bigger perf hit than the legacy SATA's (when if anything I'd expect them to be faster; and alone they are faster)

 

Diags and diskspeed results attached

2020-07-17 -- diskspeed plugin.png

  • Community Expert
Writeback Cache is:   Disabled

Don't remember the command for SAS drives, but you should find it by searching the forum or googling it.

  • Author

Good catch, where do you see that in the diag reports? I found similar info digging in the syslog once you pointed it out, but not formatted like you have quoted. Is there a summary somewhere I'm missing?

 

Looks like these are the commands for SAS drives:

sdparm --get=WCE /dev/sdX
sdparm --set=WCE /dev/sdX

Possibly has to be re-enabled on every boot, from internet comments? 

 

Will give that a try and see how the 2nd parity disk rebuild goes. Initial regular array write tests with 'reconstruct write' definitely see speed improvement after enabling this on the parity drive.

  • Community Expert
2 minutes ago, nick5429 said:

where do you see that in the diag reports?

On the SMART report.

 

2 minutes ago, nick5429 said:

Possibly has to be re-enabled on every boot, from internet comments? 

Yep, some stick, others not.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.