Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

migrating existing Debian stretch to raid 1

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
PaulD
Posts: 1
Joined: 2018-03-22 17:37

migrating existing Debian stretch to raid 1

#1 Post by PaulD »

Hello,

I've an existing Debian 9/stretch installation that I'd like to migrate to a raid 1 setup.

I've search around but most of the how to's I've found seem to be a bit dated.

Anyone got a link to a more recent one ?

I'm pretty new to this.

Thanks

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1418
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 80 times
Been thanked: 191 times

Re: migrating existing Debian stretch to raid 1

#2 Post by steve_v »

The Arch Wiki looks about right. The grub hand-editing can be ignored, just install to both member disks & update-grub. Check that the rootfs uuid is right in grub.cfg, if you use them.

make degraded array(s)
copy system
chroot in
install grub
rebuild initramfs
update fstab
reboot
add old disk.

Same as it ever was...

Everything up until the last step is easily reversible, but you have backups already, right?
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: migrating existing Debian stretch to raid 1

#3 Post by p.H »

steve_v wrote:rebuild initramfs
update fstab
I recommend to update fstab before rebuilding the initramfs.
steve_v wrote:reboot
Make sure you reboot using the new disk.
steve_v wrote:add old disk.
to the RAID array.
Reinstall GRUB on the old disk.

Post Reply