=head1 NAME B - Use this xCAT command to create xCAT osimage definitions and related AIX/NIM resources. The command can also be used to update an existing AIX diskless image(SPOT). =head1 SYNOPSIS B B B =head1 DESCRIPTION This command will create both an xCAT osimage definition and the corresponding NIM resource definitions. The command can also be used to update an existing AIX diskless image(SPOT). The command will also install the NIM master software and configure NIM if needed. The naming convention for the NIM SPOT resource definition is to use the same name as the xCAT osimage. The naming convention for any other NIM resources that are created is "_". (ex. "61image_lpp_source" ) When creating a mksysb image definition you must specify either the "-n" or the "-b" option. The "-n" option can be used to create a mksysb image from an existing NIM client machine. The "-b" option can be used to specify an existing mksysb backup file. B When creating a diskless osimage definition you also have the option of automatically updating the NIM SPOT resource. You can have additional software installed or you can have configuration files added or updated. To have software installed you must provide either the names of NIM installp_bundle resources or fileset names on the command line using the "attr=val" option. You may also supply the installp flags, RPM flags, emgr flags to use when installing the software. To have configuration files updated you must provide the full path name of a "synclists" file which contains the the list of actual files to update. The xCAT osimage definition that is created will contain the installp_bundle, otherpkgs, and synclists files that are provided on the command line. B If you wish to update an existing diskless image after it has already been created you can use the "-u" (update) option. In this case the xCAT osimage definition will not be updated. There are two ways to use the update feature. You can update the osimage definition and run the B command with no "installp_bundle", "otherpkgs", or "synclists" command line values. The information for updating the SPOT will come from the osimage definition only. This has the advantage of keeping a record of any changes that were made to the SPOT. Or, you could do a more ad hoc update by providing one or more of the "installp_bundle", "otherpkgs", or "synclists" values on the command line. If any of these values are provided the B command will use those values only. The osimage definition will not be used or updated. WARNING: Installing random RPM packages in a SPOT may have unpredictable consequences. The SPOT is a very restricted environment and some RPM packages may corrupt the SPOT or even hang your management system. Try to be very careful about the packages you install. When installing RPMs, if the mknimimage command hangs or if there are file systems left mounted after the command completes you may need to reboot your management node to recover. This is a limitation of the current AIX support for diskless systems B You can use the "-i" and "-p" options to copy an existing diskless osimage. To do this you must supply the name of an existing xCAT osimage definition and the name of the new osimage you wish to create. The B command will do the following: - create a new xCAT osimage definition using the new name that was specified. - copy the NIM SPOT resource to a new location and define it to NIM using a new name. - if the original osimage included a NIM "shared_root" resource then a new shared_root resource will be created for the new SPOT. - any other resources (or attributes) included in the original osimage will be included in the new osimage definition. - if the "-p" option is specified then the original NIM lpp_source resource will be copied to a new location and redfined to NIM. (The default would be to use the original lpp_source - to save file system space.) B IMPORTANT: The NIM lpp_source and SPOT resources can get quite large. Always make sure that you have sufficient file system space available before running the B command. To list the contents of the xCAT osimage definition use the xCAT B command ("lsdef -t osimage -l -o "). To check the validity of a SPOT or lpp_source resource To remove an xCAT osimage definition along with the associated NIM resource definitions use the B command. Be careful not to accidently remove NIM resources if they are still needed. To list a NIM resource definition use the AIX B command ("lsnim -l "). To check the validity of a SPOT or lpp_source resource use the AIX B command ("nim -o check "). To remove specific NIM resource definitons use the AIX B command. ("nim -o remove "). =head1 OPTIONS =over 10 =item B Specifies one or more "attribute equals value" pairs, separated by spaces. Attr=val pairs must be specified last on the command line. Currently supported attributes: =over 3 =item B The name of a NIM bosinst_data resource. =item B The name of the NIM dump resource. =item B The name of a NIM fb_script resource. =item B The name of the NIM home resource. =item B One or more comma separated NIM installp_bundle resources. =item B The name of the NIM lpp_source resource. =item B The name of a NIM mksysb resource. =item B One or more comma separated installp or rpm packages. The rpm packages must have a prefix of 'R:', (ex. R:foo.rpm) =item B The name of the NIM paging resource. =item B The name of the NIM resolv_conf resource. =item B The name of the NIM root resource. =item B