Raid fail : how to destroy it ?

  • Hi,


    my raid fail, i'd like to destroy it to use mergeFS.
    But it's always say it's busy, so i can't delete it in OMV.


    In the peripheral (sorry, maybe not the right word, i use OMV in french), i see the raid peripheral, but the status is "missing" and i can't do anything (no unmount, no delete etc)


    Thanks for your help , i can't make other file system or anything since the raid fail (but i still got acces to my data and btw, they are backuped on another NAS)

  • That is the correct command if you array is /dev/md0


    Try unmounting the filesystem with umount /dev/md0


    It might be easier to boot a rescue cd (like systemrescuecd) that won't try mounting it.

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • umount /dev/md0 give no answer


    i've made : mdadm --detail /dev/md0


    /dev/md0:
    Version : 1.2
    Creation Time : Sun Sep 16 23:22:47 2018
    Raid Level : linear
    Array Size : 21487941560 (20492.50 GiB 22003.65 GB)
    Raid Devices : 5
    Total Devices : 5
    Persistence : Superblock is persistent


    Update Time : Sun Sep 16 23:22:47 2018
    State : clean
    Active Devices : 5
    Working Devices : 5
    Failed Devices : 0
    Spare Devices : 0


    Rounding : 0K


    Name : bart-nas:stockage (local to host bart-nas)
    UUID : 8efca549:86714fd7:d3d0ebc2:67a522cc
    Events : 0


    Number Major Minor RaidDevice State
    0 8 0 0 active sync /dev/sda
    1 8 32 1 active sync /dev/sdc
    2 8 64 2 active sync /dev/sde
    3 8 80 3 active sync /dev/sdf
    4 8 96 4 active sync

  • i have to delete the reference ?

    Technically no :) mdadm should stop the raid, the only other option would be stop services or remove smb, rsync or anything referencing the shares, I think that's why the suggestion using the systemrescuecd might be the better option and you can load from omv-extras.

  • but i wont have a GUI, so i'll have to destroy the raid with command lines and i don't know how to do (i guess you already realized i'm a bit noob in linux )

    cat /proc/mdstat will show you the array name (probably still /dev/md0) and the drives that are in the array. Post this output if you want help with next commands.
    mdadm --stop /dev/md0 will stop the array
    mdadm --zero-superblock /dev/sdX will wipe the array info from the drive specified (replace the X in sdX with one of your drives)
    wipefs -a /dev/sdX will wipe any signatures from the drive
    dd if=/dev/zero of=/dev/sdX bs=1M count=2000 will zero the first 2000 megs of the drive (just something I like to do).
    repeat until all drives

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • i got n/a in all collumns, and missing in statuts, i can't remove it in web client , there is a way to do with command line ?

    Does it say it is referenced? You should be able to delete it from the web interface if it is not referenced. If it is referenced, delete the shared folders using it (you will have to remove those shared folders from the services if they are in use).

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Install the openmediavault-resetperms plugin and it will add a tab - Access Rights Management -> Shared Folders -> Shared Folders in Use. It will show you where it is being referenced.

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    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!