A mksysb installation restores BOS and additional software to a target from a mksysb image in the NIM environment.
For a complete description of different ways to customize a BOS installation using NIM, see the "bos_inst" operation.
This creates an exposure in that a large file will be created, but the disk blocks will not be allocated. As data is then added to the file, the disk blocks will be allocated, but there may not be enough free disk blocks in the file system. The file system can become full, and writes to any file in the file system will fail.
It is recommended that you either have no sparse files on your system or that you ensure you have enough free space in the file system for future allocation of the blocks.
The mksysb images enable you to clone one system image onto multiple target systems. The target systems might not contain the same hardware devices or adapters, require the same kernel (uniprocessor or multiprocessor), or be the same hardware platform (rs6k, rspc, or chrp) as the source system.
Because NIM configures TCPIP at the end of an install, it is recommended that a bosinst_data resource be allocated for cloning mksysb installs with the field RECOVER_DEVICES set to no . This will prevent the BOS install process from attempting to configure the devices as they were on the source machine of the mksysb.
Attention: If the system you have cloned is using OpenGL or PEX_PHIGS, there may be some device filesets from these LPPs that must be installed after a clone. OpenGL and PEX_PHIGS have graphics adapter-specific filesets, so if you cloned onto a system with a different graphics adapter, you will need to create a bundle as follows:echo OpenGL.OpenGL_X.dev > /usr/sys/inst.data/user_bundles/graphic_dev.bnd echo PEX_PHIGS.dev >> /usr/sys/inst.data/user_bundles/graphic_dev.bndYou can allocate this bundle when you install the mksysb, and the device filesets will be installed automatically if OpenGL and PEX_PHIGS are in your lpp_source.
Note: To perform a non-prompted installation, follow the instructions in "Performing a Non-Prompted BOS Installation" to complete the prerequisite tasks.
Note: If the mksysb image already exists as a file on the hard disk of the NIM master or client, no additional information is needed to define your mksysb resource.
Note: To perform a non-prompted installation, follow the instructions in "Performing a Non-Prompted BOS Installation" to complete the prerequisite tasks.
nim -o define -t mksysb -a server=ServerName \ -a location=LocationName -a mk_image=yes \ -a source=SourceMachine ResourceNameSpecify the server name and location of the mksysb image. The mk_image and source attributes are used to create the mksysb image if it does not already exist.
For a complete description of all the options that can be specified when creating a mksysb resource, see "mksysb Resource".
To define a mksysb resource, mksysb_res1 , from an existing mksysb image located in /export/backups/client_mksysb on the master, enter:
nim -o define -t mksysb -a server=master \ -a location=/export/backups/client_mksysb mksysb_res1Example 2
To create a mksysb image of the client machine, client1 , in /export/resources/new_mksysb on the master, and to define a mksysb resource, mksysb_res2 , enter:
nim -o define -t mksysb -a server=master \ -a location=export/resources/new_mksysb -a mk_image=yes \ -a source=client1 mksysb_res2
nim -o bos_inst -a source=mksysb -a mksysb=mksysb \ -a lpp_source=Lpp_Source -a spot=SPOTName \ -a boot_client=yes/no ClientNameSpecify the resources to be used to support the installation and any additional options for customizing the installation. To perform a simple mksysb installation, specify the mksysb, lpp_source, and SPOT resources.
If the client machine being installed is not already a running, configured NIM client, NIM will not automatically reboot the machine over the network for installation. A network boot must be performed manually on the machine. If that is the case, supply the boot_client=no attribute to the bos_inst command. (If the boot_client attribute value is not specified, it defaults to boot_client=yes.)
To perform a mksysb installation using the mksysb, mksysb1 , the lpp_source, lpp_source1 , and the SPOT, spot1 , on client machine, machine1 , which is not a running, configured NIM client, enter:
nim -o bos_inst -a source=mksysb -a mksysb=mksysb1 \ -a lpp_source=lpp_source1 -a spot=spot1 -a boot_client=no \ machine1
Notes:
- The steps to perform a mksysb installation are almost identical to the steps to perform other types of BOS installations. The main differences are that mksysb must be specified in the source attribute of the nim bos_inst command, and a mksysb resource must be allocated for the operation.
- To perform a non-prompted installation, follow the instructions in "Performing a Non-Prompted BOS Installation" to complete the prerequisite tasks.