Switching hardware between AIX partitions
It is done by using the device management tools.
Assume that machine A currently owns the CD drive cd0, and machine B wants to have it:
- umount /dev/cd0 on machine A
- deactivate the device on machine A: rmdev -l cd0
- or as alternative remove the device rmdev -dl cd0 , but be careful, because this removes also all device configurations (no problem for a CD drive, but not so good for eg a network interface card!)
- do the (virtual) hardware switch using VIO web interface or something similar
- activate the CD drive on machine B: cfgmgr (this runs the configuration manager, that automatically detects and configures the "new" hardware)
- now you can use the hardware on machine B - in our case we will mount the CD-ROM: mount -v cdrfs -o ro /dev/cd0 /mnt
