Using this scenario, you can clone AIX running on rootvg to an alternate disk on the same system, install a user-defined software bundle, and run a user-defined script to customize the AIX image on the alternate disk. Because the alternate disk installation process involves cloning an existing rootvg to a target alternate disk, the target alternate disk must not be already assigned to a volume group.
In this scenario you will do the following:
For information about alternate disk installation, see Alternate Disk Installation. Also, refer to the alt_disk_install man page.
# lspvOutput similar to the following displays:
hdisk0 0009710fa9c79877 rootvg active hdisk1 0009710f0b90db93 NoneWe can use hdisk1 as our alternate disk because no volume group is assigned to this physical disk.
# lslpp -L bos.alt_disk_install.rteOutput similar to the following displays if the alt_disk_install fileset is not installed:
lslpp: 0504-132 Fileset bos.alt_disk_install.rte not installed.
# geninstall -d/dev/cd0 bos.alt_disk_install.rteOutput similar to the following displays:
+-----------------------------------------------------------------------------+ Summaries: +-----------------------------------------------------------------------------+ Installation Summary -------------------- Name Level Part Event Result ------------------------------------------------------------------------------- bos.alt_disk_install.rte 5.2.0.0 USR APPLY SUCCESS
I:bos.content_list I:bos.games
For more information on how to create a user-defined software bundle, refer to Create and Install a Software Bundle.
mkuser johndoe touch /home/johndoe/abc.txt touch /home/johndoe/xyz.txt
# smit alt_clone
# lspv
Output similar to the following displays:
hdisk0 0009710fa9c79877 rootvg hdisk1 0009710f0b90db93 altinst_rootvg
# bootlist -m normal -oOutput similar to the following displays:
hdisk1
# shutdown -r
The system boots from the boot image on the alternate disk (hdisk1).
# lspvOutput similar to the following displays:
hdisk0 0009710fa9c79877 old_rootvg hdisk1 0009710f0b90db93 rootvg
# find /home/johndoe -printOutput similar to the following displays:
/home/johndoe /home/johndoe/.profile /home/johndoe/abc.txt /home/johndoe/xyz.txt
# lslpp -L bos.games bos.content_listOutput similiar to the following displays:
Fileset Level State Description ---------------------------------------------------------------------------- bos.content_list 5.2.0.0 C AIX Release Content List bos.games 5.2.0.0 C Games