Dwai Lahiri's Sun Cluster Cheat Sheet - 3

Searching Sun Cluster

Contents
Index

This page contains the following information:



Displays existing device group resources in the Cluster

scstat -D

Registering VxVM device groups

scconf -a -D type=vxvm,name=. \
nodelist=:, \
preferenced=true,failback=enabled

  • nodelist should contain only nodes that are physically connected to the disks of that device group.
  • preferenced=true/false affects whether nodelist indiciates an order of failover preference. On a two-node cluster, this options is only meaningful if failback is enabled.
  • failback=disabled/enabled affects whether a preferred node “takes back” its device group when it joins the cluster. The default value is disabled. When faileback is disabled, preferenced is set to false. If it is enabled, preferenced also must be set to true.
Moving device groups across nodes of a cluster

When VxVM device groups are registered as Sun Cluster resources, NEVER USE vxdg import/deport commands to change ownership (node-wise) of the device group. This will cause Sun Cluster to treat device group as failed resource.

Use the following command instead:

# scswitch -z -D -h

Resyncing device groups

scconf -c -D name=,sync

Changing device group configuration

scconf -c -D name=,preferenced=,failback=

Maintenance mode

scswitch -m -D

all volumes in the device group must be unopened or unmounted (not being used) in order to do that.
To come back out of maintenance mode

scswitch -z -D -h

Repairing DID device database after replacing JBOD disks

Make sure you know which disk to update ...

scdidadm -l c1t1d0

returns node1:/dev/rdsk/c1t1d0 /dev/did/rdsk/d7

scdidadm -l d7

returns node1:/dev/rdsk/c1t1d0 /dev/did/rdsk/d7

Then use following cmds to update and verify the DID info:

scdidadm -R d7
scdidadm -l -o diskid d7

returns a large string with disk id.

Replacing a failed disk in a A5200 Array (similar concept with other FC disk arrays)

vxdisk list #get the failed disk name

vxprint -g dgname #determine state of the volume(s) that might be affected

On the hosting node, replace the failed disk:

luxadm remove enclosure,position
luxadm insert enclosure,position

On either node of the cluster (that hosts the device group):

scdidadm -l c#t#d#
scdidadm -R d#

On the hosting node:

vxdctl enable

vxdiskadm #replace failed disk in vxvm

vxprint -g
vxtask list #ensure that resyncing is completed

Remove any relocated submirrors/plexes (if hot-relocation had to move something out of the way):

vxunreloc repaired-diskname

Solaris Vol Mgr (SDS) in Sun Clustered Env

Preferred method of using Soft partitions is to use single slices to create mirrors and then create volumes (soft partitions) from that (kind of similar to VxVM public region in an initialized disk).

Shared Disksets and Local Disksets

Only disks that are physically located in the multi-ported storage will be members of shared disksets. Only disks that are in the same diskset operate as a unit; they can be used together to build mirrored volumes, and primary ownership of the diskset transfers as a while from node to node.

Boot disks are the local disksets. This is a pre-requisite in order to have shared disksets.

Replica management
  • Add local replicas manually.
  • Put local state db replicas on slice 7 of disks (as a convention) in order to maintain uniformity. Shared disksets have to have replicas on slice 7.
  • Spread local replicas evenly across disks and controllers.
  • Support for Shared disksets is provided by Pkg SUNWmdm
Modifying /kernel/drv/md.conf

nmd \=\= max num of volumes (default 128)
md_nsets \=\= max is 32, default 4.

Creating shared disksets and mediators

scdidadm -l c1t3d0

Returns d17 as DID device

scdidadm -l d17
metaset -s -a -h # creates metaset
metaset -s -a -m # creates mediator
metaset -s -s /dev/did/rdsk/d9 /dev/did/rdsk/d17
metaset # returns values
metadb -s
medstat -s # reports mediator status

Remaining syntax vis-a-vis Sun Cluster is identical to that for VxVM.

IPMP and Sun Cluster

IPMP is cluster un-aware. To work around that, Sun Cluster uses Cluster-specific public network mgr daemon (pnmd) to integrate IPMP into the cluster.

pmnd daemon has two capabilities:

  • populate CCR with public network adapter status
  • facilitate application failover

When pnmd detects all members of a local IPMP group have failed, it consults a file called /var/cluster/run/pnm_callbacks. This file contains entries that would have been created by the activation of LogicalHostname and SharedAddress resources. It is the job of hafoip_ipmp_callback to device whether to migrate resources to another node.

scstat -i #view IPMP configuration

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact