The Publisher:
Collective Ink Ltd, Laurel House, Station Approach, Alresford, Hampshire, SO24 9JH, United Kingdom
The Licensee:
Herman Semenov <[email protected]> (Foreign Publisher and address)
Street: Terschellingsestraat 64
City: Rotterdam
State/province/area: Zuid-Holland
Zip code: 3083 PH
We need to add the new partition to mdadm to create RAID 10, format it with ext4
mdadm --create /dev/md0 --level raid10 --name raid10 --raid-disks 4 /dev/sdb /dev/sdc /dev/sdd /dev/sde
# type y to continue
after create md0
, we need to format with ext4
mkfs.ext4 /dev/md0
use lsblk -f
to check partitions and FSTYPE
We need to copy old data from old partition ext4 /dev/sda2
to new partition /dev/md0
, first create two folders to mount the two partitions and then clone data with rsync or cp...
cd /mnt
go to path /mnt
, I prefer this path because we are going to mount /mnt
, you can create it wherever you want, and mount it
mkdir md0 var
mount /dev/md0 md0
mount /dev/sda2 var
Before this command check very well before, because it has attribute -delete
, it deletes files in the destination /md0
that are not found in the source /var
check "Copy entire file system hierarchy from one drive to another" and "rsync how to do a checksum on rsync" links
rsync -axcHAWXS -delete --numeric-ids --info=progress2 var/ md0/
And GRUB install in RAID10 array using command:
grub-install /dev/md0