Perform the following procedures to configure volume management.
From phys-sun, create one disk set for each data service that you will configure.
Verify that the configuration of the disk sets is correct and visible to both nodes.
phys-X# metaset Set name = nfsset, Set number = 1 … Set name = apacheset, Set number = 2 … Set name = oraset, Set number = 3 … |
From phys-sun, list the DID mappings.
Output is similar to the following, where WWN stands for the unique World Wide Number (WWN) of the disk target.
phys-sun# cldevice show | grep Device === DID Device Instances === DID Device Name: /dev/did/rdsk/d1 Full Device Path: phys-sun:/dev/rdsk/c0t0d0 DID Device Name: /dev/did/rdsk/d2 Full Device Path: phys-sun:/dev/rdsk/c0t6d0 DID Device Name: /dev/did/rdsk/d3 Full Device Path: phys-sun:/dev/rdsk/c1tWWNd0 Full Device Path: phys-moon:/dev/rdsk/c1tWWNd0 DID Device Name: /dev/did/rdsk/d4 Full Device Path: phys-sun:/dev/rdsk/c1tWWNd0 Full Device Path: phys-moon:/dev/rdsk/c1tWWNd0 DID Device Name: /dev/did/rdsk/d5 Full Device Path: phys-sun:/dev/rdsk/c0tWWNd0 Full Device Path: phys-moon:/dev/rdsk/c0tWWNd0 … |
Map LUN0, LUN1, and LUN2 to their DID device names.
Compare the information that you saved when you created the LUNs with the output of the cldevice command. For each LUN, locate the /dev/rdsk/cNtWWNdY name that is associated with the LUN. Then find that same disk name in the cldevice output to determine the DID device name.
These procedures assume the following mappings for the purposes of this example. Substitute your own disk names and DID names when you perform the remainder of these procedures.
Data Service |
LUN Name |
Raw Disk Device Name |
DID Name |
---|---|---|---|
Sun Cluster HA for Oracle |
LUN0 |
/dev/did/rdsk/c1tWWNd0 |
dsk/d3 |
Sun Cluster HA for NFS |
LUN1 |
/dev/did/rdsk/c1tWWNd0 |
dsk/d4 |
Sun Cluster HA for Apache |
LUN2 |
/dev/did/rdsk/c0tWWNd0 |
dsk/d5 |
Take ownership of the Oracle disk set oraset.
phys-sun# cldevicegroup switch -n phys-sun oraset |
Add LUN0 to the Oracle disk set.
Use the full DID path name.
phys-sun# metaset -s oraset -a /dev/did/rdsk/d3 |
Verify that the configuration of the disk set is correct.
phys-sun# metaset -s oraset |
Repeat the process to add LUN1 to the NFS disk set nfsset.
phys-sun# cldevicegroup switch -n phys-sun nfsset phys-sun# metaset -s nfsset -a /dev/did/rdsk/d4 phys-sun# metaset -s nfsset |
Repeat the process to add LUN2 to the Apache disk set apacheset.
phys-sun# cldevicegroup switch -n phys-sun apacheset phys-sun# metaset -s apacheset -a /dev/did/rdsk/d5 phys-sun# metaset -s apacheset |
On both nodes, create an /etc/lvm/md.tab file with the following entries.
These entries define the volumes for each disk set. The one-way mirrors provide flexibility to add a mirror later without unmounting the file system. You can create the file on one node and copy it to the other node, or you can create it on both nodes at the same time by using the cconsole(1M) utility.
apacheset/d0 -m apacheset/d10 apacheset/d10 1 1 /dev/did/rdsk/d3s0 nfsset/d1 -m nfsset/d11 nfsset/d11 1 1 /dev/did/rdsk/d4s0 oraset/d2 -m oraset/d12 oraset/d12 1 1 /dev/did/rdsk/d5s0 oraset/d0 -p oraset/d2 3G oraset/d1 -p oraset/d2 3G |
From phys-sun, take ownership of each of the disk sets and activate their volumes.
phys-sun# cldevicegroup switch -n phys-sun apacheset phys-sun# metainit -s apacheset -a phys-sun# cldevicegroup switch -n phys-sun nfsset phys-sun# metainit -s nfsset -a phys-moon# cldevicegroup switch -n phys-sun oraset phys-moon# metainit -s oraset -a |
Check the status of the volumes for each disk set.
phys-sun# metastat … Status: Okay … |