V
V
Vitaly2015-12-17 14:38:42
linux
Vitaly, 2015-12-17 14:38:42

How to clone a server on linux from RAID1 to new RAID1?

Hello! Can you please tell me how to transfer a system that is installed on a RAID1 array to a new RAID1 array?
I want to change from old HDD to SSD

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2015-12-17
@BuriK666

rsync then grub-install

L
lovecraft, 2015-12-21
@lovecraft

if the size is the same, then:
1. Copy the partition table via sfdisk
2. Create a new RAID1 via mdadm
3. Copy the FS from the old RAID to the new one via partclone
4. Mount the new RAID somewhere in /newraid
5. Mount /dev, / there proc, /sys
6. We make a chroot there
7. We do grub-install, as a target we specify new disks
if the size is different, then either reduce the original one through tune2fs to a minimum, then partclone, or use rsync with the -a switch, otherwise acl will not be copied and xattr

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question