Sometimes we need to build a full hardware lpar starting from a mksysb , we can generate a bootable iso starting from a valid mksysb file, using the mkcd command:
root@nim:/#mkcd -L -S -I /export/mksysb/iso -m /export/mksysb/mksysb-lpar1
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: /export/mksysb/iso/cd_image_9633794
Running mkisofs ...
.
mkrr_fs was successful.
Making the CD or DVD image bootable...
Removing temporary file system: /mkcd/cd_fs...
The -S option tells mkcd to stop before removing the generated image , so we can find the image under the path we provided with the -I parameter .
The -m indicates the mksysb source file .
root@nim01:/#cd /export/mksysb/iso/
root@nim01:/export/mksysb/iso#ll
total 6107376
drwx------ 2 root system 256 Aug 26 12:36 .
drwxrwx--x 6 root system 8192 Aug 26 12:32 ..
-rw------- 1 root system 3126958080 Aug 26 12:36 cd_image_9633794
Now can rename the image , burn it to a dvd , etc ..
Nessun commento:
Posta un commento