Chapter 17. File, file system, and volume group backup and restore 443
Figure 17-19 Backup file system /home via command line
The content to the created backup can be verified with the -T option of the
restore command (used just to see that the right files are on the backup) — see
Figure 17-20 and Figure 17-21.
Figure 17-20 Verify content of backup
Figure 17-21 List content of file system on disk (should be on the backup)
444 The IBM TotalStorage NAS Gateway 500 Integration Guide
The following screen shows the removal of some files in the filesystem, which will
be restored. This was done just for testing reasons to see that the restore will
work (Figure 17-22).
Figure 17-22 Remove files for a test for our test
Now the restore command can be run (Figure 17-23).
Figure 17-23 restore completed successfully
Verify if the data had been restored to the file system structure (Figure 17-24).
Chapter 17. File, file system, and volume group backup and restore 445
Figure 17-24 Verify the restoration of the files on the file system
Verification of the file system backup
The Administrator can verify which files had been backed up with the WebSM,
SMIT, and command line interface.
Usage of the WebSM to see what has been backed up is shown in Figure 17-25.
Figure 17-25 Verify file system backup with WebSM
446 The IBM TotalStorage NAS Gateway 500 Integration Guide
After selecting the option, View content of incremental backup, you will see the
panel shown in Figure 17-26.
Figure 17-26 Specify the tape drive
Once you click OK, you will see the status and a list of all objects as shown in
Figure 17-27.
Figure 17-27 Success - list all objects
The underlaying command (restore) uses the -T option to list what has been
backed up. The option -T will not restore files, it is used just for displaying the
content of the backup. Try this to see if all file systems you want to back up are
backed up.
Chapter 17. File, file system, and volume group backup and restore 447
You can use the command line to execute the command:
restore -Tq -f /dev/rmt0
The restore command reads from device /dev/rmt0 and displays all filenames
and directories contained on the tape media. The -q option allows you to proceed
without mounting the first volume. The backup may span various tape media.
Another way is to use the SMIT interface:
smitty
System Storage Management File Systems List
Contents of a backup
17.1.3 The restvg and savevg commands
This section describes backup and restores with savevg, restvg, and the
associated mkvgdata command.
As discussed before, you cannot use mksysb to back up other volume groups
than the rootvg, and other backup and restore commands/tools may not offer a
way to back up and restore the LVM (Logical Volume Manager) structure of the
AIX file system (such as volume groups, logical volumes, etc.).
The two commands savevg and restvg will help us to save data in a very similar
way as the mksysb does. The savevg command backs up data belonging to a
specific volume group, and the restvg command restores data belonging to a
specific volume. Both commands are very helpful, because most backup tools
and commands are only capable of doing backups and restores on a
file/directory base and do not backup and restore volume group, logical volume
or file system data.
mkvgdata command
The mkvgdata command creates information about a specific volume group and
its logical volumes, file systems, etc. and is used in conjunction with savevg and
restvg.
Tip: It may be a good idea to combine savevg and restvg and mksysb with
other backup tools like IBM Tivoli Storage Manager backups.
Attention: If you are running a multipathing environment (Subsystem Device
Driver) with volume groups using vpath devices, consider using savevg4vp to
back up and restvg4vp to restore these volume groups.

Get The IBM TotalStorage NAS Gateway 500 Integration Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.