On Wed, Jan 9, 2019 at 11:33 AM stakanov
wrote: # cat /proc/mdstat Personalities : [raid1] md127 : active raid1 sdc1[0]
976760640 blocks super 1.0 [2/1] [U_] bitmap: 8/8 pages [32KB], 65536KB chunk
unused devices: <none>
...
When things go South on you for unknown reasons, the active disc is sdd1 instead.
Both should be the same….but aren’t. Sdd1 should not be named as unused in yast when sdc1 is used. And sdc1 and sdd1 should not flip within the RAID and should contain the very same information. What is wrong here? I do not understand.
It is obvious that now your RAID1 consists of single disk. Even if you repeat "should be the same" million times it is not going to change anything. You need to add second disk to RAID to fix it.
mdadm --manage /dev/md127 --add /dev/sdd1
or whatever your second partition is. To be on safe side (because it is not clear in which state second partition is) I'd probably perform wipefs on this partition so it adds it as new and performs full copy.
And no, I do not know how it happened. Apparently at some point you booted with only disk present. You did it two times, with two different disks. It resulted in removing second array member from each disk. At this point you had two disks each believing it is the only valid member of the same array. From now on it was the matter of which disk was detected first on boot. This is very sensible, the faulty PSU may have decided (so to say) on the available electrical power. When it was insufficient to maintain alive the two it randomly switched off one of the discs..until it went down for good recently. I do see this machine only every 6 month and the user is not able to perform major actions on it. So I had to repair the PSU first and then stumbled on
In data mercoledì 9 gennaio 2019 12:14:43 CET, hai scritto: this while controlling the disks. How to perform wipefs on that disc (that is, sdd1)? su - wipefs -af /dev/sdd1 mdadm --manage /dev/md127 --add /dev/sdd1 Is this correct? Do I have to umont sdd1? It is "unused" so probably not mounted. If so, how to I have to remount it in order to add it to the RAID? Or would the mdadm command would just suffice? Do I have to tell the raid to mirror the data or does it automatically? How can I see when it did finish to mirror the data? Thank you. _________________________________________________________________ ________________________________________________________ Ihre E-Mail-Postf�cher sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org