403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/sos/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/sos/plugins/cluster.pyo
Ñò
˜ ¦Jc
@stddkZddkZddkZddkZddkZddkZddkZdeii	fd„ƒYZ
dS(iÿÿÿÿNtclustercBsžeZdZdddefdddefgZd„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ª|iƒiƒ}|djo4dddddddd	d
ddd
dg
|_n6|djo(dddddddddg	|_nddg|_tiii|ƒS(Nitccstcmanscman-kerneltmagmas
magma-pluginst	rgmanagertfencetdlms
dlm-kerneltgulmtGFSs
GFS-kernelslvm2-clusteritlucitriccissystem-config-clusters	gfs-utilstgnbdskmod-gfss	kmod-gnbds/etc/cluster/cluster.confs
/proc/cluster(tpolicytrhelVersiontpackagestfilestsostplugintoolst
PluginBasetcheckenabled(tselftrhelver((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyRs

cCst|iddƒƒdjS(Ns^\S+\s+\S+\s+gfs\s+.*$s	/etc/mtabi(tlentdoRegexFindAll(R((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pythas_gfs(scCsC|iƒiƒ}g}g}g}|djo”|idddddddgƒ|idd	gƒ|iƒo|id
ƒn|iddddgƒ|iƒo|id
d
gƒqWn“|djo…|idddgƒ|id	gƒ|iƒo|id
dgƒn|iddgƒ|iƒo|id
d
gƒqWnxû|D]ó}d}|iƒid|ƒo
d}ntid|ƒ\}}|djo
d}nt|i	d|dƒƒdjo
d}n|djo|i
d|ƒq^|djo|i
d|ƒq^|djo|i
d|ƒq^q^Wx3|D]+}	|i|	ƒp|i
d|	ƒq\q\W|djoE|id	ƒo|idƒp
|idƒp|i
dƒqÝnx†|D]~}
tid |
ƒ\}}|djo|i
d!|
ƒn|iƒiƒ|iƒi
|
ƒjo|i
d"|
ƒqäqäW|iƒp|i
d#ƒnytid$ƒWn|i
d%ƒdSXtid$ƒ}|iƒ}xE|id&ƒD]4}
tid'|
iƒp|i
d(|
iƒqØqØWxU|id&ƒD]D}
t|i	d)|
id*ƒƒdjo|i
d+|
iƒq q Wt|id,ƒƒo/|iƒo|i
d-ƒq­|i
d.ƒnt|id/ƒƒo|i
d0ƒntid1ƒid2ƒd}
t|id3|
ƒƒo_tid4ƒ\}}|djp(|iƒiƒ|iƒi
d5ƒjo|i
d6ƒqint|id7ƒƒo|i
d8ƒntid9ƒ\}}|p|d:}nd}|id;ƒdi}|djo(||jo|i
d<||fƒntid=ƒ\}}|id>ƒdjo|i
d?ƒn|id@ƒdi}xÕ|i	dAdBƒD]Á}|iƒ}|i|ddCƒ}|o2||iƒjo|i
dD|d|fƒn|i|ddEƒ}y|idFƒd}Wn
qpnX||jo|i
dG|dƒqpqpW|iƒdS(HNiRRRs
magma-pluginssperl-Net-TelnetRRR	tgfstccsdtfencedtclvmditgfs2it^is/sbin/modinfo -F vermagic is^%s\s+s
/proc/modulesis%required kernel module is missing: %ss7required module is not available for current kernel: %ss/required module is available but not loaded: %ssrequired package is missing: %st4s
dlm-kernelR
s8required packages are missing: (dlm, dlm-kernel) || gulms$/sbin/service %s status &> /dev/nullsservice %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 missings'/cluster/clusternodes/clusternode/@namesM^[a-zA-Z]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*$s*node name (%s) contains invalid characterss^.*\W+%ss
/etc/hostss$node %s is not defined in /etc/hostss;/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)]/nfsexports8one 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)s0/usr/sbin/rg_test test /etc/cluster/cluster.confsError: s5configuration errors are present according to rg_tests/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 table(RRtextendRtappendtallPkgsByNameRegextcommandstgetstatusoutputRtfileGreptaddDiagnosetisInstalledtrunlevelDefaulttrunlevelByServicetis_cluster_quoratetoststattlibxml2t	parseFiletxpathNewContextt	xpathEvaltretmatchtcontentt	getoutputtsplittNonetfindtget_gfs_sb_fieldtget_locking_protot
test_fence_id(RRt
pkgs_checkt
mods_checkt
serv_checktmodnametfoundtstatustoutputtpkgtservicetxmltxpathContextthostnametcluster_versiontconf_versiontcluster_nametfst	lockprotot	locktable((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pytdiagnose+sÒ
"







#




0
(

&
5
cCsé|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|id	ƒ|id
ƒ|idƒ|idƒ|id
ƒ|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.confs
/proc/clusterscman_tool statusscman_tool servicesscman_tool -af nodessccs_tool lsnodesopenais-cfgtool -stclustats/sbin/ipvsadm -LRR(tcollectExtOutputtaddCopySpect	getOptiontdo_gfslockdumptdo_lockdump(R((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pytsetupÈs$












cCsÃtidƒ\}}|otS|iƒ}|djo
d}n%|djp
|djo
d}nti|tiƒ}x?|i|ƒD].}tid|ƒ|idd	d
|ƒqWdS(Nscman_tool servicesR"s^DLM Lock Space:\s*"([^"]*)".*$t5Servert5Clients^dlm\s+[^\s]+\s+([^\s]+)\s.*$s!echo %s > /proc/cluster/dlm_locksscat /proc/cluster/dlm_lockstroot_symlinksdlm_locks_%s(	R+R,tFalsetget_redhat_releaseR9tcompilet	MULTILINEtfindalltcollectOutputNow(RRHRIRtregextregt	lockspace((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyR[Ýs


cCsdS(Ntlock_dlmt	lock_gulm((R((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyRAïscCsEx>|iddƒD]*}|id|dd|i|ƒƒqWdS(Ns^\S+\s+([^\s]+)\s+gfs\s+.*$s/proc/mountss/sbin/gfs_tool lockdump %sR_t
gfs_lockdump_(RRWt
mangleCommand(Rtmntpoint((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyRZôscCsdS(N((R((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pytdo_rgmanager_btøscCs1x*tidƒD]}|i|ddƒqWdS(Ns/etc/cluster/cluster.conf*s.(\s*\<fencedevice\s*.*\s*passwd\s*=\s*)\S+(\")s\1%ss"***"s\1"***"(tglobt
doRegexSub(Rtcluster_conf((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pytpostprocüscCs7tidƒ}y|ddjotSWnnXtS(Ns-cman_tool status | grep '^Membership state: 'isCluster-Member(R+R<tTrueR`(RRI((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyR2s	cCsZxStid|ƒidƒD]5}tid||ƒo|idƒdiƒSqWtS(Ns/sbin/gfs_tool sb %s alls
s	^\W*%s = t=i(R+R<R=R9R:tstripR`(Rtdevicetfieldtline((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyR@
s
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(R+R<R=R9R:R.(RRxta((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyRBs
)(t__name__t
__module__t__doc__R`t
optionListRRRUR\R[RARZRnRrR2R@RB(((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyRs	
											(tsos.plugintoolsRR+R3R9ttimeR5RoRRR(((s7/usr/lib/python2.6/site-packages/sos/plugins/cluster.pyt<module>s$

Youez - 2016 - github.com/yon3zu
LinuXploit