This procedure describes how to configure a ZFS storage pool (zpool) on a local device without configuring an HAStoragePlus resource.
Choose a device that lists only the cluster node that will use the new zpool. Note both the cNtXdY device name and the /dev/did/rdsk/dN DID device name.
phys-schost-1# cldevice show | grep Device
In the following example, the entries for DID devices /dev/did/rdsk/d1 and /dev/did/rdsk/d2 show that those drives are used only by phys-schost-1. For the examples in this procedure, DID device /dev/did/rdsk/d2 with device name c0t6d0 will be used and configured for cluster node phys-schost-1.
=== DID Device Instances === DID Device Name: /dev/did/rdsk/d1 Full Device Path: phys-schost-1:/dev/rdsk/c0t0d0 DID Device Name: /dev/did/rdsk/d2 Full Device Path: phys-schost-1:/dev/rdsk/c0t6d0 DID Device Name: /dev/did/rdsk/d3 Full Device Path: phys-schost-1:/dev/rdsk/c1t1d0 Full Device Path: phys-schost-2:/dev/rdsk/c1t1d0 …
The following example output shows that dsk/d2 is the device group name for DID device /dev/did/rdsk/d2s2. A relationship where the device group name is part of the DID device name is often the case, but not always. This device group has only one node, phys-schost-1, in its node list.
phys-schost-1# cldevicegroup show -v … Device Group Name: dsk/d2 Type: Disk failback: false Node List: phys-schost-1 preferenced: false localonly: false autogen: true numsecondaries: 1 device names: /dev/did/rdsk/d2s2 …
Specify the device group name that you identified in Step 2. If you want to disable fencing for the device, also include default_fencing=nofencing in the command.
phys-schost-1# cldevicegroup set -p localonly=true \ -p autogen=true [-p default_fencing=nofencing] dsk/d2
For more information about cldevicegroup properties, see the cldevicegroup(1CL) man page.
phys-schost-1# cldevicegroup show dsk/d2
phys-schost-1# zpool create localpool c0t6d0
phys-schost-1# zfs create localpool/data
phys-schost-1# zpool list