User's Manual

Preparing the Script Files for Deployment Using Embedded Linux 119
raidcfg.sh
The raidcfg.sh sample script configures RAID controllers detected on the
system. User input is optional to run this script. The parameter is a name or
path to a log file. This parameter is not set to any value by default, and no log
file is generated. The default variable values used in this script are set in the
tkenvset.sh scripts. This script uses the raidcfg.sh utility to automatically
configure the detected controllers on your target system. For example, for the
first controller discovered, if raidcfg.sh discovers only one attached hard drive,
the script tries to create RAID 0; if two hard drives are discovered, a RAID 1
configuration is enabled; if three or more hard drives are discovered, a RAID 5
configuration is enabled.
NOTE: On the detected controller, a RAID virtual disk is created only if the array
disks connected to that particular controller have space available and, where
applicable, are not part of an already existing array group.
sysrep.sh
The sysrep.sh sample script applies SYSCFG options to the target system
based on the configuration information that has been saved in a
configuration file. User input is optional to run this script, depending on the
variable settings in the sysrep.sh scripts. This script uses the syscfg utility to
configure the BIOS and BMC in the target system using the configuration
file, syscfg.ini, passed as the first parameter to this script. If this parameter is
not passed, the default variables values used in this script are set in the
sysrep.sh scripts. The syscfg.ini file is generated with the syscap.sh sample
script. For information about using the syscap.sh sample script to capture
BIOS and BMC settings, see "syscap.sh" on page 120. The second parameter
is a name or path to a log file. This parameter is not set to any value by
default, and no log file is generated.
NOTE: If the replication requires a change in the memory redundancy mode,
the target server should be rebooted and the script should be executed again
to complete the replication.
NOTE: For x9xx or later systems, racrep.sh and sysrep.sh have duplicate functions.
If you run racrep.sh followed by sysrep.sh, the latter overwrites the former settings.