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.

How to programmatically check if parity in progress??

Featured Replies

Hi all.

 

I have scrip in /etc/cron.hourly which check open files. If nothing is open files then call powerdown.

 

But if parity check is progress then is not open (output of lsof command/program) and my script call powerdown. This is bad.

 

I can check if parity check in progress. How I can programmatically check parity progress?

 

 

 

Very thanks for anyu answer

 

One way I know of is

 

echo "status" > /proc/mdcmd

cat /proc/mdcmd > /tmp/mdcmd.$$

RESYNC=`grep "^mdResync" /tmp/mdcmd.$$ | cut -d "=" -f2`

rm -f /tmp/mdcmd.$$

 

Inspect value of the mdResync.

I'm sure there are ways to shorten this, but this is just a quick off the cuff way.

  • Author

WeeboTech, very thanks for answer. I try it and write result if this working fine.  :)

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.