How do I remove a drive from a mergerfs-pool?

  • 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.

    3x OMV-NAS systems with ASUS H87I-PLUS

    • Official Post

    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.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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.

    3x OMV-NAS systems with ASUS H87I-PLUS

    • Official Post

    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

  • 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

    • Official Post

    My favorite is rsync.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    For copying/moving files from one local drive to another?

    Yep.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    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.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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.

    3x OMV-NAS systems with ASUS H87I-PLUS

    Edited once, last by tsch ().

  • 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.

    Raspi 4B, 4GB RAM, SSD-Boot, 2TB & 1TB SSD as data-disks in Sata/USB enclosure, IcyBox USB3-Hub

  • 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

    Raspi 4B, 4GB RAM, SSD-Boot, 2TB & 1TB SSD as data-disks in Sata/USB enclosure, IcyBox USB3-Hub

    • Official Post

    I have used -avr since I started using linux haha.

    omv 7.4.14-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.2.16 | k8s 7.3.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!