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
Mdadm RAID 1 power save
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.
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.
Mdadm RAID 1 power save
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Mdadm RAID 1 power save
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
Re: Mdadm RAID 1 power save
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.
Re: Mdadm RAID 1 power save
Anyone? Can someone, maybe, move the thread somewhere, where it's gonna be read more often?
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Mdadm RAID 1 power save
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.
Re: Mdadm RAID 1 power save
Even if it meant leaving them on for 10 hours straight every day?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.
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Mdadm RAID 1 power save
Even if it means leaving them on 24x365.dennnic wrote: ⤴Tue Apr 24, 2018 9:49 amEven if it meant leaving them on for 10 hours straight every day?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.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.