community.general.aix_lvg 模块 – 管理 AIX 上的 LVM 卷组
注意
此模块是 community.general 集合 (版本 10.1.0) 的一部分。
如果您使用的是 ansible 包,则可能已安装此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install community.general。
要在 playbook 中使用它,请指定:community.general.aix_lvg。
概要
- 此模块在 AIX LVM 上创建、删除或调整卷组大小。 
参数
| 参数 | 注释 | 
|---|---|
| 强制创建卷组。 选项 
 | |
| 物理分区大小(以兆字节为单位)。 | |
| 用作此卷组中物理设备的逗号分隔设备列表。 创建或扩展( 如果未提供,则减少( | |
| 控制卷组是否存在以及卷组 AIX 状态 varyonvg  选项 
 | |
| 卷组的名称。 | |
| 卷组的类型。 选项 
 | 
属性
| 属性 | 支持 | 描述 | 
|---|---|---|
| 支持:完全支持 | 可以在  | |
| 支持:不支持 | 在差异模式下,将返回有关已更改内容(或可能需要在  | 
备注
注意
- 只有在所有 LV/文件系统都不忙时,AIX 才能允许删除 VG。 
- 模块不会修改已存在卷组的 PP 大小。 
示例
- name: Create a volume group datavg
  community.general.aix_lvg:
    vg: datavg
    pp_size: 128
    vg_type: scalable
    state: present
- name: Removing a volume group datavg
  community.general.aix_lvg:
    vg: datavg
    state: absent
- name: Extending rootvg
  community.general.aix_lvg:
    vg: rootvg
    pvs: hdisk1
    state: present
- name: Reducing rootvg
  community.general.aix_lvg:
    vg: rootvg
    pvs: hdisk1
    state: absent
