23.10.2014 Views

Advanced POWER Virtualization on IBM System p5 - Previous ...

Advanced POWER Virtualization on IBM System p5 - Previous ...

Advanced POWER Virtualization on IBM System p5 - Previous ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Restoring from file system using the installios command<br />

The restore of a Virtual I/O Server file system backup is d<strong>on</strong>e using the<br />

installios command of the HMC or AIX 5L. For a restore, the tar file must be<br />

located either <strong>on</strong> the HMC, an NFS-accessible directory, or a DVD. To make the<br />

tar file created with the backupios command accessible for restore, we performed<br />

the following steps:<br />

1. Create a directory named backup using the mkdir /home/padmin/backup<br />

command.<br />

2. Check that the NFS server is exporting a file system with the showmount<br />

nfs_server command.<br />

3. Mount the NFS exported file system <strong>on</strong>to the backup directory.<br />

4. Copy the tar file created in 5.2.4, “Backing up <strong>on</strong> a file system” <strong>on</strong> page 282 to<br />

the NFS mounted directory using the following command:<br />

$ cp /home/padmin/backup_loc/nim_resources.tar /home/padmin/backup<br />

At this stage, the backup is ready to be restored to the Virtual I/O Server partiti<strong>on</strong><br />

using the installios command <strong>on</strong> the HMC or an AIX 5L partiti<strong>on</strong> that is a NIM<br />

server. The restore procedure will shut down the Virtual I/O Server partiti<strong>on</strong> if it is<br />

still running. The following is an example of the command help:<br />

hscroot@server1:~> installios -?<br />

installios: usage: installios [-s managed_sys -S netmask -p partiti<strong>on</strong><br />

-r profile -i client_addr -d source_dir -m mac_addr<br />

-g gateway [-P speed] [-D duplex] [-n] [-l language]]<br />

| -u<br />

Using the installios command, the -s managed_sys opti<strong>on</strong> requires the HMC<br />

defined system name, the -p partiti<strong>on</strong> opti<strong>on</strong> requires the name of the VIOS<br />

partiti<strong>on</strong>, and the -r profile opti<strong>on</strong> requires the partiti<strong>on</strong> profile you want to use to<br />

boot the VIOS partiti<strong>on</strong> during the recovery.<br />

If you do not specify the -m flag and include the MAC address of the VIOS being<br />

restored, the restore will take l<strong>on</strong>ger as the installios command shuts down the<br />

VIOS and boots it in SMS to determine the MAC address. The following is an<br />

example of the command usage:<br />

hscroot@server1:~> installios -s <strong>p5</strong>50-ITSO -S 255.255.255.0 -p<br />

testvios2 -r default -i 9.3.5.125 -d 9.3.5.126:/export_fs -m<br />

00:02:55:d3:dc:34 -g 9.3.5.41<br />

Following this command, NIMOL <strong>on</strong> the HMC takes over the NIM process and<br />

mounts the exported file system to process the backupios tar file created <strong>on</strong> the<br />

VIOS previously. The HMC NIM then proceeds with a normal install of the VIOS<br />

and <strong>on</strong>e final reboot of the partiti<strong>on</strong> completes the install.<br />

Chapter 5. <strong>System</strong> management 287

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!