Creating a DVD mksysb form an AIX Lpar
# mksysb -i /mksysb_images/my_node.mksysb [..]
You now have to convert this mksysb into CD/DVDs, unfortunatly it’s not possible to create a big iso file and you’ll have to choose CD or DVD format. Use the mkcd command to convert mksysb file into bootable CD/DVDs. In our example we’ll create DVD sized iso files.
# mkcd -L -S -I /mksysb_images/mkcd -m /mksysb_images/my_node.mksysb Initializing mkcd log: /var/adm/ras/mkcd.log... Verifying command parameters... Creating temporary file system: /mkcd/cd_fs... Populating the CD or DVD file system... Building chrp boot image... Copying backup to the CD or DVD file system... ...... Creating Rock Ridge format image: /mksysb_images/mkcd/cd_image_11010246.vol1 Running mkisofs ... ....... mkrr_fs was successful. Making the CD or DVD image bootable... Copying the remainder of the backup to the CD or DVD file system... Creating Rock Ridge format image: /mksysb_images/mkcd/cd_image_11010246.vol2 Running mkisofs ... ....... mkrr_fs was successful. Copying the remainder of the backup to the CD or DVD file system... Creating Rock Ridge format image: /mksysb_images/mkcd/cd_image_11010246.vol3 Running mkisofs ... ... mkrr_fs was successful.
- -L : this option is used to create DVD sized iso images.
- -S : this option is used to keep image file, and avoid writing it on a real DVD.
- -I : specify the directory where images will be stored.
- -m : mksysb image file to convert into DVDs.
# ls -l total 53815784 -rw-r--r-- 1 root system 4274950144 Apr 30 13:09 cd_image_22872126.vol1 -rw-r--r-- 1 root system 4293890048 Apr 30 13:12 cd_image_22872126.vol2 -rw-r--r-- 1 root system 4293890048 Apr 30 13:14 cd_image_22872126.vol3
Adding images to VIO Server repository
After creating DVDs files from an mksysb file you’ll have to put them on VIO Server repository, transfer it via scp or NFS, and add it into repository :
# mkvopt -name cd_image_22872126.vol1 -file ./cd_image_22872126.vol1 # mkvopt -name cd_image_22872126.vol2 -file ./cd_image_22872126.vol2 # mkvopt -name cd_image_22872126.vol3 -file ./cd_image_22872126.vol3 # lsrep Size(mb) Free(mb) Parent Pool Parent Size Parent Free 20397 7208 rootvg 279552 201216 Name File Size Optical Access cd_image_22872126.vol1 4077 None rw cd_image_22872126.vol2 4095 None rw cd_image_22872126.vol3 4095 None rw
Create Virtual Optic Device on VIO Server
On VIO Server create a Virtual Optic Device on Server Virtual SCSI Adapter with mkvdev command
# mkvdev -fbo -vadapter vhost0 -dev lpar_cdrom0 lpar_cdrom0 Available
Loading and Unloading Optic Device
You just have finished, load first DVD on Virtual Optic Device, boot the client on LPAR on Virtual SCSI Adapter and start you restore, then load DVDs one by one :
# loadopt -disk cd_image_22872126.vol1 -vtd lpar_cdrom0 -release # lsrep lsrep Size(mb) Free(mb) Parent Pool Parent Size Parent Free 20397 7208 rootvg 279552 201216 Name File Size Optical Access cd_image_22872126.vol1 4077 lpar_cdrom0 rw cd_image_22872126.vol2 4095 None rw cd_image_22872126.vol3 4095 None rw
# unloadopt -release -vtd lpar_cdrom0 # loadopt -disk cd_image_22872126.vol2 -vtd lpar_cdrom0 -release lsrep Size(mb) Free(mb) Parent Pool Parent Size Parent Free 20397 7208 rootvg 279552 201216 Name File Size Optical Access cd_image_22872126.vol1 4077 None rw cd_image_22872126.vol2 4095 lpar_cdrom0 rw cd_image_22872126.vol3 4095 None rw
No comments:
Post a Comment