V
vlad
Guest
I built this for my own use but thought maybe someone else will find a use for it too. Just run two scripts, first script will setup partitions on empty drives, then reboot and run second script which will complete process. It very much solves the problem for me where I have to wait for each task to complete.
Proxmox VE setup requirements:
- initramfs-tools mdadm
(apt-get -y install initramfs-tools mdadm)
- at least 4 hard drives of same size
(sda, sdb.. or hda, hdb.. and etc)
Usage:
Extract archive and switch to proxmox-raid10 directory.
./raid1.sh sda "sdb sdc sdd"
where sda is hard drive block device under /dev where proxmox installed
and "sdb sdc sdd" are blank block devices to be used in raid setup, quotes required
after reboot run ./raid2.sh to complete process.
Even though this will protect root and data volumes, you still need to mirror boot partitions to other hard drives, maybe setup cron script.
The data volume is not extended all the way, about 4gb of free space will be left for snapshots. You can fix this by removing lvreduce line from raid2.sh script.
This script was tested by me only on Proxmox VE 1.4. I can't guarantee that its safe, use it on your own risk. Very little error checking done.
--Vlad
Proxmox VE setup requirements:
- initramfs-tools mdadm
(apt-get -y install initramfs-tools mdadm)
- at least 4 hard drives of same size
(sda, sdb.. or hda, hdb.. and etc)
Usage:
Extract archive and switch to proxmox-raid10 directory.
./raid1.sh sda "sdb sdc sdd"
where sda is hard drive block device under /dev where proxmox installed
and "sdb sdc sdd" are blank block devices to be used in raid setup, quotes required
after reboot run ./raid2.sh to complete process.
Even though this will protect root and data volumes, you still need to mirror boot partitions to other hard drives, maybe setup cron script.
The data volume is not extended all the way, about 4gb of free space will be left for snapshots. You can fix this by removing lvreduce line from raid2.sh script.
This script was tested by me only on Proxmox VE 1.4. I can't guarantee that its safe, use it on your own risk. Very little error checking done.
--Vlad