User Tools

Site Tools


aix:mount_iso_image

AIX: Mount ISO Image (after AIX6.1TL4)

Mount directly the iso file on /mnt:

# loopmount -i cdrom.iso -o "-V cdrfs -o ro" -m /mnt

Mount directly the UDF file on /mnt (!latest iso from VIOS is an UDF format!):

Example of error with bad format
# cp mksysb_image /export/lppsources/vios_4_1_0_21_mksysb
cp: mksysb_image: A system call received a parameter that is not valid.
# loopmount -i VIOS_31010_Flash.iso -m /mnt -o "-V udfs -o ro"

When done, unmount the filesystem, enter:

# umount /mnt 

Requisite packages: devices.loopback.rte

AIX: Mount ISO Image (before AIX6.1TL4)

First Create a filesystem with crfs command:

#/usr/sbin/crfs -v jfs -g rootvg -a size=800 -m/cd1iso -Ano -pro -tno -a frag=4096 -a nbpi=4096 -a ag=8

This command creates the /cd1iso file system on the rootvg volume group.

Now dd the “iso” image into rlv00

# dd if=image.iso of=/dev/rlv00 bs=10M

Use chfs to change the attributes of a file system:

# chfs -a vfs=cdrom cd1iso
# mount /cd1iso
# cd /cd1iso

When done, remove the filesystem/unmount, enter:

# rmfs /cd1iso 

This removes the /cd1iso file system, its entry in the /etc/filesystems (created using chfs command) file, and the underlying logical volume.

From: http://www.cyberciti.biz/faq/mounting-iso-file-in-aix/A

AIX: Mount ISO Image on a VIOS

Create a repository to store ISO images (or CDROM copy)

[padmin@vios]/home/padmin# mkrep -sp rootvg -size 4G 
[padmin@vios]/home/padmin# lsrep
Size(mb) Free(mb) Parent Pool         Parent Size      Parent Free
    4079      964 rootvg                   139776            70400

Name                                    File Size Optical         Access 
aix7.1                                       3115 None            ro   

Add images in the repository

[padmin@vios]/home/padmin# mkvopt -name aix7.1 -file CZN6JML-aix7100-00-00_1-2.iso -ro
or for physical CDROM
[padmin@vios]/home/padmin# mkvopt -name aix7.2 -dev cd0 -ro 
[padmin@vios]/home/padmin# lsrep
Size(mb) Free(mb) Parent Pool         Parent Size      Parent Free
    4079      964 rootvg                   139776            70400

Name                                    File Size Optical         Access 
aix7.1                                       3115 None            ro   
aix7.2                                       4500 None            ro

Create a virtual optical device to the vhost (SCSI adapter on the VIOS), and load the image in the vopt

[padmin@vios]/home/padmin# mkvdev -vadapter vhost3 -fbo -dev lpar1_cd0 
[padmin@vios]/home/padmin# loadopt -vtd lpar1_cd0 -disk aix7.1  

List the mapping

[padmin@vios]/home/padmin# lsmap -vadapter vhost3
SVSA            Physloc                                      Client Partition ID
--------------- -------------------------------------------- ------------------
vhost3          U9117.MMA.10579F0-V1-C16                     0x00000006

VTD                   lpar1_cd0
Status                Available
LUN                   0x8300000000000000
Backing device        /var/vio/VMLibrary/aix7.1
Physloc                
Mirrored              N/A

Unload the virtual CDROM

[padmin@vios]/home/padmin# unloadopt -vtd lpar1_cd0
aix/mount_iso_image.txt · Last modified: 2024/06/25 10:48 by manu