SMART shows warning for one of the drives of my mergerfs-pool.
What are the steps to remove the failing drive from the pool?
I would afterwards share this failing drive and copy the data to the remaining mergerfs-pool.
Thanks a lot for helping.
SMART shows warning for one of the drives of my mergerfs-pool.
What are the steps to remove the failing drive from the pool?
I would afterwards share this failing drive and copy the data to the remaining mergerfs-pool.
Thanks a lot for helping.
edit the pool
remove the path
try to restart the pool but it is likely in use. So reboot.
as for sharing it, the filesystem of that drive is still able to used whether it is in a pool or not.
Thanks a lot ryecoaaron.
Is there some kind of filecommander available for OMV to have a tool I can use to copy files from one drive to another?
I think this would be faster than mapping the shares to a client in the network to copy files.
Is there some kind of filecommander available for OMV to have a tool I can use to copy files from one drive to another?
You can use Debian. https://manpages.debian.org/bookworm/coreutils/cp.1.en.html
Midnight Commander is excellent.
Thanks a lot ryecoaaron.
Is there some kind of filecommander available for OMV to have a tool I can use to copy files from one drive to another?
I think this would be faster than mapping the shares to a client in the network to copy files.
Easiest to set up with full access would probably be midnight commander. It's a terminal/ssh based file manager installed with apt-get install mc and run in a terminal/ssh window with mc. This will give you full access to the server file systems.
Some other options could be webmin (DON'T use it for anything other than the file manager if you don't know what you can or can't change settings on or you could break your system), or the file browser plugin, or a file browser set up as a docker container
My favorite is rsync.
My favorite is rsync.
For copying/moving files from one local drive to another?
For copying/moving files from one local drive to another?
Yep.
rsync is great for doing folder or full drives, but if you want to "cherry pick" files, the other options are easier
It sounds like the goal was to sync from drive to another. rsync is perfect for that. And if it gets interrupted, it is one of the best to start from where you left off.
I never use a gui to cherry pick files. I use wildcards and/or tab complete to quickly build my list.
In fact I don't need any cherry picking
But how can I identify the correct source and target on the CLI? Do I have to use the moint points which are shown for every drive in Storage/File Systems?
Sorry, I have no practice using rsync right now.
Hi, I had a similar excercise to do some weeks ago and did some documentation afterwards of the activities necessary to replace a drive in mergerfs pool. Unfortunately in german language - so you would have to translate (if not possible I would do it for you)
Ausgangssituation
- 2 Drives im mergerfs pool `/srv/mergerfs/pool/`
- /srv/dev-disk-by-uuid-1...
- /srv/dev-disk-by-uuid-2...
- Altes/defektes Drive, das gewechselt werden soll: /srv/dev-disk-by-uuid-2...
- Neues Drive (nach einbinden in omv): /srv/dev-disk-by-uuid-3...
Prozedur
1. Neues Drive an USB-Hub anschließen und über omv-GUI (Datenspeicher -> Laufwerke) löschen/formatieren in ext4 -> /srv/dev-disk-by-uuid-3...
2. Im terminal mit rsync Daten von altem Drive zu neuem Drive kopieren:
`sudo rsync -av /srv/dev-disk-by-uuid-2... /srv/dev-disk-by-uuid-3...`
3. rsync nochmal starten damit man sicher ist, dass alles kopiert ist
4. In omv-GUI mergerfs Konfig aufrufen (Datenspeicher -> mergerfs -> edit) und in einem Schritt neues Drive dem pool hinzufügen und altes Drive entfernen. Save und aktivieren.
5. Erste Tests machen: Alle Daten über den pool `/srv/mergerfs/pool/` sichtbar? (zb über mc (terminal), smb, ...)
6. Altes/defektes Drive aus der omv-Konfig aushängen (Datenspeicher -> /srv/dev-disk-by-uuid-2... auswählen -> Aushängen). ggf. zuvor reboot falls "Device Busy" und nicht ausgehängt werden kann.
Thanks a lot Teschbert.
Luckily enough I'm german too
`sudo rsync -av /srv/dev-disk-by-uuid-2... /srv/dev-disk-by-uuid-3...`
rsync without -r for recursive directories?
rsync -av .... is doing a perfect job
I'm using it always this way and everything will be copied.
From rsync man-page:
-a archive mode is -rlptgoD
So, -r is part of -a
I have used -avr since I started using linux haha.
Don’t have an account yet? Register yourself now and be a part of our community!