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.
The information in this how-to scenario was tested using specific versions of AIX. The results you obtain might vary significantly depending on your version and level of AIX.
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.
For information about alternate disk installation, see Installing to an alternate disk. Also, refer to the alt_disk_copy man page.
# lspv
Output similar to the following displays:
hdisk0 0009710fa9c79877 rootvg active
hdisk1 0009710f0b90db93 None
We can use hdisk1 as our alternate disk because no volume group is assigned to this physical disk.# lslpp -L bos.alt_disk_install.rte
Output similar to the following displays if the alt_disk_copy fileset is not installed:
lslpp: 0504-132 Fileset bos.alt_disk_install.rte not installed.
# geninstall -d/dev/cd0 bos.alt_disk_install.rte
Output similar to the following displays:
+-----------------------------------------------------------------------------+
Summaries:
+-----------------------------------------------------------------------------+
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
bos.alt_disk_install.rte 5.3.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 Creating and installing a software bundle.
mkdir /home/scripts
touch /home/scripts/AddUsers.sh
chmod 755 /home/scripts/AddUsers.sh
mkuser johndoe
touch /home/johndoe/abc.txt
touch /home/johndoe/xyz.txt
# smit alt_clone
# lspv
# bootlist -m normal -o
Output similar to the following displays:
hdisk1
# shutdown -r
The system boots from the boot image on the alternate disk (hdisk1).
# lspv
Output similar to the following displays:
hdisk0 0009710fa9c79877 old_rootvg
hdisk1 0009710f0b90db93 rootvg
# find /home/johndoe -print
Output similar to the following displays:
/home/johndoe
/home/johndoe/.profile
/home/johndoe/abc.txt
/home/johndoe/xyz.txt
# lslpp -Lb MyBundle
Output similar to the following displays:
Fileset Level State Description
----------------------------------------------------------------------------
bos.content_list 5.3.0.0 C AIX Release Content List
bos.games 5.3.0.0 C Games
Article Number: 616
Posted: Sun, Jun 30, 2019 9:02 PM
Last Updated: Sun, Jun 30, 2019 9:02 PM
Online URL: http://kb.ictbanking.net/article.php?id=616