Creating and Using Oracle Solaris Kernel Zones

Exit Print View

Updated: December 2014
 
 

Managing Kernel Zone Storage Devices and the bootpri Resource Property

A kernel zone root is always accessible. You can add additional storage devices to a kernel zone by using the add device resource. Additional kernel zone storage devices have the following requirements:

  • The full storage device path (for example, /dev/rdsk/c9t0d0) must be specified.

  • The storage device must be defined by only one of the following:

    • The add device match resource property. If you specify a storage device for the add device match resource property, you must specify a device that is present in /dev/rdsk, /dev/zvol/rdsk, or /dev/did/rdsk.

    • A valid storage URI.

  • The storage device must be a whole disk or LUN.

Use the bootpri resource property to specify the boot order of each storage device. The bootpri resource property must be set to any positive integer value.


Caution

Caution  -  The bootpri resource property must be set only if the device is to be used as a boot device. If the bootpri resource property is set on devices other than boot devices, data corruption might result.


To unset the bootpri resource property, use the clear bootpri resource property.

If multiple bootable devices are present during installation, the devices will be used for a mirrored ZFS pool in the zone.

The default boot order of each device is determined by sorting devices first by bootpri, then by id if multiple devices have the same bootpri.

Example 1-5  Adding Additional Storage Devices to a Kernel Zone

This example shows how to add the additional storage device /dev/rsk/c9t0d0 to the kernel zonekzone1.

global# zonecfg -z kzone1
zonecfg:kzone1> add device
zonecfg:kzone1:device> set match=/dev/rdsk/c9t0d0
zonecfg:kzone1:device> set bootpri=4
zonecfg:kzone1:device> end
Example 1-6  Changing the Kernel Zone Default Boot Device to Use a Storage URI:

This example shows how to change the default boot device on the kernel zone kzone1 to use a storage URI located at iscsi://zfssa/luname.naa.600144F0DBF8AF19000052E820D60003.

global# zonecfg -z kzone1
zonecfg:kzone1> select device id=0
zonecfg:kzone1:device> set storage=iscsi://zfssa/luname.naa.600144F0DBF8AF19000053482CC00029
zonecfg:kzone1:device> end
zonecfg:kzone1> info device
device:
	match not specified
	storage: iscsi://zfssa/luname.naa.600144F0DBF8AF19000052E820D60003
	id: 0
	bootpri: 0