??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@`s¸ddlmZmZmZeZidd6dgd6dd6ZdZd Zd Z dd l Z dd l m Z d „Z dd„Zd„Zd„Zd„Zedkr´eƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bys --- author: - Alain Dejoux (@adejoux) module: aix_lvol short_description: Configure AIX LVM logical volumes description: - This module creates, removes or resizes AIX logical volumes. Inspired by lvol module. version_added: "2.4" options: vg: description: - The volume group this logical volume is part of. type: str required: true lv: description: - The name of the logical volume. type: str required: true lv_type: description: - The type of the logical volume. type: str default: jfs2 size: description: - The size of the logical volume with one of the [MGT] units. type: str copies: description: - The number of copies of the logical volume. - Maximum copies are 3. type: int default: 1 policy: description: - Sets the interphysical volume allocation policy. - C(maximum) allocates logical partitions across the maximum number of physical volumes. - C(minimum) allocates logical partitions across the minimum number of physical volumes. type: str choices: [ maximum, minimum ] default: maximum state: description: - Control if the logical volume exists. If C(present) and the volume does not already exist then the C(size) option is required. type: str choices: [ absent, present ] default: present opts: description: - Free-form options to be passed to the mklv command. type: str pvs: description: - A list of physical volumes e.g. C(hdisk1,hdisk2). type: list sy - name: Create a logical volume of 512M aix_lvol: vg: testvg lv: testlv size: 512M - name: Create a logical volume of 512M with disks hdisk1 and hdisk2 aix_lvol: vg: testvg lv: test2lv size: 512M pvs: [ hdisk1, hdisk2 ] - name: Create a logical volume of 512M mirrored aix_lvol: vg: testvg lv: test3lv size: 512M copies: 2 - name: Create a logical volume of 1G with a minimum placement policy aix_lvol: vg: rootvg lv: test4lv size: 1G policy: minimum - name: Create a logical volume with special options like mirror pool aix_lvol: vg: testvg lv: testlv size: 512M opts: -p copy1=poolA -p copy2=poolB - name: Extend the logical volume to 1200M aix_lvol: vg: testvg lv: test4lv size: 1200M - name: Remove the logical volume aix_lvol: vg: testvg lv: testlv state: absent sŒ msg: type: str description: A friendly message describing the task result. returned: always sample: Logical volume testlv created. N(t AnsibleModulecC`sl|djƒ}dddg}yd|j|ƒ}Wn!tk rY|jddƒnXt|d ƒ|S(NiÿÿÿÿtMtGtTitmsgsNo valid size unit specified.(tuppertindext ValueErrort fail_jsontint(tmoduletsizetunittunitst multiplier((sC/usr/lib/python2.7/site-packages/ansible/modules/system/aix_lvol.pyt convert_sizeˆs icC`s=t|tt|ƒ|ƒƒ}||kr9||7}n|S(N(Rtroundtfloat(txtbasetnew_size((sC/usr/lib/python2.7/site-packages/ansible/modules/system/aix_lvol.pyt round_ppsize“s   c C`s8d}xû|jƒD]í}tjd|ƒ}|dk r[|jdƒ}|jdƒ}qntjd|ƒ}|dk r”t|jdƒƒ}qntjd|ƒ}|dk rÍt|jdƒƒ}qntjd|ƒ}|dk r|jdƒ}qqqW|sdS||}i|d6|d6|d 6|d 6S( Ns/LOGICAL VOLUME:\s+(\w+)\s+VOLUME GROUP:\s+(\w+)iisLPs:\s+(\d+).*PPssPP SIZE:\s+(\d+)sINTER-POLICY:\s+(\w+)tnametvgRtpolicy(tNonet splitlinestretsearchtgroupR( tdataRtlinetmatchRtlpstpp_sizeR R((sC/usr/lib/python2.7/site-packages/ansible/modules/system/aix_lvol.pytparse_lvšs.      cC`sxò|jƒD]ä}tjd|ƒ}|dk rF|jdƒ}q ntjd|ƒ}|dk rt|jdƒƒ}q ntjd|ƒ}|dk r¸t|jdƒƒ}q ntjd|ƒ}|dk r t|jdƒƒ}q q q Wi|d6|d6|d6|d 6S( NsVOLUME GROUP:\s+(\w+)isTOTAL PP.*\((\d+)sPP SIZE:\s+(\d+)sFREE PP.*\((\d+)RRtfreeR*(R"R#R$R!R%R(R&R'R(RRR*R,((sC/usr/lib/python2.7/site-packages/ansible/modules/system/aix_lvol.pytparse_vg¸s$     cC`sÊtdtdtdddtƒdtdddtƒdtdddd ƒd tddƒd tdddd ƒd tddddƒdtdddddddgƒdtdddddddgƒdtdddtƒƒƒ dtƒ}|jd}|jd}|jd}|jd }|jd }|jd }|jd}|jd}|jd} dj| ƒ} |dkrƒd} nd} |jr›d} nd } |jddtƒ} |jddtƒ}|jd | |fƒ\}}}|d!krK|dkr"|j d"t d#d$|ƒqK|j d#d$|d%|d&|d'|ƒnt |ƒ}|dk r…tt||ƒd(|d)ƒ}n|jd ||fƒ\}}}|d!krß|dkrß|j d"t d#d*|ƒqßnt }t|ƒ}|dkr&| r&|dkr&|j d#d+ƒq&n|dkr|dkrÆ||d,krs|j d#d-|d.|d,fƒn|jd/dtƒ}d0| ||||| |||| f }|j|ƒ\}}}|d!krñ|j d"td#d1|ƒq|j d#d2|d%|d&|d'|ƒqÆn©|dkr¹|jd3dtƒ}|jd4| ||d.fƒ\}}}|d!kr|j d"td#d5|ƒqÆ|j d#d6|d%|d&|d'|ƒn |d|krb|jd7dtƒ}|jd8| || |d.fƒ\}}}|d!kr9|j d"td#d9||fƒqb|j d#d:|d%|d&|d'|ƒn||dkr“|j d#d;||dfƒn|s¶|j d"t d#d<|ƒnt|ƒ|d kru|jd=dtƒ}d>| ||||d f}|j|ƒ\}}}|d!krF|j d"td#d?||fƒqÆ|j d#d@||fd%|d&|d'|ƒnQ||d kr¦|j d#dA||d fƒn |j d"t d#dB||fƒdS(CNt argument_specRttypetstrtrequiredtlvtlv_typetdefaulttjfs2RtoptsttcopiesRitstatetpresenttchoicestabsentR tmaximumtminimumtpvstlisttsupports_check_modet Rtmsecho tlsvgtlslvs%s %sitchangedR sVolume group %s does not exist.trctoutterrRR*s!Logical Volume %s does not exist.sNo size given.R,s5Not enough free space in volume group %s: %s MB free.Rtmklvs+%s %s -t %s -y %s -c %s -e %s %s %s %sM %ssLogical volume %s created.s"Creating logical volume %s failed.trmlvs %s %s -f %ssLogical volume %s deleted.s#Failed to remove logical volume %s.tchlvs%s %s -e %s %ss%Logical volume %s policy changed: %s.s*Failed to change logical volume %s policy.s2Logical volume %s already exist in volume group %ss Logical volume %s already exist.textendlvs %s %s %s %sMs(Logical volume %s size extended to %sMB.sUnable to resize %s to %sMB.s@No shrinking of Logical Volume %s permitted. Current size: %s MBs'Logical volume %s size is already %sMB.(RtdicttTrueR@tparamstjoint check_modet get_bin_patht run_commandt exit_jsontFalseRR-R!RRR+R(RRR2R3RR6R8R R9R?tpv_listt lv_policyttest_opttlsvg_cmdtlslv_cmdRGtvg_infoRItthis_vgtlv_sizetlv_infoRFtthis_lvtmklv_cmdtcmdRHtrmlv_cmdtchlv_cmdt extendlv_cmd((sC/usr/lib/python2.7/site-packages/ansible/modules/system/aix_lvol.pytmainÓs¨!!              "  )  "       %( , ) ), #)! #/!t__main__(t __future__RRRR/t __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLEStRETURNR#tansible.module_utils.basicRRRR+R-Rft__name__(((sC/usr/lib/python2.7/site-packages/ansible/modules/system/aix_lvol.pyts    <0