KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/root/usr/lib/python2.4/site-packages/sos/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/lib/python2.4/site-packages/sos/plugins/cluster.pyc
mò
Ýl2Wc@s_dkZdkZdkZdkZdkZdkZd„Zdeii	fd„ƒYZ
dS(NcCsdS(N((tctxtstr((t7/usr/lib/python2.4/site-packages/sos/plugins/cluster.pytnoerrstclustercBsžtZdZdddefdddefgZd„Zd„Zd„Zd	„Zd
„Z	d„Z
d„Zd
„Zd„Z
d„Zd„Zd„ZRS(s.cluster suite and GFS related information
    tgfslockdumpsgather output of gfs lockdumpstslowtlockdumpsgather dlm lockdumpsc	CsˆxNddddddddd	g	D]+}|id
i|ƒdjotSq"q"Wx0dgD]%}yti|ƒWnq[XtSq[Wt	S(Nt	rgmanagertlucitriccissystem-config-clusters	gfs-utilstgnbdskmod-gfss	kmod-gnbdslvm2-clustertpolicys/etc/cluster/cluster.conf(
tpkgtselftcInfot	pkgByNametNonetTruetfnametoststattFalse(RR
R((Rtcheckenabled s"
cCs\tddƒ}x<|iƒD].}|idƒ}|ddjotSqqW|iƒtS(Ns/proc/mountstrt itgfs(	topentfpt	readlinestlinetsplittmntlineRtcloseR(RRR R((Rthas_gfs3s

cCsBy|idiƒ}Wn
d}nX|djo
g}|iƒo|idƒnx†|D]~}|idi	|ƒpa|i
d|ƒxMdddgD]8}|idi	|ƒdjo|i
d|ƒqqWq_q_Wdg}|iƒo|id	ƒnxF|D]>}t|id
|dƒƒdjo|i
d
|ƒqqWddg}|iƒo|id	dgƒnx‚|D]z}
tid|
ƒ\}}|o|i
d|
ƒn|idiƒ|idi|
ƒjo|i
d|
ƒqˆqˆW|iƒp|i
dƒnytidƒWn|i
dƒdSnXtitdƒytidƒ}	Wn'ti!j
o|i
dƒdSnX|	i"ƒ}t|i$dƒƒo/|iƒo|i
dƒqî|i
dƒnt|i$dƒƒo|i
dƒnti%dƒi&dƒd}t|i$d|ƒƒoatidƒ\}}|djp*|idiƒ|ididƒjo|i
d ƒq¬nt|i$d!ƒƒoŠx‡|i$d"ƒD]r}|i$d#ƒ}t|ƒdjo=|di*}t|i$d$|ƒƒo|i
d%ƒPqDqÒ|i
d%ƒqÒWntid&ƒ\}}|p|d'}nd}|i$d(ƒdi*}|djo(||jo|i
d)||fƒn|i$d*ƒdi*}
xÕ|id+d,ƒD]Á}|i&ƒ}|i0|dd-ƒ}|o2||i2ƒjo|i
d.|d|fƒn|i0|dd/ƒ}y|i&d0ƒd}Wn
qðnX||
jo|i
d1|dƒqðqðW|i4ƒ|djoZti%d2ƒ}|td3ƒ}||i6dƒ }t7|ƒd4jo|i
d5ƒq&n|i8ƒ|	i9ƒndS(6NRiskmod-gfssrequired package is missing: %stcmansperl-Net-TelnetRtdlmRs^%s s
/proc/modulesis!required module is not loaded: %stclvmds/sbin/service %s statussservice %s is not runnings-service %s is not started in default runlevelscluster node is not quorates/etc/cluster/cluster.confs$/etc/cluster/cluster.conf is missings0/etc/cluster/cluster.conf contains malformed XMLs;/cluster/clusternodes/clusternode[not(fence/method/device)]sWone or more nodes have no fencing agent configured: fencing is required for GFS to worksione or more nodes have no fencing agent configured: the cluster infrastructure might not work as intendeds{/cluster/clusternodes/clusternode[/cluster/fencedevices/fencedevice[@agent='fence_manual']/@name=fence/method/device/@name]sYone or more nodes have manual fencing agent configured (data integrity is not guaranteed)s
/bin/uname -nt.s /cluster/clusternodes/clusternode[@name = "%s" and /cluster/fencedevices/fencedevice[@agent="fence_rsa" or @agent="fence_drac"]/@name=fence/method/device/@name]s/sbin/service acpid statustacpidsCacpid is enabled, this may cause problems with your fencing method.s-/cluster/rm/service//fs[not(@fsid)]/nfsexports#/cluster/rm/service//fs[not(@fsid)]s@refs/cluster/rm/resources/fs[@name='%s'][not(@fsid)]s8one or more nfs export do not have a fsid attribute set.s(cman_tool status | grep 'Config version'is/cluster/@config_versionsBcluster.conf and in-memory configuration version differ (%s != %s)s/cluster/@names^[^#][/\w]*\W*[/\w]*\W*gfss
/etc/fstabtsb_lockprotos<gfs mountpoint (%s) is using the wrong locking protocol (%s)tsb_locktablet:s4gfs mountpoint (%s) is using the wrong locking tablesmodinfo -F vermagic gfs2s2.6.18-i€sGFS2 is being used via weak-updates, kmod-gfs2 should be uninstalled and system rebooted to allow for kernel provided gfs2 module to be used.(:RRtrhelVersiontrhelverRt
pkgs_checkR"tappendtpkgnameRtaddDiagnoseR
t
mods_checktmoduletlentfileGrept	checkservtextendtservicetcommandstgetstatusoutputtstatustoutputtrunlevelDefaulttrunlevelByServicetis_cluster_quorateRRtlibxml2tregisterErrorHandlerRt	parseFiletxmltparserErrortxpathNewContexttxpathContextt	xpathEvalt	getoutputRthostnametxmlNodetfsRefAttributetcontentt	fsRefNametcluster_versiontconf_versiontcluster_nametfstget_gfs_sb_fieldt	lockprototget_locking_protot	locktablet
test_fence_idtvermagictfindtinttxpathFreeContexttfreeDoc(RR,RLR2R
RRRNRIR-RBR7RVRHROR:RPRTR1R/RMRJRER;R5((Rtdiagnose<sÄ


!	
#
*


	
7

	



cCsH|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|id	ƒ|id
ƒ|idƒy|idiƒ}Wn
d}nX|d
joE|id
ƒ|idƒ|idƒ|idƒ|idƒn|idƒo|iƒn|idƒo|i	ƒndS(Ns/sbin/fdisk -ls/etc/cluster.confs/etc/cluster.xmls/etc/clusters0/usr/sbin/rg_test test /etc/cluster/cluster.confscman_tool statusscman_tool servicesscman_tool -af nodessccs_tool lsnodesopenais-cfgtool -stclustatRis
group_tool -vsgroup_tool dump fencesgroup_tool dump gfssgroup_tool dumpRR(
RtcollectExtOutputtaddCopySpecRR+R,RtisOptionEnabledtdo_gfslockdumptdo_lockdump(RR,((RtsetupÑs4
















cCs`|idƒ\}}}xAtidtiƒi|ƒD]!}|i
d|dd|ƒq7WdS(Nt
group_tools^dlm\s+[^\s]+\s+([^\s]+)sdlm_tool lockdebug '%s'tsuggest_filenamesdlm_locks_%s(RtcallExtProgWithOutputR:R;ttimetretcompilet	MULTILINEtfindallt	lockspaceR](RR:RkRfR;((RRaôs

cCsdSdS(Ntlock_dlmt	lock_gulm((R((RRSúscCs„tddƒ}xd|iƒD]V}|idƒ}|ddjo0|id|ddd	|i|dƒƒqqW|i	ƒdS(
Ns/proc/mountsRRiRs/sbin/gfs_tool lockdump %sitsymlinkt
gfs_lockdump_(
RRRRRR RR]t
mangleCommandR!(RRRR ((RR`ÿs
4cCsdS(N((R((Rtdo_rgmgr_btscCs5x.tidƒD]}|i|dddƒqWdS(Ns/etc/cluster/cluster.conf*s.(\s*\<fencedevice\s*.*\s*passwd\s*=\s*)\S+(\")s\1%ss"***"(tglobtcluster_confRt
doRegexSub(RRs((RtpostprocscCsMtidƒ}y0|idƒdiƒdjotSntSWnnXdS(Ns-cman_tool status | grep '^Membership state: 'R*isCluster-Member(R8RGR;RtstripRRR(RR;((RR>s cCs]xVtid|ƒidƒD]8}tid||ƒo|idƒdiƒSqqWt	S(Ns/sbin/gfs_tool sb %s alls
s	^\W*%s = t=i(
R8RGtdeviceRRRgtmatchtfieldRvR(RRxRzR((RRQs
cCs©x¢tidƒidƒdD]„}x?|iƒD]1}tid|ƒo|id|fƒq0q0W|iƒddjo%|id|iƒd|fƒqqWdS(	Ns#/sbin/group_tool ls | grep -v '^\['s
it00000000sInvalid fence id: %siÿÿÿÿtnones+Possible incorrect state: %s, for group: %s(	R8RGRRtaRgRyRR0(RR}R((RRU"s
)(t__name__t
__module__t__doc__Rt
optionListRR"R[RbRaRSR`RqRuR>RQRU(((RRs$				•	#							(tsos.plugintoolstsosR8RRgR?RrRtplugintoolst
PluginBaseR(R8RR?RrRgRƒRR((Rt?s		

Anon7 - 2021