The profile_additional_disks_base_co variable provides the ability to format and configure disks in addition to the root disk. Use the format cntndn to identify each additional disk.
The following example illustrates a three-disk configuration. The root disk is c0t0d0 and is defined using the variable profile_usedisk_base_config. The profile_additional_disks_base_co variable identifies two additional disks: c0t1d0 and c0t1d1 For each disk slice, a directory name is specified along with a size for that directory.
profile_usedisk_base_config = c0t0d0 profile_additional_disks_base_co = c0t1d0s0!/export/mydisk1!5000MB|c0t1d1s0!/export/mydisk2!6000MB
Once you define these variables, you must perform two additional task to specify the slices to format and use on the named additional disks.
Add a CHANGE line to the use the configuration file /opt/SUNWjet/etc/osp_jet_variables_to_replace on the JET server. For example:
CHANGE:base_config:profile_additional_disks:profile_disk_<name>_mtpt, profile_disk_<name>_size
By modifying the JET server configuration file, this global edit applies until you change it in that file. Any Solaris profile that uses the profile_additional_disks_base_co variable on this JET server will use this information when you run the associated provision_start plan.
Add the following line to the /opt/SUNWjet/etc/populate_client_dir file.
base_config_profile_additional_disks="$(echo ${base_config_profile_additional_disks} | tr ' ' '\n' | sed 's/s[0-7]//' | sort -u)"
Be sure that you add this line before the following code segment in the /opt/SUNWjet/etc/populate_client_dir file:
# # Now check to see if any additional disks need to be defined # if [ -n "${base_config_profile_additional_disks}" ]; then
When you run the provision_start plan on the Solaris profile, appropriate files will be created to configure the two disks, with appropriate mount points and slices.