-- WillHsu - 15 Apr 2008

BackUpRestoreUQ

UQ ngdata and development repository restore procedure

In an unlikely event of ngdata became unusable, local UQ gateway admin can restore the complete ngdata by following the steps below. Primary UQ contact person is DavidGreen as HPCU manager.

Start

Check xm list output to make sure ngdata is not running. If it is still running, use xm destroy ngdata to stop the guest immediately.

Create disk files

dd if=/dev/zero of=/XenGuests/ngdataRoot bs=1M count=7168
dd if=/dev/zero of=/XenGuests/ngdataSwap bs=1M count=1000
dd if=/dev/zero of=/XenGuests/ngdatadata bs=1M count=4096
mkfs.ext3 /XenGuests/ngdataRoot
mkfs.ext3 /XenGuests/ngdatadata
mkswap /XenGuests/ngdataSwap
mount -o loop /XenGuests/ngdataRoot /mnt

Restore guest image

cd /mnt
tar xjpf /mnt/grid/backups/20xxxxxx_ngdata.tbz  # example file name:20080401_ngdata.tbz
umount /mnt

Restore data files

mount -o loop /XenGuests/ngdatadata /mnt
tar xjpf /mnt/grid/backups/20xxxxxx_ngdatadata.tbz
umount /mnt

Edit ngdata xen config file

Edit /etc/xen/ngdata

name = "ngdata"
uuid = "51687104-9c4a-3046-49e1-cb49236c8dd8"
maxmem = 512
memory = 512
vcpus = 1
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
vfb = [  ]
disk = [ "tap:aio:/XenGuests/ngdataRoot,xvda1,w",
         "tap:aio:/XenGuests/ngdataSwap,xvda2,w",
         "tap:aio:/XenGuests/ngdatadata,xvdb1,w" ]
vif = [ "mac=00:16:3E:xx:xx:xx,bridge=xenbr0" ]   # use existing ngdata MAC address

Boot restored ngdata

xm create -c ngdata
Topic revision: r2 - 06 May 2008 - 04:33:00 - WillHsu
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback