??????????????
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 Zdd l Z dd l Z dd l m Z d „Z d „Zd„Zd„Zedkr®eƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bys^ --- author: - Alexander Bulimov (@abulimov) module: lvg short_description: Configure LVM volume groups description: - This module creates, removes or resizes volume groups. version_added: "1.1" options: vg: description: - The name of the volume group. type: str required: true pvs: description: - List of comma-separated devices to use as physical devices in this volume group. - Required when creating or resizing volume group. - The module will take care of running pvcreate if needed. type: list pesize: description: - "The size of the physical extent. I(pesize) must be a power of 2 of at least 1 sector (where the sector size is the largest sector size of the PVs currently used in the VG), or at least 128KiB." - Since Ansible 2.6, pesize can be optionally suffixed by a UNIT (k/K/m/M/g/G), default unit is megabyte. type: str default: "4" pv_options: description: - Additional options to pass to C(pvcreate) when creating the volume group. type: str version_added: "2.4" vg_options: description: - Additional options to pass to C(vgcreate) when creating the volume group. type: str version_added: "1.6" state: description: - Control if the volume group exists. type: str choices: [ absent, present ] default: present force: description: - If C(yes), allows to remove volume group with logical volumes. type: bool default: no seealso: - module: filesystem - module: lvol - module: parted notes: - This module does not modify PE size for already present volume group. s - name: Create a volume group on top of /dev/sda1 with physical extent size = 32MB lvg: vg: vg.services pvs: /dev/sda1 pesize: 32 - name: Create a volume group on top of /dev/sdb with physical extent size = 128KiB lvg: vg: vg.services pvs: /dev/sdb pesize: 128K # If, for example, we already have VG vg.services on top of /dev/sdb1, # this VG will be extended by /dev/sdc5. Or if vg.services was created on # top of /dev/sda5, we first extend it with /dev/sdb1 and /dev/sdc5, # and then reduce by /dev/sda5. - name: Create or resize a volume group on top of /dev/sdb1 and /dev/sdc5. lvg: vg: vg.services pvs: /dev/sdb1,/dev/sdc5 - name: Remove a volume group with name vg.services lvg: vg: vg.services state: absent N(t AnsibleModulecC`spg}xc|jƒD]U}|jƒjdƒ}|ji|dd6t|dƒd6t|dƒd6ƒqW|S(Nt;itnameitpv_countitlv_count(t splitlineststriptsplittappendtint(tdatatvgstlinetparts((s>/usr/lib/python2.7/site-packages/ansible/modules/system/lvg.pyt parse_vgsks  cC`sy|jdtƒ}d}|jd||fƒ\}}}|dkre|jddd|d|ƒn||jƒ}|S( Ntdmsetups /dev/mapper/s"%s info -C --noheadings -o name %sitmsgs!Failed executing dmsetup command.trcterr(t get_bin_pathtTruet run_commandt fail_jsontrstrip(tmodulet dm_devicet dmsetup_cmdt mapper_prefixRtdm_nameRt mapper_device((s>/usr/lib/python2.7/site-packages/ansible/modules/system/lvg.pytfind_mapper_device_namews" cC`sŒg}d}xy|jƒD]k}|jƒjdƒ}|dj|ƒrat||dƒ|d/usr/lib/python2.7/site-packages/ansible/modules/system/lvg.pyt parse_pvss  c'C`sëtdtdtdddtƒdtddƒdtddd d ƒd tddd d ƒd tddd d ƒdtddd ddddgƒdtddd tƒƒdtƒ}|jd}|jd}|j|jdƒ}|jd}|jd jƒ}|jd jƒ}g}|jdr=t|jdƒ}n|dkr\|jddƒnx0t |ƒD]"\}} t j j | ƒ||/usr/lib/python2.7/site-packages/ansible/modules/system/lvg.pys ¸ss vg_name = {0}s--select '{0} || {1}' s5%s --noheadings -o pv_name,vg_name --separator ';' %sisFailed executing pvs command.RRR R's(Device %s is already in %s volume group.Rs<%s --noheadings -o vg_name,pv_count,lv_count --separator ';'sFailed executing vgs command.tpvcreates-fs$Creating physical volume '%s' failedtvgcreates-ss!Creating volume group '%s' failedtchangedR tvgremoves %s --force %ss Failed to remove volume group %ss<Refuse to remove non-empty volume group %s without force=yest tvgextends%s %s %ssUnable to extend %s by %s.tvgreduces%s --force %s %ssUnable to reduce %s by %s.(RtdictRtFalsetparamstbooleanRR1Rt enumeratetostpathtrealpathtexistsRtjoint itertoolstchainR?RR+RtNonet check_modeR/t exit_jsontset('R R-R8R<R2t pvoptionst vgoptionstdev_listtidxtdevttest_devtpvs_cmdtpvs_filter_pv_nametpvs_filter_vg_namet pvs_filterRt current_pvsRR)tpvtused_pvstvgs_cmdt current_vgsRDRttest_vgtthis_vgt pvcreate_cmdt current_devt_t vgcreate_cmdt vgremove_cmdt current_devstdevs_to_removet devs_to_addtdevs_to_add_stringt vgextend_cmdtdevs_to_remove_stringt vgreduce_cmd((s>/usr/lib/python2.7/site-packages/ansible/modules/system/lvg.pytmainsÒ!         " C0        /  $0  &  " #9    /  $%  )%  ,t__main__(t __future__RRRR.t __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLESRSRNtansible.module_utils.basicRRR&R+Rvt__name__(((s>/usr/lib/python2.7/site-packages/ansible/modules/system/lvg.pyts   :    —