Raid 1 verschwindet beim Plattentausch

  • The error code implies something is being used;


    mdadm --detail /dev/md127

    • Offizieller Beitrag

    yes, after a reboot. But also only after the new disk was involved in raid. Then the RAID was then inactive and could be stopped.

    Ok your data is still there on /dev/sdb.


    The error implies that something is accessing the array or OMV doesn't like something in the config, I assume you have added the new drive and wiped it, make a note of it's drive reference /dev/sd[?] and reboot, once back up check cat /proc/mdstat then try and stop the array.


    At present I am at a loss as to why the array will stop now because it should.

  • Unfortunately, the RAID could not be stopped even after a reboot...
    I did another reboot with another old disk. Now the raid is gone.




    Now I can stop the raid
    mdadm --stop /dev/md127
    mdadm: stopped /dev/md127


    Now I cann start the RAID
    mdadm --assemble --run /dev/md127 /dev/sda
    mdadm: /dev/md127 has been started with 1 drive (out of 2).


    current status is:


    Code
    cat /proc/mdstat
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
    md127 : active raid1 sda[2]
          1953383512 blocks super 1.2 [2/1] [U_]
          bitmap: 4/15 pages [16KB], 65536KB chunk
    
    
    unused devices: <none>

    Next step would be to stop the RAID, right? Can we continue tomorrow?

    • Offizieller Beitrag

    Ok we need to go back to square one, I am making no sense of the above, this should all be simple and straightforward, what I don't want to happen is for us to get frustrated. What would help is for me make to take some output details copy and paste then to word doc, this will help me go back and review. To do that you'll need to put the two original Raid drives back in and post the output of the first 5 options from here
    If this continues to fail then it has to be something related to the hardware, which BTW I haven't asked about perhaps some detail on that might help.


    My apologies for this, but it should just work :)

  • Hello,
    I like to join in and am grateful that you help me. There is no reason to apologize.
    It just got late yesterday and I was tired.




    As far as I understand I have to go back to the original RAID. That put old plates in it and two commands that do not cause sync again:


    mdadm --stop /dev/md127


    mdadm --assemble --run /dev/md127 /dev/sda /dev/sdb
    Assuming the disks sda and sdb are the RAID disks.


    Right? I make step by step ...

    • Offizieller Beitrag

    As far as I understand I have to go back to the original RAID.

    Yes, you should be able to shutdown add the removed drive back, then reassemble, mdadm --assemble /dev/md127 /dev/sd[ab] the Raid should come back up clean, only do that if it doesn't come back up clean.

  • OK, I have the old disk installed and restarted.


    Status after restart:

    Code
    cat /proc/mdstat
    Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
    md127 : active raid1 sdb[2]
          1953383512 blocks super 1.2 [2/1] [U_]
          bitmap: 10/15 pages [40KB], 65536KB chunk
    
    
    unused devices: <none>


    then command
    mdadm --assemble /dev/md127 /dev/sd[ab]
    and the error code comes

    Code
    mdadm: /dev/sdb is busy - skipping
    mdadm: Found some drive for an array that is already active: /dev/md/Zangs
    mdadm: giving up.


    I think I have to stop the RAID first. What are the next steps?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!