Originally posted by: SystemAdmin
In order for a mksysb tape backup to be bootable, it has some additional files that are created in addition to the backup file that is created when one does a mksysb to a file system. Each of these files is stored on a mksysb tape as a different file mark on the tape.
According to the mksysb man page, these files on the tape are:
1 - Boot image file
2 - bosinstall image
3 - empty table of contents
4 - backup/restore formated file starting with the data and then any optional map files.
To create a bootable mksysb tape, using an existing mksysb data file that was written to disk, I would suggest the following approach:
-
Create the mksysb on the desired system, saving it to disk. Then copy the mksysb file to a system that has a local tape drive.
-
On the system with the local tape drive, create a mksysb to tape.
-
use "dd" to save files 1,2,3 from the mksysb tape to a local file system for future use.
-
position the tape to the start of file 4, then use "dd" to overwrite file 4 on the tape with the mksysb from the desired system.
For future tapes, you can use the saved files 1,2,3 from the first tape so that you don't have to recreate the original "template" mksysb tape. Use "dd" to write the 3 template files, plus the 4th mksysb data file to the tape.
Note, this will probably have the same kind of limitations as a NIM installation, the OS version and TL level of the boot image and bosinstall image will probably need to match the version of AIX on the mksysb file.
Note 2: I have not actually tested this method, but I have worked with mksysb files and extracted individual files from mksysb tapes, and appended other backups to the end of a mksysb tape, so I have successfully worked with individual file marks on a mksysb tape before.
Note 3: I have just read over the man page for bosboot, and it looks like you might be able to create the boot image file on the same system as the disk based mksysb and transfer it to the system with the tape drive via ftp/scp. I'm not sure what the format is for the bosinstall and empty table of contents yet. From the bosboot man page:
# To create a bootable image called /tmp/tape.bootimage for a tape device, type: bosboot -ad /dev/rmt0 -b /tmp/tape.bootimage#AIX-Forum