In addition to backing up the Virtual I/O Server (VIOS), you
must back up user-defined virtual devices (such as virtual device
mappings) in case you have a system failure or disaster. In this
situation, back up user-defined virtual devices by saving the data
to a location that is automatically backed up when you use the backupios command
to back up the VIOS.
Before you begin
User-defined virtual devices include metadata, such as
virtual device mappings, that define the relationship between the
physical environment and the virtual environment. In situations where
you plan to restore the VIOS to a new or different system, you need
to back up both the VIOS and user-defined virtual devices. (For example,
in the event of a system failure or disaster.)
Before you start,
complete the following tasks:
- Back up the VIOS to tape, DVD, or a remote file system. For instructions,
see one of the following procedures:
- Decide whether you want to create a script of the following procedure.
Scripting these commands makes it easy to schedule automated backups
of the information.
About this task
To back up user-defined virtual devices, complete the following
steps:
Procedure
- List volume groups (and storage pools) to determine what
user-defined disk structures you want to back up by running the following
command:
- Activate each volume group (and storage pool) that you
want to back up by running the following command for each volume group:
activatevg volume_group
where,
volume_group is the name of the volume group (or storage pool) that you want to
activate.
-
Back up each volume group (and storage pool) by running the following command for each volume
group:
savevgstruct volume_group
where,
volume_group is the name of the volume group (or storage pool) that you want to
back up.
This command writes a backup of the structure of a volume group (and therefore, a
storage pool) to the /home/ios/vgbackups directory.
-
Save the information about network settings, adapters, users, and security settings to the
/home/padmin directory by running each command with the tee
command as follows:
command | tee /home/padmin/filename
Where,
- command is the command that produces the information you want to save.
- filename is the name of the file to which you want to save the
information.
Table 1. Commands that provide the information to save
Command |
Description |
cfgnamesrv -ls |
Shows all system configuration database entries that are related to domain
name server information used by local resolver routines. |
entstat -all devicename
devicename is the name of a device whose attributes or statistics you want to
save. Run this command for each device whose attributes or statistics you want to save.
|
Shows Ethernet driver and device statistics for the device specified. |
hostmap -ls |
Shows all entries in the system configuration database. |
ioslevel |
Shows the current maintenance level of the Virtual I/O Server. |
lsdev -dev devicename -attr
devicename is the name of a device whose attributes or statistics you want to
save. Run this command for each device whose attributes or statistics you want to save.
|
Shows the attributes of the device specified. |
lsdev -type adapter |
Shows information about physical and logical adapters. |
lsuser |
Shows a list of all attributes of all the system users. |
netstat -routinfo |
Shows the routing tables, including the user-configured and current costs of
each route. |
netstat -state |
Shows the state of all configured interfaces. |
optimizenet -list |
Shows characteristics of all network tuning parameters, including the current
and reboot value, range, unit, type, and dependencies. |
viosecure -firewall view |
Shows a list of allowed ports. |
viosecure -view -nonint |
Shows all the security level settings for noninteractive mode. |