wipe 2 disks coming from an other NAS

  • Hi,

    I have successfully installed OMV7 on my new Ugreen NAS 2 bays.
    Before installing OMV, I had the UGOS (the native ugreen os also debian based).

    Now I want to start a fresh install and need to wipe the 2 disks.
    Those are 2 identical TOSHIBA MG09ACA16TE

    When I am on Storage|Disks and select any of the 2 disks and choose Wipe and Quick, I have this error:


    Code
     500 - Internal Server Error Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; blockdev --rereadpt '/dev/sdb' 2>&1' with exit code '1': blockdev: ioctl error on BLKRRPART: Device or resource busy 

    I repeated this operation about 10 times.

    How can I wipe those disks to be able to start fresh with those?
    I will use Raid1

    thank you

    • New
    • Official Post

    If those disks have a raid array on them, you need to stop the array.

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | 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!

    • New
    • Official Post

    How do I stop the array?

    get the name of the array with cat /proc/mdstat. Then stop it with sudo mdadm --stop /dev/mdX. You might be able to delete the array in the openmediavault-md plugin too. I haven't tried though.

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | 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!

  • If those disks have a raid array on them, you need to stop the array.

    ryecoaaron, I think I find a way:
    I start a secure wipe (not quick) and stopped after few lines.
    I did this in both disks. Now I start the wipte: quick and it worked.
    There are no error messages. created a raid1 now in OMV.
    I dont see a pool!
    I now see /dev/sdb with a total of 29.10TiB
    The disks are 16T x2
    Should I not see only 16T available since raid1 use one disk as a copy?

    Am I doing something wrong?

  • Have you installed the MD plugin on OMV7? Because it looks like you've created BTRFS RAID1 profile.

  • Yes to your question.


    OMV7 does not use the term "pool" to describe a collection of disks in either MD RAID1 or a BRTFS RAID1 profile.


    You must have created a BTRFS RAID1 Profile as you currently have a single filesystem of 29TB (approx 2 x 16 TB) which it will not show as the size you expect until you start adding data to this filesystem.


    If you had previously created a RAID1 under UGOS, then that was probably using MD RAID which AFAIK can be formatted with EXT4 or BTRFS in the UGOS.


    If you want a traditional Linux software raid mirror install and use the Multiple Device plugin. But you will have to unmount the existing BTRFS filesystem and wipe boot the hard rives first.

  • maybe I dont understand how RAID works or how it works in OMV.


    My goal is to have RAID1 formatted in BTRFS
    It seems I can do that by simply wipe the disk and create and mount a file system. Choosing the file system I want (BTRFS) and the disks to be used after selecting RAID1.
    Would that give me a raid1? (the creation process seem to me too quick to mirror 16TB )

    Code
    Label: none uuid: e32f6490-c13a-434b-8039-1d94d100e3a3
     Total devices 2 FS bytes used 160.00KiB
     devid 1 size 14.55TiB used 2.01GiB path /dev/sda
     devid 2 size 14.55TiB used 2.01GiB path /dev/sdb
    Data, RAID1: total=1.00GiB, used=0.00B
    System, RAID1: total=8.00MiB, used=16.00KiB
    Metadata, RAID1: total=1.00GiB, used=144.00KiB
    GlobalReserve, single: total=5.50MiB, used=0.00B


    What do you mean with "If you want a traditional Linux software raid mirror"?
    sound like if I dont use MD, there is a non traditional form of Raid mirroring?


    PS
    I have installed MD

    when the installation finished, I got kicked out the webUI with a message"software failure... could not read the all thing.
    could not reboot not even SSH the nas. I had to pull the plug.
    Now I am back but it does not connect with domain name, only IP address.
    I dont know what the MD has done but made things different!

  • maybe I dont understand how RAID works or how it works in OMV.


    My goal is to have RAID1 formatted in BTRFS


    Your goal can be achieved in two ways in OMV. A "RAID1 formatted in BTRFS" means creating a RAID level 1 (mirror) device first and then creating and formatting and mounting a BTRFS single profile filesystem on top of the RAID device. But you cannot do the first step unit you install the "Multiple Device " plugin.


    What you have already done is to create a BTRFS filesystem which spans your two 16TB drives and has a RAID1 storage profile as shown in the details you posted above. No additional plugins are needed. I would call this a "BTRFS RAID1" as there is no MD device.


    Unlike MD RAID, there is no extended build time when creating a BTRFS RAID1.


    I assume you picked BRTFS as your filesystem for a reason. If you want to learn more about BTRFS see here: https://wiki.tnonline.net/w/Btrfs/Features or https://btrfs.readthedocs.io/en/latest/.

  • Ok, thank you.

    Macom posted a really good link: https://www.dont-panic.cc/capi…rfs-raid1-vs-mdadm-raid1/

    Things are getting clear what to use.


    As a since note, as soon as I installed MD, my system became unresponsive and I actually lost the SMB service (is there but cant be founds from any of the computers I have).
    Sounds illogical that MD did anything on the SAMBA service but it just happen at the very end of MD installation. Nor I can access it with domain name anymore!

  • If you want to repeat the questions on this thread that you asked here: RE: Raid Setup Settings you might get an answer ( it's not possible to "quote" from another thread ).

    Not sure I understand what you mean here.
    I got to the conclusion that BTRFS RAID1 is best over BTRFS RAID1 MD from the article I mention.
    That article explained very well what is the difference among the 2 options.

    I got to understand that MD is best for Ext4 but not so much for BTRFS!

    In case I got that the wrong way, Please let me know.

  • kattivius

    Added the Label resolved

Participate now!

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