Tuesday Mar 15, 2011

Setup of local zpool on local or shared device with Solaris Cluster

Maybe there is a need (for whatever reason) to configure a local zpool in a Solaris Cluster environment. As local zpool I mean that this zpool should only be available on one Solaris Cluster node WITHOUT using SUNW.HAStoragePlus. Such a local zpool can be configured with local devices (only connected to one node) or shared devices (accessible from all nodes in the cluster via SAN). However in case of shared device it would be better to setup a zone in the SAN switch to make the device only available to one host.

The following procedure is necessary to use local devices in local zpool:

In this example I use the local device c1t3d0 to create a local zpool
a) Look for the did device of the device which should be used by the zpool
# scdidadm -l c1t3d0
49 node0:/dev/rdsk/c1t3d0 /dev/did/rdsk/d49
b) Check the settings of the used did device
# cldg show dsk/d49
Note: Only one node should be in the node list
c) Set localonly flag for the did device. Optional: set autogen flag
# cldg set -p localonly=true -p autogen=true dsk/d49
or disable fencing for the did device
# cldev set -p default_fencing=nofencing d49
d) Verify the settings
# cldg show dsk/d49
e) Create the zpool
# zpool create localpool c1t3d0
# zfs create localpool/data


The following procedure is necessary to use shared devices in local zpool:

In this example I use the shared device c6t600C0FF00000000007BA1F1023AE1711d0 to create a local zpool
a) Look for the did device of the device which should be used by the zpool
# scdidadm -L c6t600C0FF00000000007BA1F1023AE1711d0
11 node0:/dev/rdsk/c6t600C0FF00000000007BA1F1023AE1710d0 /dev/did/rdsk/d11
11 node1:/dev/rdsk/c6t600C0FF00000000007BA1F1023AE1710d0 /dev/did/rdsk/d11
b) Check the settings of the used did device
# cldg show dsk/d11
c) Remove the node which should not access the did device
# cldg remove-node -n node1 dsk/d11
d) Set localonly flag for the did device. Optional: set autogen flag
# cldg set -p localonly=true -p autogen=true dsk/d11
or disable fencing for the did device
# cldev set -p default_fencing=nofencing d11
e) Verify the settings
# cldg show dsk/d11
f) Create the zpool
# zpool create localpool c6t600C0FF00000000007BA1F1023AE1711d0
# zfs create localpool/data


If you forgot to do this for a local zpool then there is a possibility that the zpool will be FAULTED state after a boot.

About

I'm still mostly blogging around Solaris Cluster and support. Independently if for Sun Microsystems or Oracle. :-)

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today