Mdadm RAID 1 power save

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dennnic

Mdadm RAID 1 power save

Post by dennnic »

Hello,

Found a very informative guide on how to set up and auto-mount a raid1 volume, based on 2 hdd, of course.
It seems to be working fine, someone on "pcsteps" wrote a very foolproof article, I'd like to thank him for it, if he ever reads this thread.

However, if mounted, the drives are active all the time. There is no power save option, or spin down, or anything similar, none that I can find, at least. When I manually unmount the volume using disks (gnome disk utility?), the two drives do shut down eventually, after predetermined time. Unfortunately, volume then needs to be manually mounted again.

Since the OS is installed on a third drive (ssd), raid1 volume would be used strictly as a data storage and it wouldn't be needed roughly 80% of the time the PC is on.

Is anyone aware of an in-between option - always mounted (or, at least, a shortcut shown on desktop), but powering off when not used? I don't mind the "latency", waiting for a half a minute every time is fine, as long as it extends the life of my drives.


Thanks ahead,
Regards,
Stefan
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Mute Ant

Re: Mdadm RAID 1 power save

Post by Mute Ant »

Leave them mounted and talk to the drive hardware. As soon as Linux needs to access something in the RAID they will spin up again...
sudo hdparm -Y /dev/sda ; sudo hdparm -Y /dev/sdb
dennnic

Re: Mdadm RAID 1 power save

Post by dennnic »

It won't do the trick. They come back online the same moment I issue the command. There must be something using them all the time.
dennnic

Re: Mdadm RAID 1 power save

Post by dennnic »

Anyone? Can someone, maybe, move the thread somewhere, where it's gonna be read more often?
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Mdadm RAID 1 power save

Post by catweazel »

dennnic wrote: Fri Apr 20, 2018 10:14 am I don't mind the "latency", waiting for a half a minute every time is fine, as long as it extends the life of my drives.
Drives are best left powered up. Spinning up a HDD induces torsion stress in the drive spindle, which promotes failure. Power cycles are counted by the drive's firmware (SMART) precisely because once they reach a certain threshold they shorten the life of the drive, which is the exact opposite of what you wish to achieve.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
dennnic

Re: Mdadm RAID 1 power save

Post by dennnic »

catweazel wrote: Tue Apr 24, 2018 6:58 am Drives are best left powered up. Spinning up a HDD induces torsion stress in the drive spindle, which promotes failure. Power cycles are counted by the drive's firmware (SMART) precisely because once they reach a certain threshold they shorten the life of the drive, which is the exact opposite of what you wish to achieve.
Even if it meant leaving them on for 10 hours straight every day?
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Mdadm RAID 1 power save

Post by catweazel »

dennnic wrote: Tue Apr 24, 2018 9:49 am
catweazel wrote: Tue Apr 24, 2018 6:58 am Drives are best left powered up. Spinning up a HDD induces torsion stress in the drive spindle, which promotes failure. Power cycles are counted by the drive's firmware (SMART) precisely because once they reach a certain threshold they shorten the life of the drive, which is the exact opposite of what you wish to achieve.
Even if it meant leaving them on for 10 hours straight every day?
Even if it means leaving them on 24x365.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
dennnic

Re: Mdadm RAID 1 power save

Post by dennnic »

Thank you for your answer! Will do just that.
Locked

Return to “Beginner Questions”