The HP Virtual Server Environment : Virtual Partition Example Scenario (part 7) - Configuring an nPartition and Virtual Partitions for Auto-Booting
Configuring an nPartition and Virtual Partitions for Auto-Booting
The two vPars are now configured and running properly. However, the boot sequence for the vPar monitor and the two vPars requires manual interaction. This may not be obvious because the vparstatus output shown in Listing 12 indicates that both of the vPars have the auto attribute set. However, additional configuration steps are necessary for two reasons. First, each vPar's auto attribute is used by the vPar monitor, not the firmware of the server where vPars are running. Therefore, firmware must be set to automatically boot independent of the vPars' attributes. Secondly, the vPar monitor must be invoked in such a manner as to automatically boot all vPars whose auto attribute set. If you don't configure these settings, the vPars will require manual interaction during booting.
The vPar architecture allows the monitor to be booted from the boot disk of any of the vPars. No one vPar is the “master” vPar. Even if the disk that is used as the primary boot device for the monitor experiences a hardware failure, the worst-case scenario is the loss of a single vPar. The vPar monitor can be booted from another vPar's boot disk and the configuration will be the same as if it was booted from the original.
The following steps are required for an nPartition and the contained vPars to be booted automatically.
1. | Configure the auto attribute for each vPar that should be automatically booted. This can be done through vparcreate, vparmodify, or setboot.
By default, vPars will be set to automatically boot. In most cases,
this step involves ensuring that the default value hasn't been changed. |
2. | Set primary and alternate boot paths in stable storage. Use either parmodify or the firmware interfaces directly to set the boot paths. |
3. | Modify the AUTO file for each boot device to boot the vPar monitor. The vPar monitor must be directed to boot all of the vPars. The mkboot command is used to modify the AUTO file from the vPar that owns the boot device. |
4. | Configure firmware to automatically boot from the specified boot paths. This step must be performed from the firmware interface. |
note
In a vPar environment, the setboot command does not affect the boot paths used by firmware to boot the vPar monitor. Instead, the setboot command only affects the boot paths for the local vPar.
Listing 13 shows the nPartition status for zoo6. Notice that the primary, alternate, and HA alternate boot paths are set to the same boot devices configured for the zoo24 and zoo25 vPars. The parmodify command can be used to set the boot paths when they have not already been set using the nPartition commands or the firmware interfaces for the nPartition.
Listing 13. nPartition Status with Boot Paths
After setting the boot paths used by firmware, each of the boot disks must be configured to load the vPar monitor. Notice that in Listing 14, the primary boot device for zoo24 is shown in the ioscan output. The raw disk device is used as an argument to the mkboot command. The mkboot command shown at the end of the listing modifies the AUTO file on the specified disk. The AUTO file is used when booting and in this case boot the vPar monitor. Also note that the –a argument is passed to the vPar monitor. This argument causes the vPar monitor to boot all of the vPars whose auto attribute is set. The mkboot command must be executed on the vPar that owns the respective boot devices. In this example, only the nPartition's primary boot device for the zoo6 nPartition is owned by the vPar zoo24.
Listing 14. Set Primary Boot Disk to Auto Boot vPar Monitor (from zoo24)
To achieve the highest level of availability, the nPartition's alternate and HA alternate devices must also have their AUTO file set to automatically boot the vPar monitor. Since the zoo25 vPar owns both of the zoo6 nPartition's alternate and HA alternate boot devices, the mkboot command is executed for both of those devices from the same vPar. The mkboot commands are identical except for the path of the target device, and the firmware boots the monitor in the same fashion regardless of the physical boot device.
Listing 15. Set Alternate Boot Disks to Auto Boot vPar Monitor (from zoo25)
The nPartition's primary, alternate, and HA alternate boot devices have been properly configured to boot the vPar monitor and all of the vPars. The final step is configuring firmware to automatically boot from these boot paths. Listing 16 shows the boot console handler (BCH) firmware commands for setting the boot order and actions. This sequence of commands tells the firmware to attempt to boot from the nPartition's primary, HA alternate, and alternate boot paths, in that order. The value at the end of each of the commands specifies the action to take if booting from a given path is unsuccessful. The value 2 specifies that the firmware should continue on to the next path when booting fails. The value 1 specifies that firmware should return to BCH upon failure to boot. In this case, firmware is configured to attempt booting from all three booth paths and return to BCH only if all three are unsuccessful.
Listing 16. Set Firmware Path Flags to Automatically Boot
All of the steps necessary for automatically booting the nPartition and the contained vPars have been completed. The nPartition zoo6 will automatically boot the vPar monitor and pass the vPar monitor the appropriate flag to indicate that it should automatically boot all vPars. Listing 17 shows the fully automatic boot process.