Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Tuesday 19 November 2013

Virtual Optical Device, Virtual Optical Drive and Virtual Media Library

1. To create a virtual media repository:

# mkrep -sp rootvg -size 10G

Above command will create a filesystem called /var/vio/VMLibrary.

2. To create an iso from from AIX DVD:
# dd if=/dev/cd0 of=/cg/AIX61-1.iso bs=1m

You can copy the iso file to /var/vio/VMLibrary.

3. To list the contents of virtual media repository:
$ lsrep
Size(mb) Free(mb) Parent Pool         Parent Size      Parent Free
   10198     5828 rootvg                   139776           110592

Name                                    File Size  Optical         Access
AIX61_1.iso                              3679  vtopt0          rw
AIX61_2.iso                               691  None            rw

4. To create a Virtual Optical device :
# mkvdev -fbo -vadapter vhost0

5. To create a virtual optical media from a downloaded ISO image:
# mkvopt -ro -name aix61 -file /home/padmin/aix61.iso

6. To remove a virtual optical media:
# rmvopt -name aix61

7. To list all the virtual optical devices:
# lsvopt

8. To load the virtual optical media on a virtual optical device:
# loadopt -vtd vtopt0 -disk linux

9. To load an ISO file on a virtual optical device:
# loadopt -vtd vtopt0 -disk AIX61_1.iso

10. To check if the ISO was loaded correctly:
# lsmap -vadapter vhost0

11. To unload the virtual media from virtual optical device:
# unloadopt -vtd vtopt0

12. To force remove the virtual media:
# unloadopt -vtd vtopt0 -release

No comments:

Post a Comment