https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/lustre.cpython-310.pyc
o

-�_g�
�@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�RedHatPluginc@s,eZdZdZdZdZdZdd�Zdd�Zd	S)
�LustrezLustre filesystem�lustre)�storage�network�cluster)rz
lustre-clientcCs&|jdd�|���d|��dd�dS)zZUse lctl get_param to collect a selection of parameters into a
            file.

        zlctl get_param � zparams-F)�suggest_filename�stderrN)�add_cmd_output�join)�self�name�
param_list�r�;/usr/lib/python3/dist-packages/sos/report/plugins/lustre.py�
get_paramss
�zLustre.get_paramscs�|�gd��|�d�d}d��fdd�|��D�}|�d|�|�dgd	��|�d
dg�|�dgd
��|�ddg�|�ddg�|�dddg�|�d�|�ddg�|�d�rt|�d�|�ddg�|�ddg�dSdS)N)zlctl debug_kernelzlctl device_listzlctl list_nidszlctl route_listzlnetctl net show -v 4zlctl list_param -R *�outputzn.*@.*|.*dump_page_cache|peers|.*quota.*|osd-.*|.*osc.*|mgs.*|.*mgc_irstate|ldlm.*state|.*job_stats|.*exports.*csg|]
}t��|�s|�qSr)�re�match)�.0�item��excluderr�
<listcomp>+s

�z Lustre.setup.<locals>.<listcomp>�all�basic)�version�health_check�debugzlfs dfz	lfs df -i�
osc_client)zosc.*.max_dirty_mbzosc.*.max_pages_per_rpczosc.*.checksumszosc.*.max_rpcs_in_flight�osdz3osd-*.*.{mntdev,files*,kbytes*,blocksize,brw_stats}�quotaz)osd-*.*.quota_slave.{info,limit_*,acct_*}�mgszmgs.MGS.ir_timeoutzmgs.MGS.live.*z*/mb_groupsz/sys/fs/ldiskfsz/proc/fs/ldiskfs�all_logsz/tmp/lustre-log.*z	job-statsz
*.*.job_stats�peers)r�exec_cmd�
splitlinesr�add_forbidden_path�
add_copy_spec�
get_option)rr�paramsrrr�setups<	���
�

�zLustre.setupN)	�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packagesrr-rrrrr
s	r)r�sos.report.pluginsrrrrrrr�<module>s

https://t.me/RX1948 - 2025