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-raid-...
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.
-- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)