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 to gather cache drive usage info?

Featured Replies

I am thinking of getting an SSD to replace my 1.5TB WD green cache drive but I am not sure what size to get.  I currently have my TV recordings save to my unRAID cache drive prior to being moved to the array so I have fair amount of data that gets written to the cache drive every day.  My issue is that since they are TV recordings and the amount that I rerecord everyday changes is there a script that can be run before the mover runs to look to see how much GB's of data are on the cache drive and save/add it to a text file?  This way I can make a more informed decision on what size drive I would get.

 

I know that I can get a smaller SSD and have the mover run more often but this is not ideal for me.  I am runing my unRAID on a ESXi server with the TV tuners running in another VM so I will see an increase is speeds because I am not limited gigabit.

you can add something custom to the mover.

here's an example (that I have not tried).

 

after then following line.

cd /mnt/cache

 

date > /tmp/mover.$$

du -hs /mnt/cache/* >> /tmp/mover.$$

todos < /tmp/mover.$$ >> /boot/logs/mover.txt

rm /tmp/mover.$$

 

or put it in syslog (Which may not be kept as long)

 

du -hs /mnt/cache/*  2>&1 | logger -tmover_du

  • Author

you can add something custom to the mover.

here's an example (that I have not tried).

 

after then following line.

cd /mnt/cache

 

date > /tmp/mover.$$

du -hs /mnt/cache/* >> /tmp/mover.$$

todos < /tmp/mover.$$ >> /boot/logs/mover.txt

rm /tmp/mover.$$

 

or put it in syslog (Which may not be kept as long)

 

du -hs /mnt/cache/*  2>&1 | logger -tmover_du

 

where can I find the mover?  I am using v5.0.5 with dynamix.

/usr/local/sbin/mover

 

Any changes you make will not survive a reboot. You can store the mod on flash somewhere and copy it in the go script.

 

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.