Professional Documents
Culture Documents
,Ltd
518Room Technical Building, East Software Park,
No.90 Wensan Road, HangZhou, Zhejiang, P.R.China
TEL:(86571)87362185 EMAIL:liulianga@digitalchina.com
- 1 -
DCL
www.Digitalchina.com
DOCUMENT ID
DC-ENG-20050111A0
DISTRIBUTE TO
Document Information
Project Manager:
Author: LiuLiang
Reviewed by:
Version History
Ver.No
Ver. Date
Revised by
Description
th
Liu Liang
1.1
th
May 23 , 2005
Liu Liang
1.2
Liu Liang
1.0
Jan 11 , 2004
- 2 -
Table of Contents
................................................................. - 4
.............................................................. - 5
........................................................... - 5
......................................................... - 5
.................................................... - 5
....................................................... - 5
....................................................... - 6
...................................................... - 6
SunPlex Manager (GUI) ......................................... - 7
...................................... - 10
Cluster (CLI) ............................................... - 11
............................................................. - 14
Sun Cluster ......................................... - 16
................................................................ - 21
- 3 -
cluster SUN
<>
explorer </opt/SUNWexplo/output/*.tar.gz>
SUN
6. SunCluster
Sun cluster
http://www.sun.com/training/catalog/cluster/index.xml
1.
2.
3.
4.
5.
7. SUN cluster
http://www.sun.com/software/solaris/howtoguides/twonodecluster.jsp
- 4 -
Sun Fire
Brocade 200E Sun Cluster 3.1 Update 4
SUN
- 5 -
GB
ISO
ITU-T
IEEE
EIA
IEC
- 6 -
SunPlex Manager
2. resource group
Resource Groups Actions Menu->
- 7 -
- 8 -
- 9 -
1. diskgroup .
# vxdg list< VxVM vx >
# metaset -s DisksetName< SVM meta ,>
# df k
# mount
# more /etc/vfstab
# vxdg fC import DiskGroup <>
# vxvol [f] [g DiskGroup] start startall|VolumeName
< volume >
# vxrecover g DiskGroup sb <>
2. volume
# vxprint ht
# vxdisk list
# vxtask list
# metastat
# metastat -s DisksetName
3. SVM State Database
# metadb -s DisksetName
4. metaset ownership
# metaset s DisksetName t
5. metaset ownership
# metaset s DisksetName r
- 10 -
Cluster (CLI)
1. cluster .
# scstat
# scstat -p
# scstat -pv
:
Resource Groups Resource Groups Cluster
# scstat -q
6. cluster ipmp
# ifconfig a
or
# scstat
7. Resource Group Manager debug
# /usr/cluster/lib/sc/rgmd_debug printbuf
8. cluster Resource,Resource group,Resource Type
# scrgadm -p
9. cluster
# scconf -p
- 11 -
# scconf -pv
10. Resouce group
# scstat -g
Switch a failover resource group to another node:
# scswitch z -g resrouce-group-name h nodename
# scswitch -S -g resrouce-group-name h from_nodename
# scstat -g
11.
# tail -f /var/adm/messages
12. Resource Group
# scswitch -R -g resrouce-group-name -h nodename
13. Device Group
# scswitch -z -D disk-device-group -h nodename
14. Device Group
# scstat -D
15. resource group (online)
# scswitch -Z -g resrouce-group-name
# scstat -g
16. ( resource group offline)
# scswitch -F -g resrouce-group-name
# scstat -g
17.
# scconf -c -q node=nodename,maintstate
18. Disable resouce, resrouce group unmanaged
# scswitch -n -j resource-name
# scswitch -F -g resource-group-name
# scswitch -u -g resource-group-name
# scrgadm -pv -g resource-group-name
19. NAFO(public )
# pnmstat -lm
20.
# scstat -W
path online :
- 12 -
path waiting:
path faulted:
21. cluster
node1# init 0
<node1>ok boot -x
node1# date HHMMSS
node1# rdate node2name
node1# reboot
22. cluster.
Cluster solaris
23. cluster .
ok> boot -x
24.
# scshutdown -y -g0(: cluster ok .)
or
# init 0<>
25. sun cluseter
oracle oracle
cluster cluster
oracle server lsnrctl patch,
,:
disable monitor
a) scswitch -g resource-group-name -n -M -j ora_server
b) scswitch -g resource-group-name -n -M -j ora_listener
c) shutdown database, and backuppatchrecover
d) scswitch -g resource-group-name -e -M -j ora_server
e) scswitch -g resource-group-name -e -M -j ora_listener
26.
IPMP < SunCluster 3.1>in.mpathd always refers to the
routing-table (IRE-cache) to distinguish which test partner(s) are going
to be used. Test partners are required for deciding if the interface is
working properly. partner(s) IPMP ()
IPMP group failed Cluster IP<Virtual IP>
ping telnet server IP
27.
- 13 -
1.
UPS down
oracle
a) resource group
# scstat -g
b) diskset
# metaset -s ora-set
c) diskset
# scswitch -z -D ora-set -h node1
or:
# metaset -s ora-set -t
d)
# mount /oradata
e)
# fsck -y /dev/md/ora-set/rdsk/d100
f)
# mount /oradata
g) IP
# ifconfig ce0:8 plumb up 10.4.50.38/24
h)
i) IP umount
# ifconfig ce0:8 unplumb
# umount /oradata
j)
# scswitch -Z -g ora-rg
2.
1 2
2 cpu cluster
a) 1
i.
cpu cpu
cpu
cpu
down cpu
ii.
cpu cpu cpu
OK disable
cpu cluster
b) SunCluster3.0/3.1
- 14 -
- 15 -
Sun Cluster
1. clustered-service software stack.
troubleshooting
2.
a) Failover()APPIPDATA
10s,
b) Scalable()
7. : SPARCstationTM
- 16 -
8. Sun Sun
TCP/IP ttya
9. quorum quorum
quorum
2/3 50
quorum
quorum
Sun Cluster quorum
a) CMMCluster Membership Monitor
quorum Cluster CMM
Cluster quorum
- 17 -
quorum device
quorum device
quorum device
quorum
quorum Cluster
Cluster
quorum Cluster quorum
quorum device
quorum device quorum device
quorum device 2:1 quorum
ClusterCluster
Cluster
Cluster Cluster
Cluster
quorum device quorum
Cluster quorum
Cluster
quorum device Cluster quorum device
HA
- 18 -
Sun Cluster IP
IP Cluster
IP IP
IP
Data Service
Data Service
Data Service Data Service
Data Service
Sun Data Service
HA IP
IP IP
Data Service Data
Service Data Service
Data Service HA Data Service
Data Service
14. (DID)
Sun Cluster (DID)
CD-ROM
DID Solaris ID
c0t0d0
1
c1t2d0 2 c3t2d0DID
d10
15.
/etc/vfstab
- 19 -
/etc/opt/SUNWCluster/conf/hanfs/vfstab.logichost
vfstab /etc/vfstab
dg import
16.
HA Data Service
IP
Data Service
Sun Cluster
Data Service
phys-hahosts1 hahost1 phys-hahost2
hahost1 IP phys-hahost2 Data Service
phys-hahost2 Cluster hahost1
4-5 hahost1
Cluster
phys-hahost2
phys-hahost2
17.
19.
- 20 -
Data
Service Data Service
Data Service
Sun Data
Service
a) SPU
b)
IP
c)
20.
200DCL
- 21 -