Create DVD images with mkdvd
AnthonyEnglish 270000RKFN Visits (15015)
If you want to create a DVD image on AIX, you can do it right from the command line, without even touching physical media, using the mkdvd command.
It was a wonder back in ... well, a long time ago ... when these new-fangled CDs came out and you could play music and use them as coffee cup holders (not at the same time). But the novelty of having a button on your computer that spits out a CD or DVD at you has somewhat faded. We want an image, but not a spitting image.
On AIX you can create an ISO format image of a directory without actually having to hit that eject button.
The mkdvd command, as its documentation explains, lets you create a DVD
It doesn't need to be restricted only to mksysb backups. It also lets you:
And you don't need to have a physical writeable drive attached to your AIX system. You can create an ISO-format file, which can then be loaded onto the VIO server virtual media library.
Here's how to create the DVD image:
mkdvd -r /mycd -S
The -r flag lets you specify the directory you want to back up.
S is for slob
What's the -S for? It actually stands for stop. Here's why, The mkdvd command creates a file system before it copies the images onto your physical DVD, and then, being a well-brought-up AIX command, it cleans up after itself. Since we don't want to use the physical DVD, removing the image would somewhat defeat the purpose of the exercise. So no clean up, please, be a slob (maybe that's what -S really stands for).
I SO want to remember your name
The file in the /mkcd/cd_images directory includes the process ID in its name. If it spans over multiple DVDs, you get a .vol1 at the end of the first ISO image and I'll let you guess what the second one has appended to it. If you're going to use this file for longer than three picoseconds, you'll probably want to rename it to something memorable as you copy it to somewhere useful.
Once the DVD image is created, you can scp it to the VIO server and load it into the VM Library using mkvopt (or if you're cheeky, copy it straight into the file system /var/vio/VMLibrary without using mkvopt. You can always change its permissions to read only using the VIO server chvopt command:
chvopt -name memorable_file.iso -access ro
That allows you to share it with several virtual optical devices via the loadopt command. Or if you're too young to remember what CDs look like, use the HMC GUI or IVM.
Who needs the media?
The mkdvd command has some other options, such as specifying an alternate directory for the CD image with the -I flag, and creating the new file system in a different volume group for the file systems with the -V flag. And of course you can use it to create a new mksysb (bootable via the VM Library), or simply burn an existing mksysb image.
Why your boss likes you
There may have been 100 people apply for your job, but you got it. Why do you think that happened? I'll give you two possibilities: