Extending the Virtual Media Repository
The only change you can make to a Virtual Media Repository itself is to increase its size. Of course, there must still be a corresponding amount of available space in the underlying storage pool (often rootvg).
The following error occurred while copying an ISO image:
$ vios mkmedia ms12-vio1 AIX_720501_flash.iso \
/home/padmin/AIX_v7.2_Install_7200-05-01-2038_flash_012021_LCD8236409.iso ro
hmc01: viosvrcmd -m ms12 -p ms12-vio1 -c \"mkvopt -name AIX_720501_flash.iso -file /home/padmin/AIX_v7.2_Install_7200-05-01-2038_flash_012021_LCD8236409.iso -ro\"
ERROR: remote HMC command returned an error (1)
StdErr: HSCL2970 The IOServer command has failed because of the following reason:
StdErr: Unable to create virtual optical disk.
StdErr:
StdErr: Error occurred. For more information check the trace file /home/ios/logs/ioscli_global.trace
StdErr: rc=4
$
A possible cause is that there is not enough free space in the Virtual Media Repository to create a copy of the ISO image. Checking the current size and free space with „vios lsrep“ shows this is the case here:
$ vios lsrep ms12-vio1
PARENT
SIZE FREE POOL SIZE FREE
9.96 GB 2.39 GB rootvg 558.00 GB 491.00 GB
$
There is only a little more than 2 GB of free space available. However, the ISO image to be copied has a size of almost 8 GB.
There is still 491 GB of free space available in the parent storage pool (rootvg). We increase the Virtual Media Repository by another 20 GB with the command “vios chrep“:
$ vios chrep ms12-vio1 20G
$ vios lsrep ms12-vio1
PARENT
SIZE FREE POOL SIZE FREE
29.88 GB 22.31 GB rootvg 558.00 GB 471.00 GB
$
Another attempt to copy the ISO image above is now successful:
$ vios mkmedia ms12-vio1 AIX_720501_flash.iso \
/home/padmin/AIX_v7.2_Install_7200-05-01-2038_flash_012021_LCD8236409.iso ro
$