Raid vs. non Raid - spindown

    • OMV 2.x
    • Resolved
    • Raid vs. non Raid - spindown

      I have a huge amount of data. Some is not important at all (like TV recordings), other is vital. All my important data is on a Raid 5 - with a cyclic backup job to an external hard drive.

      I do care about energy consumption, so I installed the autoshutdown plugin and set a spindown time for all physical hard drives, except the system drive, which is a NAND stick.

      Currently my NAS has 3 WD Red harddrives configured as Raid 5. Now I'm thinking about moving another hard drive (3 TB WD red, from Nix-based DVB receiver) to the NAS.

      So I could either expand my Raid 5 (gaining overall performance) OR I could use the new drive as a separate volume.

      Now to my question: Will spin-down work on a per volume basis? Will my Raid 5 go to sleep if I place my recordings on a non-raid disk and no shares on the raid are being used at that moment? Or is spin-down handled on system basis? My primary concern is wear of raid disks.

      thx for any help,

      Thomas
    • Spinning down the Raid disks works like charm. I installed another hard drive (non Raid) and set up a spin down time of 15 mins. I want the Raid5 to spin down after 30 mins if not needed (= no busy share on Raid), and I want my new drive to do the same (= no busy share on that drive). It's not possible to hear any difference, since the fans in the enclosure are too noisy. Will spin down work for both volumes independently? If so, I'm happy.
    • you can open a shell and use

      Source Code

      1. hdparm -C /dev/sda


      if you get "active/idle" the drive sda is spinning
      if you get "standby" the drive sda is down

      I use a small script to check the status of the drives (in my case sda, sdb and sdc). The script writes the result with a time stamp in three files (hdparma, hdparmb and hdparmc). I run a regular cron job to execute the script (e.g. every 10 min).

      Shell-Script

      1. #!/bin/sh
      2. #
      3. # Place this in /usr/local/bin/
      4. # Call: sh /usr/local/bin/checkhdparm.sh
      5. # sda
      6. date +%T%t%a,%Y-%m-%d >> /var/hdparma
      7. hdparm -C /dev/sda >> /var/hdparma
      8. echo " " >> /var/hdparma
      9. #sdb
      10. date +%T%t%a,%Y-%m-%d >> /var/hdparmb
      11. hdparm -C /dev/sdb >> /var/hdparmb
      12. echo " " >> /var/hdparmb
      13. #sdc
      14. date +%T%t%a,%Y-%m-%d >> /var/hdparmc
      15. hdparm -C /dev/sdc >> /var/hdparmc
      16. echo " " >> /var/hdparmc
      17. exit 0
      Display All


      then I have a second script which is sending me the three files once per day (also executed by a cron job)

      Shell-Script

      1. #!/bin/sh
      2. #
      3. # Place this in /usr/local/bin/
      4. # Call: sh /usr/local/bin/sendhdparm.sh
      5. sendmail -t < /var/hdparma
      6. sendmail -t < /var/hdparmb
      7. sendmail -t < /var/hdparmc
      8. (
      9. echo "To: your.mail@mail.com"
      10. echo "Subject: Status of drive sda"
      11. echo " "
      12. ) > /var/hdparma
      13. (
      14. echo "To: your.mail@mail.com"
      15. echo "Subject: Status of drive sdb"
      16. echo " "
      17. ) > /var/hdparmb
      18. (
      19. echo "To: your.mail@mail.com"
      20. echo "Subject: Status of drive sdc"
      21. echo " "
      22. ) > /var/hdparmc
      23. exit 0
      Display All
      Odroid HC2 - armbian - OMV5.x | Asrock Q1900DC-ITX - Intenso SSD 120GB - OMV5.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV5 Documentation - user guide :!:

      The post was edited 1 time, last by macom ().

    • Guys,

      I used to have SMART enabled with Standby mode in SMART Service, but my OMV keep having Smart Prefailure Attribute Spin Up Time Change whenever OMV boot up, so I turned it off.
      The settings was to check every three hours.
      Now my SMART is not running.
      How do fix this?

      @macom,

      What's the time duration that the second script check?
      Will this work for my problem?
      OMV v5.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro

      The post was edited 4 times, last by tinh_x7 ().

    • tinh_x7 wrote:

      What's the time duration that the second script check?
      Will this work for my problem?

      I run the second script once per day. I have a daily cron job for this. The sript sends me the three files by mail. When I receive the files I can check when the disk was idle and when it was in standby. After I am sure everything is working fine, I stop the cron job.
      But this is not related to your problem, I am afraid.
      Odroid HC2 - armbian - OMV5.x | Asrock Q1900DC-ITX - Intenso SSD 120GB - OMV5.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV5 Documentation - user guide :!: