%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/lvm2.cpython-312.pyc

�

i��d��4�ddlmZmZmZmZGd�dee�Zy)�)�Plugin�IndependentPlugin�SoSPredicate�	PluginOptc�R�eZdZdZdZdZeddd��eddd	��gZd
d
�Zd�Z	y)�Lvm2zLogical Volume Manager 2�lvm2)�storage�lvmdumpFzcollect an lvmdump tarball)�default�desc�
lvmdump-amzAattempt to collect lvmdump with advanced options and raw metadatac��|jdd��}d}d}|rd}|||fz}|j||j���y)	z|Collects an lvmdump in standard format with optional metadata
           archives for each physical volume present.
        rF)�name�makezlvmdump %s -d '%s'�z-a -m)�chrootN)�get_cmd_output_path�add_cmd_output�tmp_in_sysroot)�self�metadata�lvmdump_path�lvmdump_cmd�lvmdump_opts�cmds      �9/usr/lib/python3/dist-packages/sos/report/plugins/lvm2.py�
do_lvmdumpzLvm2.do_lvmdumpsV���/�/�Y�U�/�K��*�����"�L��\�<�8�8�����C��(;�(;�(=��>�c�@�ddd�}tt||���rd}nd}|dz}|jd|zd	d	�
�d}|dzd
z}d}|dzdz}d}|jd|�d|��d��|jd|�d|��d��|jd|�d|��d��|jd|zd|zg�|jd�|jd�|j	d�r|j�y|j	d�r|jd� �yy)!Nzvgdisplay -hz--nolocking)r�output)�cmd_outputsz3--config="global{metadata_read_only=1}" --nolockingz6--config="global{locking_type=0 metadata_read_only=1}"z
 --foreignzvgdisplay -vv %s�	vgdisplay)�root_symlink�tagsz6pv_mda_free,pv_mda_size,pv_mda_count,pv_mda_used_count�,�pe_startz6vg_mda_count,vg_mda_free,vg_mda_size,vg_mda_used_countzvg_tags,systemidzElv_tags,devices,lv_kernel_read_ahead,lv_read_ahead,stripes,stripesizezlvs -a -o +� �lvs_headings)r%zpvs -a -v -o +�pvs_headingszvgs -v -o +�vgs_headingszpvscan -v %szvgscan -vvv %sz/etc/lvmz/run/lvmrrT)r)�boolrr�
add_copy_spec�
get_optionr)r�nolock�lvm_opts�lvm_opts_foreign�pvs_cols�vgs_cols�lvs_colss       r�setupz
Lvm2.setup*sW��(�=�A����T�v�6�7�L�H�O�H�#�l�2������!1�1�$�;�	�	
�
L���c�>�J�.��K���c�>�$6�6��)�����(�<L�M�!/�	�	1����%-�/?�@��	�	!�	
���(�<L�M�!/�	�	1�����X�%��x�'�
�	�
	
���:�&����:�&��?�?�9�%��O�O��
�_�_�\�
*��O�O�T�O�*�+rN)F)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr�option_listrr5�rrrr
sB��+�J��K��H�	�)�U�1M�N��,��'�	)��K�
?�3+rrN)�sos.report.pluginsrrrrrr=rr�<module>r?s ��+�+�P+�6�$�P+r

Zerion Mini Shell 1.0