Tuesday, 15 May 2012

Backup rootvg to a file with mksysb in AIX -- HowTo

One of the ways to backup the rootvg of AIX is with mksysb. I am here taking backup of AIX OS (6100-00-01-0748) using mksysb to a NFS mount point.


mksysb -iev <mksysb-filename>
  • -i  >>> Creates new /image.data file, by invoking mkszfile command
  • -e >>> Exclude the pattern listed in /etc/exclude.rootvg file(Ex. NFS Mount point)
  • -v >>> Verbose mode
  • <mksysb-filename> >>> What ever, better to follow some naming convention

Please see the CLI O/P

# oslevel -s
6100-00-01-0748
# cat /etc/exclude.rootvg
^./sharednfs
# mksysb -iev /sharednfs/mksysb_backup/AIX_6100-00-01-0748.mksysb
Creating information file (/image.data) for rootvg.
kill: 356360: 0403-003 The specified process does not exist.
Creating list of files to back up.
Backing up 44676 files
Backing up to /sharednfs/mksysb_backup/AIX_6100-00-01-0748.mksysb.
Cluster 51200 bytes (100 blocks).
Volume 1 on /sharednfs/mksysb_backup/AIX_6100-00-01-0748.mksysb
a         6100 ./bosinst.data
a           11 ./tmp/vgdata/rootvg/image.info
a        10381 ./image.data
a       142108 ./tmp/vgdata/rootvg/backup.data
a        64329 ./opt/freeware/bin/gunzip
a        63793 ./opt/freeware/bin/bunzip2
a        63793 ./opt/freeware/bin/bzcat
a        63793 ./opt/freeware/bin/bzip2
[TRUNCATED FOR VISIBILITY]
a            0 ./wpars
a           31 ./.vi_history
a            0 ./cdrom
a            0 ./cdrom/cd0
a            0 ./proc
The total size is 1720533318 bytes.
Backup finished on Mon Dec 19 12:31:37 GMT+05:30 2011; there are 2653200 blocks on 1 volumes.

0512-038 mksysb: Backup Completed Successfully.

 * Source Article from : Internet