What is the best way to backup the system drive for cluster servers with minimal downtime? I have built a cluster (1 master 1 node). I do not have hardware raid, and have tried the unsupported soft-raid install and ran into issues during updates. Really, too much hassle to go that route. So, I have 1 disk as system drive. My thoughts are:
All of my VM disk images will be stored on a network appliance. I'm using 160gb drives now. I'm thinking that I should shrink the root partitions down as much as possible (5gb should be enough, less would be better). If I do that, then I could minimize the amount of time needed to dd everything by running:
What are your thoughts on this? Do you foresee any issues going this route? Thanks!
- migrate VMs from master to slave node
- reboot master from live distro (any thing with dd)
-
Code:
dd if=/dev/sda of=[backup hard drive]
- reboot master from /dev/sda
- migrate VMs from slave to master
- repeat 1-5 on slave node
All of my VM disk images will be stored on a network appliance. I'm using 160gb drives now. I'm thinking that I should shrink the root partitions down as much as possible (5gb should be enough, less would be better). If I do that, then I could minimize the amount of time needed to dd everything by running:
Code:
sfdisk -d /dev/sda | sfdisk [backup hard drive]
dd if=/dev/sda1 of=[backup partition 1]
dd if=/dev/sda2 of=[backup partition 2]