When managing disks used in Solaris Kernel Zones environment by GDS, there are following two methods:
This section describes how to use GDS in each zone and notes when using GDS.
a. How to use GDS in Kernel Zones
When configuring the zone (zonecfg), add the device that exists in /dev/rdsk or /dev/zvol/rdsk/ZFS_storage_pool_name in the global zone to the Kernel Zones (add device), and then register the device to the GDS class in Kernel Zones.
When disk label exists in the device of global zone, add device to the kernel zone after deleting disk label. Using format(1M) command can be executed for checking and deleting existence of disk label. For use of format(1M) command, see the Solaris manual.
Class to be created in Kernel Zones | Device in the global zone that can be registered in the class on Kernel Zones |
---|---|
Shared class | Device that exists on /dev/rdsk |
Local class | Device that exists on /dev/rdsk |
The procedure to configure or operate GDS in Kernel Zones is the same as in the physical environment, except below.
A root class cannot be created.
To configure the redundant system disk in Kernel Zones, mirror the disk in the global zone.
To register the disks from multiple storages to one class, do not register five or more disks that belong to the same storage.
In the snapshot function of GDS Snapshot, the copy function of storage is disabled.
b. How to use GDS in global zone
The function of GDS, and how to configure or operate GDS in the global zone are the same as in the physical environment.
To use the GDS volume that was created in the global zone from Kernel Zones, register the GDS volume to the ZFS storage pool in the global zone and create the ZFS volume. When configuring the zone (zonecfg), add the ZFS volume to Kernel Zones (add device). Set "false" for "autoboot" when configuring the zone (zonecfg) so that Kernel Zones are not automatically started when the system is started.
Note
The device of the GDS volume cannot be added to Kernel Zones by "add device" of the zonecfg command.