Escolar Documentos
Profissional Documentos
Cultura Documentos
Overview
Hardware Con iguration Command !"ecution #esulting system con iguration #eplica changes
`
Copyright 2006 Sun Microsystems, Inc. All rights reserved.
Hardware Configuration
Node A
Shared Storage
Node B
Local Replica
Local Replica
Commands Executed
Create local replicas on $odeA and $ode% Command&
Resulting metaconfiguration
$odeA ( $ode%
Set name ) oo, Set num*er ) + Host $odeA $ode% ,wner
Replica changes
-he only change will *e the addition o a set record into each o the nodes. local replicas&
RecId 0x00000003: Type:USER [0005] Type2: Set Size = 1212 sr_revision=0x00010000 sr_ !"#s=0x$0000000 sr_se! id=0x00000003 sr_#enid=2 sr_setno=1 sr_setn"%e=& oo& sr_cti%e='ed ("n 11 1):1$:3$ 200* 113+01)31$ [ 35,13,] sr_%-i"r#s.%-_ =1000 sr_%-i"r#s.%-_t/.reinst"te_resv_de!"y=*000 sr_%-i"r#s.%-_t/.%in_o0ners-ip_de!"y=*000 sr_%-i"r#s.%-_t/.%"x_o0ners-ip_de!"y=30000 sr_driverec=0x00000000 sr_%ed.n_cnt=0 sr_%ed.n_!st[0]."_cnt=0 sr_%ed.n_!st[1]."_cnt=0 sr_%ed.n_!st[2]."_cnt=0 sr_nodes[0]=&1ode2& sr_nodes[1]=&1ode3& Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-hese operations re1uire additional coordination across hosts 2eg. !nsuring that a set num*er and name are not currently used on any o the potential nodes in a dis/set *e ore allowing creation o that dis/set
#olling upgrade support in SunCluster was a ma4or actor in ma/ing this change. SunCluster will no longer support rolling upgrade. Inter aces
5hen metarpcopen is called it returns a client handle, C6I!$-. -his contains the inter ace version num*er. A version num*er is included in the over'the'wire structure
,ver'the'wire structures
Code 7low
Calls are very similar 8 wal/ing through one will give great insight into how almost all are structured and operate
Copyright 2006 Sun Microsystems, Inc. All rights reserved.
Change state o local replica 2clnt9createset, clnt9adddrvs< =et in ormation 2clnt9devin o, clnt9drvused< Control 2clnt9loc/9set, clnt9unloc/9set<
clnt#addhosts
int clnt9addhosts2 char :hostname, mdsetname9t :sp, int node9c, char ::node9v, md9error9t :ep < > C6I!$:clntp? mdrpc9host9args :args? mdrpc9host929args v29args? mdrpc9generic9res res? int version?
0: initiali@e :0 mdclrerror2ep<? 2void< memset2(v29args, 0, si@eo 2v29args<<? 2void< memset2(res, 0, si@eo 2res<<? Copyright 2006 Sun Microsystems, Inc. All rights reserved.
hostname is the name o the node to add the speci ied nodes to node9v is the set o node names *eing added mdrpc9host9args is the version + over the wire structure mdrpc9host929args is the version 2 over the wire structure mdrpc9generic9res is the structure that contains values returned rom this call
-he version 2 args are normally a superset o the version + arguments so encapsulate them
I the hostname is the current node then call the unction directly rather than through rpc
Metarpcopen 3eri ies that the core SM7 services are ena*led -ry to create a version 2 client handle *y de ault. I this ails then attempt to create a version + client handle
-est or con licting parameters Must run as root or anything other than printing set in o $ecessary since the local replica will *e updated
3eri y that all o the nodes speci ied on the command line are uni1ue and valid
=et the ne"t user record num*er *y calling metaioctl with M;9;%9BS!##!J -urn on the S3M dis/set SM7 services i they are not already on Commit the set BS!# record