If you have an issue booting your xen 5 because you have loose MBR information, here is how you can restore it very quickly.
Proceed booting your server with a live cd distribution, like wifiSlax, and run the next commands.
mount the necessary partitions in your harddisk to have / and /boot mounted.
Let's say you have sda1 assigned to boot and sda2 to root partition.
# mount /dev/sda2 /mnt
# mount /dev/sda1 /mnt/boot
or like in my case, mount your RAID1 partitions to access to yor root Read more...
mdstat
All posts tagged mdstat
Nowadays the hardisks are almost cheaper so creating a RAID1 is a good way to keep your data safe without waste too much money. If you have two disks with same size use them to create mirrored Storage Repository in XEN with the help of mdadm raid software, by default installed in a XEN distribution.
SATA is always the best option to have a good I/O but as a test system IDE disks will be valid as well.
Let's start. First, create the md devices in /dev
# cd /dev
# MAKEDEV md
now create a RAID1 Read more...
Basic Commands
Checking status of drive/arrays, displaying all raids and basic information
# cat /proc/mdstat
Detailed status of array
# mdadm --detail /dev/md2
Creating raid device
# mdadm --create --verbose /dev/mdX --level=RAID5--raid-devices=2 /dev/sdj /dev/sdk
Stoping raid device
# mdadm --stop /dev/md2
Adding a drive:
# mdadm /dev/md2 -a /dev/sdm
Marking a drive as failed (This will break things if your not careful)
# mdadm --manage --set-faulty Read more...