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.

[Script] Status of parity check/rebuild using CLI.

Featured Replies

Not sure if anything like this exists already - never found anything in my brief searches a few years ago. Decided to post what I built - using info I scoured on these forums and elsewhere. Just wanted to share what I had - in case this helps anyone else.

The script uses information Unraid provides as updates in /var/local/emhttp/var.ini. The script is by now means complete and clean - but it gives me a fairly good idea of time to parity check/rebuild completion and/or current status. There's no clear error-checking either - consider this beta code at best. It does not write any data to any partitions - the worst it will do is provide inaccurate data.

Script execution

The script can be run on its own to show current status of data/parity check/rebuild.

root@daffy2:~# rstat

   Type:  check P Q

Current:  17125324848 ( 17.54 TB )

   Size:  19531825100 ( 20.00 TB )

Percent:  87.68%

If you pass a numeric value it will estimate the current speed and show a completion time - based on that speed.

root@daffy2:~# rstat 20

   Type:  check P Q

Current:  17041739152 ( 17.45 TB )

   Size:  19531825100 ( 20.00 TB )

Percent:  87.25%

  Speed:  136.58 MB/s ( 20 seconds average )

Remain:   5.06 Hours

Edit - The attached .txz places the script, named rstat, in /usr/loca/bin. I placed this file in /boot/extra/ so it is loaded into Unraid filesystem upon each boot. Not sure if this is the best approach. I'm open to ideas - but this seems to work great for me.

rstat-screenshot.png

rstat-0.8.5-custom.txz

Edited by nocternal
Additional info

If you have the parity check tuning plugin installed then you get the new command 'parity.check' installed that allow you to query the parity check status amongst other things. It does not provide exactly the same information as your script (although it would be easy to enhance it to do so if there is a demand).

Do you want me to enhance the "parity.check status" command in the parity check tuning plugin to provide the additional detail so you do not need to maintain your script?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.