通过命令行配置 NIM 主控机并创建基本的安装资源
使用此步骤通过命令行配置 NIM 主控机并创建基本的安装资源。
- 将 AIX® 卷 1 介质插入到指定主机器的相应驱动器中。
- 要从磁盘安装 bos.sysmgt.nim.master 文件集,请输入: # installp -agXd /dev/cd0 bos.sysmgt.nim.master
- 要使用以下配置配置 NIM 主控机,请输入: #
nimconfig -a netname=network1 -a pif_name=tr0 -a ring_speed1=16 -a
platform=chrp -a netboot_kernel=mp
master host name = master1 primary network interface = tr0 ring speed = 16 platform = chrp kernel type = mp注: 有关其他属性信息,请参阅 nimconfig 命令。 - 要在具有 400 MB 空间且安装点为 /export/lpp_source的 rootvg 卷组中创建文件系统,请输入:
# crfs -v jfs2 -g rootvg -a size=$((2000*400)) \ -m /export/lpp_source -A yes -p rw -t no - 要安装文件系统,请输入: # mount /export/lpp_source
- lpp_source 包含从源设备复制的安装映像 (在此示例中,为 CD-ROM)。 lpp_source 的服务器为 NIM 主控机。 映像将存储在 /export/lpp_source/lpp_source1 目录中。 要创建名为 lpp_source1的 lpp_source 资源,请输入:
# nim -o define -t lpp_source -a source=/dev/cd0 \ -a server=master -a location=/export/lpp_source/lpp_source1 \ lpp_source1 - 要在具有 200 MB 空间 (安装点为 /export/spot) 的 rootvg 卷组中创建文件系统,请输入:
# crfs -v jfs2 -g rootvg -a size=$((2000*200)) \ -m /export/spot -A yes -p rw -t no - 要安装文件系统,请输入: # mount /export/spot
- SPOT 资源将从映像源中的映像进行安装 (在本例中,这是在步骤 6 中创建的 lpp_source )。 资源的服务器为 NIM 主控机,且 SPOT 存储在 /export/spot/spot1 目录中。 要创建名为 spot1的 SPOT 资源,请输入:
# nim -o define -t spot -a source=lpp_source1 \ -a server=master -a location=/export/spot spot1 - 如果不支持无盘和无数据客户机,那么不需要继续此过程。 如果支持无盘和无数据客户机,创建并安装它们资源的文件系统。在具有 150 MB 空间和 /export/dd_resource 安装点的 rootvg 卷组中创建文件系统,请输入:
# crfs -v jfs2 -g rootvg -a size=$((2000*150)) \ -m /export/dd_resource -A yes -p rw -t no - 要安装文件系统,请输入: # mount /export/dd_resource
- 在 /export/dd_resource 目录的子目录中创建无盘和无数据客户机资源。 并不需要所有资源。 仅创建在环境中要使用的资源。
- 要创建名为 root1的 root 资源 (无盘和无数据客户机需要此资源,除非改为使用 shared_root 资源 (仅适用于无盘客户机)) ,请输入:
# nim -o define -t root -a server=master \ -a location=/export/dd_resource/root1 root1 - 要创建名为 shared_root1的 shared_root 资源 (无盘客户机需要此资源,除非改为使用根资源) ,请输入:
# nim -o define -t shared_root -a server=master \ -a location=/export/dd_resource/shared_root1 \ -a spot=spot1 shared_root1 - 要创建名为 dump1 的 dump 资源 (可选) ,请输入:
# nim -o define -t dump -a server=master \ -a location=/export/dd_resource/dump1 dump1 - 要创建名为 paging1 的 paging 资源 (对于无盘客户机是必需的) ,请输入:
# nim -o define -t paging -a server=master \ -a location=/export/dd_resource/paging1 paging1 - 要创建名为 home1 的 home 资源 (可选) ,请输入:
# nim -o define -t home -a server=master \ -a location=/export/dd_resource/home1 home1 - 要创建名为 shared_home1 的 shared_home 资源 (可选) ,请输入:
# nim -o define -t shared-home -a server=master \ -a location=/export/dd_resource/shared_home1 shared_home1 - 要创建名为 tmp1 的 tmp 资源 (可选) ,请输入:
# nim -o define -t tmp -a server=master \ -a location=/export/dd_resource/tmp1 tmp1
- 要创建名为 root1的 root 资源 (无盘和无数据客户机需要此资源,除非改为使用 shared_root 资源 (仅适用于无盘客户机)) ,请输入: