Product data

12 PowerVM Migration from Physical to Virtual Storage
On the Virtual I/O Server
A media repository and a virtual optical device must now be created. The media
repository does not have to be on the rootvg. Any volume group accessible to the
Virtual I/O Server will be acceptable, but there can only be one repository per
Virtual I/O Server.
5. Make a media repository on the Virtual I/O Server rootvg as in the following
command:
$ mkrep -sp rootvg -size 10G
A repository should be large enough to hold any and all images that you may
have created for this migration. If additional space is required, you may resize
the repository using the Virtual I/O Server chrep command with the size flag.
6. Create virtual optical media using the first volume of the files that you copied
from the source dedicated system:
$ mkvopt -name cd_image_15364.vol1 -file
/home/padmin/cd_image_15364.vol1 -ro
If your repository is large enough, you may load the rest of the media images
into it at this stage by repeating the mkvopt command.
In the previous mkvopt command, the -name parameter represents a logical
unique name for you to refer to the object referenced with the -file parameter.
cd_image_15364.vol1 could have been shortened to cd15364.1.
If you have limited space available for the media repository, you can delete the
image after you have used it with the rmvopt command, and then load the
next image with the mkvopt command, as shown previously.
7. Create a file-backed virtual optical device that uses a virtual adapter on your
target logical partition using the mkvdev command. You can assign a name
using the -dev option. In this example the host already has a SCSI vhost
adapter called vhost1 in use. There is no need to create a separate vhost for
use by file-backed optical devices.
$ mkvdev -fbo -vadapter vhost1 -dev vcd1
vcd1 Available
$
8. Load the virtual optical media file that was created earlier using the mkvopt
command against the virtual optical device that you created in step 7 (vcd1 in
this example):
$ loadopt -disk cd_image_15364.vol1 -vtd vcd1
9. Use the lsmap command to ensure that the correct media is loaded as the
backing device:
lsmap -vadpater vhost1