??????????????
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 @`sddlmZmZmZeZidd6dgd6dd6ZdZd Zdd l Z dd l m Z e d d dd dd dd Z dZdZdZdZdZedkrend S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bys --- author: - Jeroen Hoekx (@jhoekx) - Alexander Bulimov (@abulimov) module: lvol short_description: Configure LVM logical volumes description: - This module creates, removes or resizes logical volumes. version_added: "1.1" options: vg: description: - The volume group this logical volume is part of. lv: description: - The name of the logical volume. size: description: - The size of the logical volume, according to lvcreate(8) --size, by default in megabytes or optionally with one of [bBsSkKmMgGtTpPeE] units; or according to lvcreate(8) --extents as a percentage of [VG|PVS|FREE]; Float values must begin with a digit. Resizing using percentage values was not supported prior to 2.1. 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. choices: [ absent, present ] default: present active: description: - Whether the volume is activate and visible to the host. type: bool default: 'yes' version_added: "2.2" force: description: - Shrink or remove operations of volumes requires this switch. Ensures that that filesystems get never corrupted/destroyed by mistake. type: bool default: 'no' version_added: "1.5" opts: description: - Free-form options to be passed to the lvcreate command. version_added: "2.0" snapshot: description: - The name of the snapshot volume version_added: "2.1" pvs: description: - Comma separated list of physical volumes (e.g. /dev/sda,/dev/sdb). version_added: "2.2" thinpool: description: - The thin pool volume name. When you want to create a thin provisioned volume, specify a thin pool volume name. version_added: "2.5" shrink: description: - Shrink if current size is higher than size requested. type: bool default: 'yes' version_added: "2.2" resizefs: description: - Resize the underlying filesystem together with the logical volume. type: bool default: 'no' version_added: "2.5" notes: - You must specify lv (when managing the state of logical volumes) or thinpool (when managing a thin provisioned volume). s - name: Create a logical volume of 512m lvol: vg: firefly lv: test size: 512 - name: Create a logical volume of 512m with disks /dev/sda and /dev/sdb lvol: vg: firefly lv: test size: 512 pvs: /dev/sda,/dev/sdb - name: Create cache pool logical volume lvol: vg: firefly lv: lvcache size: 512m opts: --type cache-pool - name: Create a logical volume of 512g. lvol: vg: firefly lv: test size: 512g - name: Create a logical volume the size of all remaining space in the volume group lvol: vg: firefly lv: test size: 100%FREE - name: Create a logical volume with special options lvol: vg: firefly lv: test size: 512g opts: -r 16 - name: Extend the logical volume to 1024m. lvol: vg: firefly lv: test size: 1024 - name: Extend the logical volume to consume all remaining space in the volume group lvol: vg: firefly lv: test size: +100%FREE - name: Extend the logical volume to take all remaining space of the PVs and resize the underlying filesystem lvol: vg: firefly lv: test size: 100%PVS resizefs: true - name: Resize the logical volume to % of VG lvol: vg: firefly lv: test size: 80%VG force: yes - name: Reduce the logical volume to 512m lvol: vg: firefly lv: test size: 512 force: yes - name: Set the logical volume to 512m and do not try to shrink if size is lower than current one lvol: vg: firefly lv: test size: 512 shrink: no - name: Remove the logical volume. lvol: vg: firefly lv: test state: absent force: yes - name: Create a snapshot volume of the test logical volume. lvol: vg: firefly lv: test snapshot: snap1 size: 100m - name: Deactivate a logical volume lvol: vg: firefly lv: test active: false - name: Create a deactivated logical volume lvol: vg: firefly lv: test size: 512g active: false - name: Create a thin pool of 512g lvol: vg: firefly thinpool: testpool size: 512g - name: Create a thin volume of 128g lvol: vg: firefly lv: test thinpool: testpool size: 128g N(t AnsibleModuletLANGtCtLC_ALLt LC_MESSAGEStLC_CTYPEcC`s&dt|dt|t|S(Nii@B(tint(tmajortminortpatch((s?/usr/lib/python2.7/site-packages/ansible/modules/system/lvol.pyt mkversionscC`sg}x|jD]}|jjd}|ji|djddjddd6t|dd6|d d d kd 6|d dd kd6|d ddkd6qW|S(Nt;it[tt]tnameitsizeiitatactivetttthinpooltVtthinvol(t splitlineststriptsplittappendtreplacetfloat(tdatatlvstlinetparts((s?/usr/lib/python2.7/site-packages/ansible/modules/system/lvol.pyt parse_lvss #cC`sg}xt|jD]f}|jjd}|ji|dd6t|dd6t|dd6t|dd 6qW|S( NRiRiRitfreeitext_size(RR R!R"R$(R%tvgsR'R(((s?/usr/lib/python2.7/site-packages/ansible/modules/system/lvol.pyt parse_vgss  cC`s|jddt}|jd|\}}}|dkrAdStjd|}|s]dSt|jd|jd|jdS( Ntlvmtrequireds %s versionis7LVM version:\s+(\d+)\.(\d+)\.(\d+).*(\d{4}-\d{2}-\d{2})iii(t get_bin_pathtTruet run_commandtNonetretsearchRtgroup(tmoduletver_cmdtrctoutterrtm((s?/usr/lib/python2.7/site-packages/ansible/modules/system/lvol.pytget_lvm_versions c.C`stdtdtdddtdtdddtdddtddd tddd d d d d gdtddd tdtddd tdtddd tdtdddtdddtddd tdtdd dtdddgf}t|_t|}|dkr?|jddnt ddd}||krfd}nd}|j d}|j d}|j d}|j d}|j d }|j |j d} |j |j d} |j |j d} |j |j d} |j d} d}d}|j d}|j d}|dkrMd}n|j d d!}|dkrtd}n|j rd"}nd}|rd#|kr6|jd#d$}t|d%}|d&kr|jdd'n|d$}|d(kr|jdd)n|dhkr'|jdd-nd.}d}nd#|kr|d/jd0krx|d/j}|d%d/!}ny*t||d%jstnWqtk r|jdd1|qXqn|d.krd}n|}|jd2dt}|jd3|||f\}}}|d%kr}|d krZ|jd4td5d6|q}|jdd6|d7|d8|nt|}|d%}|jd9dt}|jd:|||f\}}}|d%kr%|d kr|jd4td5d6|q%|jdd6|d7|d8|nt}t|} |rxq| D]O}!|!d;|ksj|!d;| krD|!d r| rPq|jdd<qDqDW|jdd=||f|}"nc| r|rx<| D]}!|!d;| krPqqW|jdd>| |f|}"q| }"n|}"xD| D]6}!|!d;|"|"jd?d$d/fkr$|!}#Pq$q$Wd}#d}$|#dkr]|d krH|s| r| rxE| D]*}!|!d;|kr|!d@r|rPqqW|jddAn|jdBdt}%|dk rQ|r/dC|%|||||||||f }&q dD|%||||||f}&n| r|r|d.kr|jd4tddEndF}dG|%|||||||| f }&nZ| r| rdH|%||||||| f}&n(dI|%|||||||||f }&|j|&\}}'}|d%kr7t}qZ|jddJ|d7|d8|qHn|d kr | s|jddK|#d;n|jdLdt}(|jdM|(|||#d;f\}}'}|d%kr|jd4tqH|jddN|d7|d8|n;|s n2|d.kr( d})|dO}*|d*ksJ |d+kr_ ||dd&}+n||dOd&}+|+|+|dP8}+dQ|kr |+|#d7}+n|#d|+kr& |*d%kr dQ|ks |*|+|#dkr |jdRdt})q |jddS|#d;|+|#d||*|fn| r |#d|+|dPkr |+d%krk |jddT|#d;q | s |jddU|#d;q |jdVdt})dW|)dXf})n|)rH| r dW|)dYf})ndZ|)||||||#d;|f}&|j|&\}},}d[|,krO |jdd\|||fd7|d8|d]|,q% |d%kr{ t}d^|#d;|+|f}$q% d_|kr |jd4td|d|#d;d|#dq% d`|kr |jd4td|d|#d;d|#dddad8|q% |jdd\|||fd7|d8|qHn d})t||#dkr\ |jdRdt})n| r t||#dkr t|d%kr |jddT|#d;n| s |jddb|#d;q |jdVdt})dW|)dXf})n|)rH| r dW|)dYf})ndZ|)||||||#d;|f}&|j|&\}},}d[|,kr |jdd\|||fd7|d8|d]|,qH|d%kr t}qHd_|kr |jd4td|d|#d;d|#dqHd`|kr|jd4td|d|#d;d|#dddad8|qH|jdd\|||fd7|d8|n|#dk r| r|jdcdt}-|jdd|-||#d;f\}}'}|d%kr|jd4|#d p|d|d|#d;d|#dq|jdde|d7|d8|q|jdcdt}-|jdf|-||#d;f\}}'}|d%kr|jd4|#dp_|d|d|#d;d|#dq|jddg|d7|d8|n|jd4|d|$dS(iNt argument_spectvgttypetstrR/tlvRtoptststatetdefaulttpresenttchoicestabsenttforcetbooltshrinkRtsnapshottpvstresizefsRtsupports_check_modetrequired_one_oftmsgs Failed to get LVM version numberiics--yesRtLR<t,t s --testt%iiids*Size percentage cannot be larger than 100%tORIGINs"Snapshot Volumes are not supportedtVGtPVStFREEs.Specify extents as a percentage of VG|PVS|FREEtlitbskmgtpesBad size specification of '%s'R,s\%s --noheadings --nosuffix -o vg_name,size,free,vg_extent_size --units %s --separator ';' %stchangedtstdoutsVolume group %s does not exist.R9R;R&sS%s -a --noheadings --nosuffix -o lv_name,size,lv_attr --units %s --separator ';' %sRs-Snapshots of thin pool LVs are not supported.s8Snapshot origin LV %s does not exist in volume group %s.s2Thin pool LV %s does not exist in volume group %s.t/RsNo size given.tlvcreates#%s %s %s -%s %s%s -s -n %s %s %s/%ss%s %s %s -s -n %s %s %s/%ss1Thin volume sizing with percentage not supported.Rs %s %s -n %s -%s %s%s %s -T %s/%ss%s %s -%s %s%s %s -T %s/%ss %s %s %s -n %s -%s %s%s %s %s %ss#Creating logical volume '%s' faileds9Sorry, no removal of logical volume %s without force=yes.tlvremoves%s %s --force %s/%ss"Failed to remove logical volume %sR*R+t+tlvextendsdLogical Volume %s could not be extended. Not enough free space left (%s%s required / %s%s available)s)Sorry, no shrinking of %s to 0 permitted.s+Sorry, no shrinking of %s without force=yestlvreduces%s %ss--forces --resizefss%s %s -%s %s%s %s/%s %ssReached maximum COW sizesUnable to resize %s to %s%sR:sVolume %s resized to %s%ssmatches existing sizesnot larger than existing sizes+Original size is larger than requested sizes,Sorry, no shrinking of %s without force=yes.tlvchanges %s -ay %s/%ss$Failed to activate logical volume %ss %s -an %s/%ss&Failed to deactivate logical volume %s(RWRXRY(RtdictR1tFalset LVOL_ENV_VARStrun_command_environ_updateR=R3t fail_jsonRtparamstbooleanR#t check_modeR!RtlowerR$tisdigitt ValueErrorR0R2t exit_jsonR-R)trsplit(.R7t version_foundtversion_yesopttyesoptR?RBRRCRDRIRKRRNRtsize_optt size_unitRLRMttest_optt size_partst size_percentt size_wholetunittvgs_cmdR9t current_vgsR;R,tthis_vgtlvs_cmdt current_lvsR\R&ttest_lvtcheck_lvtthis_lvRQt lvcreate_cmdtcmdt_t lvremove_cmdttoolt size_freetsize_requestedR:t lvchange_cmd((s?/usr/lib/python2.7/site-packages/ansible/modules/system/lvol.pytmain s!                                #    #        &     +"  ( %(  & , #   , & & 2  - 9/& 2   - 9, ) 8#) 7#t__main__(t __future__RRRR@t __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLESR4tansible.module_utils.basicRReRgRR)R-R=Rt__name__(((s?/usr/lib/python2.7/site-packages/ansible/modules/system/lvol.pyts*   Ky     0