Go to main content

Administering an Oracle® Solaris Cluster 4.4 Configuration

Exit Print View

Updated: November 2019
 
 

How to Change the Fencing Protocol for a Single Storage Device

You can also set the fencing protocol for a single storage device.


Note -  To change the default fencing setting for a quorum device, you must unconfigure the device, change the fencing setting, and reconfigure the quorum device. If you plan to turn fencing off and back on regularly for devices that include quorum devices, consider configuring quorum through a quorum server service to eliminate interruptions in quorum operation.

The phys-schost# prompt reflects a global-cluster prompt. Perform this procedure on a global cluster.

This procedure provides the long forms of the Oracle Solaris Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical.


Caution

Caution  -  If fencing is turned off under the wrong circumstances, your data can be vulnerable to corruption during application failover. Examine this data corruption possibility carefully when you are considering turning fencing off. Fencing can be turned off if the shared storage device does not support the SCSI protocol or if you want to allow access to the cluster's storage from hosts outside the cluster.


  1. Assume the root role or a role that provides solaris.cluster.modify authorization.
  2. Set the fencing protocol of the storage device.
    cldevice set -p default_fencing ={pathcount | \
    scsi3 | global | nofencing | nofencing-noscrub} device
    -p default_fencing

    Modifies the default_fencing property of the device.

    pathcount

    Determines the fencing protocol by the number of DID paths that are attached to the shared device.

    scsi3

    Uses the SCSI-3 protocol.

    global

    Uses the global default fencing setting. The global setting is used for non-quorum devices.

    nofencing

    Turns fencing off by setting the fencing status for the specified DID instance.

    nofencing-noscrub

    Scrubbing the device ensures that the device is cleared of all persistent SCSI reservation information and allows access to the storage device from systems outside the cluster. Use the nofencing-noscrub option only for storage devices that have severe problems with SCSI reservations.

    device

    Specifies the name of the device path or device name.

    For more information, see the cluster(8CL) man page.

Example 44  Setting the Fencing Protocol of a Single Device

The following example sets the device d5, specified by device number, to the SCSI-3 protocol.

# cldevice set -p default_fencing=prefer3 d5

The following example turns default fencing off for the d11 device.

#cldevice set -p default_fencing=nofencing d11