Go to main content

Administering an Oracle® Solaris Cluster 4.4 Configuration

Exit Print View

Updated: March 2019
 
 

How to Configure a Local ZFS Storage Pool Without HAStoragePlus

This procedure describes how to configure a ZFS storage pool (zpool) on a local device without configuring an HAStoragePlus resource.


Note -  To configure a local zpool that uses an HAStoragePlus resource, instead go to How to Add and Register a Replicated Device Group (ZFS).
  1. List the DID mappings and identify the local device to use.

    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
    …
  2. Determine the device group name of the DID device that you choose for the zpool.

    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
  3. Set the localonly property for the DID device.

    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(8CL) man page.

  4. Verify the device settings.
    phys-schost-1# cldevicegroup show dsk/d2
  5. Create the zpool.
    phys-schost-1# zpool create localpool c0t6d0
  6. (Optional) Create a ZFS dataset.
    phys-schost-1# zfs create localpool/data
  7. Verify the new zpool.
    phys-schost-1# zpool list