I would like to keep some disks offline, for example two internal and one external on USB, and take them online at a certain time.
How can I do?
I would like to keep some disks offline, for example two internal and one external on USB, and take them online at a certain time.
How can I do?
The thread refers to manually connected disks, this is not what I meant because instead I am referring to an automatic management of mounting and dismounting of disks.
My idea might be that some disks are connected and configured, but not mounted.
Obviously in this case they are not accessible to users or to the same services as the NAS, for example they are not accessible for backup.
However, a script could mount them and this script can be started at a certain time or launched by a service.
A second script will then unmount the disks at a second time or even this launched at the end of that hypothetical service.
If these disks are not used/managed by OMV itself you can just write a script as you mentioned.
With "not used/managed by OMV" I mean
So basically, OMV is just not aware of these drives.
You could use a scheduled job to run the script which basically mounts the drive, one or more rsync jobs and umounts the disks.
If these disks are not used/managed by OMV itself you can just write a script as you mentioned.
With "not used/managed by OMV" I mean
- not mounted from the GUI of OMV
- no shared folders created and used by OMV
- no services like SMB, SMART configured using OMV
So basically, OMV is just not aware of these drives.
You could use a scheduled job to run the script which basically mounts the drive, one or more rsync jobs and umounts the disks.
Instead I am thinking of OMV managed services on disks that can go offline.
For example the two disks are mirrored and have SMB folders.
Obviously when they go offline the disks are not accessible, nor the folders; everything is available again as soon as the disks are still online.
The important thing is that you do not lose the configuration of the services.
Off topic to your original question.. Not sure how old your drives are but I would never put WD Green's in a RAID. Back when I ran a RAID, I had several fail repeatedly after only a few months, deal w/ warranty returns, fail again, etc.. Finally nuked the RAID and they were still working when I upgraded the drives in my server about 6yrs later.
Instead I am thinking of OMV managed services on disks that can go offline
That is the topic of the thread I linked in #2. This is not possible with OMV. OMV is designed to have drives mounted permanently (except USB connected drives using the USB Backup plugin)
Possibly: mount -o bind offline online (although I'm not sure how OMV accesses the disks).
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!