On 19/07/2019 12.03, stakanov wrote:
In data venerdì 19 luglio 2019 11:27:48 CEST, Carlos E. R. ha scritto:
On 19/07/2019 10.06, stakanov wrote:
Very nice. Thank you.
this actually to work: mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/sdb1
and creates the array.
It is possible the intention was (a single line): mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/sdb1 missing -n, --raid-devices= Specify the number of active devices in the array. This, plus the number of spare devices (see below) must equal the number of component-devices (including "miss- ing" devices) that are listed on the command line for --create. Setting a value of 1 is probably a mistake and so requires that --force be specified first. A value of 1 will then be allowed for linear, multipath, RAID0 and RAID1. It is never allowed for RAID4, RAID5 or RAID6. This number can only be changed using --grow for RAID1, RAID4, RAID5 and RAID6 arrays, and only on kernels which provide the necessary support. That is, a raid with 2 componenents: one sdb1, the other is "missing".
Then missing mkfs -text4 /dev/md0 creates the defective RAID1 with ext4 as /dev/md0
Yes. But add a label.
I then did mkdir /temporaryraid and then cp -ax /home /temporaryraid/
and it does it. I will then umount and logout, do the rest in root, mount / dev/md0 as home and start again the system. I all is well, I will the erase the original home and join the new/old hdd to be part of the RAID1
You need to purchase another disk for the backup. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)