In data venerdì 19 luglio 2019 11:27:48 CEST, Carlos E. R. ha scritto:
On 19/07/2019 10.06, stakanov wrote:
Scope: I have two discs with 4 TB. One is used as home. I wish to run home on a RAID1. But I have no means to do a backup of all data. Solution: trying to create a "broken" RAID1 with mdadm on sdb1 and copy over the data. Mount the RAID 1 as /home to see if all works. Format sda1 (current /home) and join then the disk to the RAID1.
Currently I am stuck already at the first step: With reference to: https://unix.stackexchange.com/questions/63928/can-i-create-a-software-rai d-1-with-one-device
I tried the proposed solution. The RAID1 should be EXT4. So: mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/sdb1 missing mkfs -text4 /dev/md0
................^
that's the -t
But I don't see why you type that "missing mkfs -text4 /dev/md0", it is not in the instructions. Ah, it is in a reply post. It is wrong. It should be two lines, and the "missing" must be a comment or something I don't understand.
It is possibly "-t ext4", an option to a second command, "mkfs -t ext4 ..."
Can't be "-text4" because a single dash expects one letter, not a word. For a word option you would have to use a double dash, "--help" for instance.
But, when I try I get a (for me) surprising response from mdadm: mdadm: option -t not valid in create mode
I am not aware that I am using an option -t in the command. So it is possible that I am commiting a syntax error. Very nice. Thank you.
this actually to work: mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/sdb1 and creates the array. Then missing mkfs -text4 /dev/md0 creates the defective RAID1 with ext4 as /dev/md0 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 _________________________________________________________________ ________________________________________________________ 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