Storix Software SBAdmin Backup and Recovery Guide for Xen Enabled Systems User Manual
Page 5

Storix System Backup Administrator
5
SBAdmin Xen User Guide
Copyright © 2014 Storix, Inc.
Storix is a registered trademark of Storix, Inc in the USA. SBAdmin is a trademark of Storix, Inc in the USA and other countries
# /etc/xen/sample
# Sample Xen configuration file for SBAdmin boot media
name
=
"storix"
#
Xen
name
kernel = "/boot/vmlinuz-2.6.19-4-generic"
# domU kernel
ramdisk = "/boot/initrd-domUinstall.img"
# SBAdmin initrd image
memory = 128
# Memory to be used
vif = ['mac=aa:00:00:00:00:11','bridge=xenbr0']
# DomU interface
disk = ['phy
:/dev/sdb5,hda,w']
#
Disk
resource
Boot the domU and attach a console with the following command:
xm create -c /etc/xen/sample
When booting this domU the normal SBAdmin recovery screens will appear, and the system will have disk and
network resources as specified in the configuration file. After the recovery completes, the domU must be shut
down and the configuration file changed to use the standard initrd for the corresponding kernel.
Booting the recovered system:
For systems without the pygrub boot loader, a configuration similar to the following will allow you to
specify the kernel and initrd to be used to boot. This kernel and initrd must be present in the /boot directory
of dom0.
# /etc/xen/sample
# Sample Xen configuration file for a restored system
name
=
"storix"
#
Xen
name
kernel = "/boot/vmlinuz-2.6.19-4-generic"
# domU kernel
ramdisk = "/boot/initrd-2.6.19-4-generic"
# Original initrd
memory
=
128
#
Memory
used
vif = ['mac=aa:00:00:00:00:11','bridge=xenbr0'] # domU interface
disk = ['phy
:/dev/sdb5,hda,w']
#
Disk
resource
IMPORTANT: The above instructions utilize the original initrd which assumes no changes were made to
the storage configuration during the recovery. If changes were made to the storage configuration during the
recovery, then you will need to copy the SBAdmin generated initrd from the domU to dom0.
For systems that with the pygrub boot loader, the following configuration is appropriate. pygrub will allow
the domU to have a GRUB-like menu system upon reboot. All kernels and initrd’s contained on the domU
will be presented as boot options.
# /etc/xen/sample
# Sample xen configuration file for a restored system
name
=
"storix"
#
Xen
name
bootloader=”/usr/bin/pygrub”
#
Bootloader
memory
=
128
#
Memory
used
vif = ['mac=aa:00:00:00:00:11','bridge=xenbr0'] # domU interface
disk = ['phy:/dev/sdb5,hda,w']
# Disk resource