Meta-Sets

From pressy's brainbackup
Revision as of 14:23, 20 September 2013 by WikiSysop (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

About MetaSets

How to recover a MetaSet

inside the cluster:

# clrs disable -g <group> +

purge diskset:

# metaset -s <set> -P

configure metaset:

# metaset -s <set> -a -h <host> 
# metaset -s <set> -a -h <host>
# metaset -s <set> -a /dev/did/dsk/d33
# metainit -s <set> d10 1 1 /dev/did/dsk/d33s0
# metarecover -s <set> [-n] -v d10 -p -d
--> -n don't actually perform, only show output
# fsck -o p /dev/md/<set>/rdsk/d60
# clrs enable -g <group> +

Recover failed MetaSet

In this situation, the easiest way to fix the problem is to rebuild the diskset after you remove the diskset using the dcs_config.


1) Download the SUNWscdtk from the document 1305474.1. 2) Install it on each cluster node

# pkgadd -d . SUNWscdtk

3) Take the bla-rg offline

# clrg offline bla-rg

4) Ensure that the bla11-ms is not imported on each cluster node.

# metastat -s bla11-ms

4) To remove the diskset from the solaris and the cluster configuration, run the following command on each cluster node step by step. (Run them on each node step by step)

#
# metaset -s bla11-ms -C purge
# metaset -s bla11-ms
metaset: xxxxx: bla11-ms "bla11-ms": no such set
# /usr/cluster/dtk/bin/dcs_config -c remove -s bla11-ms
Error: Service is busy
# /usr/cluster/dtk/bin/dcs_config -c remove -s bla11-ms
Error: Service is busy
# cldg status
 
=== Cluster Device Groups ===
 
--- Device Group Status ---
 
Device Group Name     Primary      Secondary    Status
-----------------     -------      ---------    ------
bla11-ms              s01bla01     s01bla02     Online
bla12-ms              s01bla01     s01bla02     Online
bla13-ms              s01bla01     s01bla02     Online
bla14-ms              s01bla02     s01bla01     Online
bla15-ms              s01bla02     s01bla01     Online
dag01-ms              s01bla01     s01bla02     Online
 
# cldg offline bla11-ms
 
# cldg status
 
=== Cluster Device Groups ===
 
--- Device Group Status ---
 
Device Group Name     Primary      Secondary    Status
-----------------     -------      ---------    ------
bla11-ms              -            -            Offline
bla12-ms              s01bla01     s01bla02     Online
bla13-ms              s01bla01     s01bla02     Online
bla14-ms              s01bla02     s01bla01     Online
bla15-ms              s01bla02     s01bla01     Online
dag01-ms              s01bla01     s01bla02     Online
 
 
# /usr/cluster/dtk/bin/dcs_config -c remove -s bla11-ms
# cldg status
 
=== Cluster Device Groups ===
 
--- Device Group Status ---
 
Device Group Name     Primary      Secondary    Status
-----------------     -------      ---------    ------
bla12-ms              s01bla01     s01bla02     Online
bla13-ms              s01bla01     s01bla02     Online
bla14-ms              s01bla02     s01bla01     Online
bla15-ms              s01bla02     s01bla01     Online
dag01-ms              s01bla01     s01bla02     Online

5) Rebuild the diskset

# metaset -s bla11-ms -a -h s01dbp01 s01dbp02
# cldevicegroup sync bla11-ms
# metaset -s bla11-ms
# metaset -s bla11-ms -C release

6) Take the diskset online

# cldg switch -n s01dbp01 bla11-ms
# cldg status

7) Add the disks to the diskset

# metaset -s bla11-ms -a /dev/did/rdsk/d28
# metaset -s bla11-ms -a /dev/did/rdsk/d34
# metaset -s bla11-ms -a /dev/did/rdsk/d35

8) Create the volumes in the diskset.

# metainit bla11-ms/d22 1 1 /dev/did/rdsk/d34s0
# metainit bla11-ms/d102 -m bla11-ms/d22 1
# metainit bla11-ms/d21 1 1 /dev/did/rdsk/d28s0
# metainit bla11-ms/d101 -m bla11-ms/d21 1
# metainit bla11-ms/d20 1 1 /dev/did/rdsk/d35s0
# metainit bla11-ms/d100 -m bla11-ms/d20 1