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/21572/root/usr/lib/python2.4/site-packages/sos/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21572/root/usr/lib/python2.4/site-packages/sos/plugins/gfs2.pyo
mò
Ýl2Wc@sudkZdkZdkZdkZdkZdkZdklZdkZd„Zdei	i
fd„ƒYZdS(N(stimecCsdS(N((tctxtstr((t4/usr/lib/python2.4/site-packages/sos/plugins/gfs2.pytnoerrstgfs2cBs2tZdZd„Zd„Zd„Zd„ZRS(s$Information on GFS2 Filesystems
    cCs#|ididƒotSntS(Ntpolicys
gfs2-utils(tselftcInfot	pkgByNametTruetFalse(R((Rtcheckenabled scCsãg}g}xÐ|D]È}	d}ti}d}|i
d|	dƒ\}}
}xˆ|
idƒD]w}
|
idƒoa|
iƒ}|d7}t|didƒƒ}||jo
|}n||jo
|}qÕq^q^Wd}|djo|d	}n|itd
|	dƒd|	dƒ|id
t|	dƒdt|ƒƒ||jo#|i|dt|ƒdƒnM|i|dt|ƒdt|ƒdƒ|itd|	ddƒƒg}d}ti}qW|S(Nisgfs2_tool journals %ss
tjournaliitMBs journaltssFilesystem is
 on devices mounted at s has s of sMB
sMB - sMB each
s	Warning: s" journals are not uniformly sized
(tjournalstformattedOutputtgfs2FileSystemst
fileSystemtjournalCounttsystmaxinttjSizeMintjSizeMaxRtcallExtProgWithOutputtreturn_codetcommand_outtrun_timetsplitRt
startswitht
journalFieldstinttrstriptjSizetjStringtappendR(RRR!R"RRRRRRRRRRR((RtgetJournalData%s>	 




')
#-
cCsg}|idƒ\}}
}x5|
idƒD]$}|o|i|iƒƒq.q.W|i	dƒxM|D]E}|i	d|dƒ|i	d|dƒ|i	d|dƒqjWt
iƒ}
|i
d|
ƒ|i
d|
ƒx—|D]}|id	|dƒ\}}}|id
ƒ}d|dj}|
d
|didƒidƒd}|id|d|ddƒ|pû|
d|didƒidƒidƒd}|
d|didƒidƒidƒdd}|
d|didƒidƒidƒdd}|id|d|dƒ|id|d|ddƒ|id|d|ddƒqèqèW|i
d|
ƒ|i
d|
ƒ|i|ƒ}y_t
iddƒ}	x|D]}|	i|ƒqÈW|	iƒ|id|	idƒ|	i ƒWnnXdS( Nsmount -l -t gfs2s
sgfs2_edit -p master isgfs2_edit -p rgs sgfs2_edit -p sb smkdir smount -t debugfs none sgfs2_tool sb %s protot=tlock_nolockis/gfs2/it[t]s/glocksscat Rs.glockss/dlm/t:t_lockst_waiterstdlmsumount srm -rf tmodetwscat %stjournal_data(!RRRRRtruntimeRRR#tcollectExtOutputttempfiletmkdtemptdebugfsPathtcallExtProgtstatustoutputtprotoFieldstisNoLocktstript
glockFilePathtcollectOutputNowtdlmFilePathtdlmLockFilePathtdlmWaiterFilePathR$tjournalDatatNamedTemporaryFiletjournalFiletlinetwritetflushtnametclose(RR6RR?R=RR@R7R>RBR4RR9RRCR0R;R8((RtsetupLsT
 ( 155 (
c	Cst|idƒ\}}}|}t|iƒdidƒdƒdjo|idƒnt|iƒdidƒdƒdjo;t|iƒdidƒdƒdjo|id	ƒn|i	d
i
dƒo|idƒn|id
ƒ\}}}xŒ|D]„}|idƒdjo)|iƒ}|id|ddƒn|idƒdjo)|iƒ}|id|ddƒqqWtiidƒp|idƒdSny#titdƒtidƒ}Wn'tij
o|idƒdSnX|iƒ}t|idƒƒo|idƒnt|idƒƒo|idƒn|iƒ|iƒdS(Nscat /etc/redhat-releaseit.iisGFS2 is not supported on RHEL 4iis GFS2 requires RHEL 5.3 or higherRs	kmod-gfs2s\The tech preview kmod-gfs2 is installed. GFS2 is not supported with the tech preview module.smount -l -t gfs2R&iÿÿÿÿsGFS2 filesystems sK is mounted lock_nolock. Local locking is not supported for production use.tmpathsIt appears that + sJ may not be on a clustered logical volume. GFS2 is only supported on CLVM.s/etc/cluster/cluster.confs!/etc/cluster/cluster.conf missings0/etc/cluster/cluster.conf contains malformed XMLs;/cluster/clusternodes/clusternode[not(fence/method/device)]sOOne or more nodes have no fence agent configured. Fencing is required for GFS2.s{/cluster/clusternodes/clusternode[/cluster/fencedevices/fencedevice[@agent='fence_manual']/@name=fence/method/device/@name]sfOne or more nodes have manual fencing configured. GFS2 requires a supported power or IO fencing agent.(RRRRR0t
redhatReleaseRRtaddDiagnoseRRRtfindtfileSystemInQuestiontostpathtexiststlibxml2tregisterErrorHandlerRtNonet	parseFiletxmltparserErrortxpathNewContexttxpathContexttlent	xpathEvaltxpathFreeContexttfreeDoc(	RRVRNRRYRKRRR0((Rtdiagnose…sB*T!

	
(t__name__t
__module__t__doc__RR$RHR^(((RRs
		'	9(Rtsos.plugintoolstsosROtcommandsttimeRRR2Rtplugintoolst
PluginBaseR(	RdR2RRRRRcRReRO((Rt?s						
		

Anon7 - 2021