![]() ![]() Ln -s initrd-`uname -r`-raid.img /mnt/boot/ ![]() print | cpio -o -Hnewc | gzip -c > /mnt/boot/initrd-`uname -r`-raid.img Sed -i 's/raidautorun \/dev\/md0/raidautorun \/dev\/md0\nraidautorun \/dev\/md1\nraidautorun \/dev\/md2/' initįind. Zcat initrd-`uname -r`-raid.img | cpio -i Mkinitrd -v -fstab=/mnt/etc/fstab /mnt/root/initrd-raid/initrd-`uname -r`-raid.img `uname -r` Mkdir /mnt/root/initrd-raid & cd /mnt/root/initrd-raid ![]() Sed -i 's/LABEL=*/\/dev\/md0/' /mnt/etc/fstab # Update fstab for new RAID device Yes|mdadm -create /dev/md2 -level=1 -raid-devices=2 /dev/sdb3 missing # Create md0 (storage)Ĭp -xR -preserve=all / /mnt # Replicate root files Yes|mdadm -create /dev/md1 -level=1 -raid-devices=2 /dev/sdb2 missing # Create md0 (swap) Yes|mdadm -create /dev/md0 -level=1 -raid-devices=2 /dev/sdb1 missing # Create md0 (root) # Sleep 5 seconds here if you script this. sgdisk -R/dev/sdb /dev/sda # Replicate partion table from /dev/sda to /dev/sdb with unique identifier We can convert it to RAID after installation.įirst we set up the 2nd disk by copying the partition tables whilst enabling a degraded RAID on it, then copy data over with custom initrd. Historically XenServer does not support software RAID out-the-box, and this is unchanged in the latest 6.2 release. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |