ieisystem.inmanage.add_ldisk (1.1.1) — module

Create logical disk

| "added in version" 1.0.0 of ieisystem.inmanage"

Authors: WangBaoshan (@ieisystem)

Install collection

Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1


Add to requirements.yml

  collections:
    - name: ieisystem.inmanage
      version: 1.1.1

Description

Create logical disk on ieisystem Server.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add ldisk test
  hosts: inmanage
  connection: local
  gather_facts: no
  vars:
    inmanage:
      host: "{{ ansible_ssh_host }}"
      username: "{{ username }}"
      password: "{{ password }}"

  tasks:

  - name: "Show pdisk information"
    ieisystem.inmanage.add_ldisk:
      info: "show"
      provider: "{{ inmanage }}"

  - name: "Add LSI ldisk"
    ieisystem.inmanage.add_ldisk:
      ctrl_id: 0
      level: 1
      size: 1
      access: 1
      r: 1
      w: 1
      io: 1
      cache: 1
      init: 2
      select: 10
      slot: 0,1
      provider: "{{ inmanage }}"

  - name: "Add PMC ldisk"
    ieisystem.inmanage.add_ldisk:
      ctrl_id: 0
      level: 1
      size: 1
      accelerator: 1
      slot: 0,1
      vname: "test"
      provider: "{{ inmanage }}"

  - name: "Add MV ldisk"
    ieisystem.inmanage.add_ldisk:
      ctrl_id: 0
      size: 1
      vname: "test"
      provider: "{{ inmanage }}"

Inputs

    
r:
    choices:
    - 1
    - 2
    description:
    - Read Policy, 1 - Read Ahead, 2 - No Read Ahead.
    - Required when I(Info=None) and controller type is LSI.
    type: int

w:
    choices:
    - 1
    - 2
    - 3
    description:
    - Write Policy, 1 - Write Through, 2 - Write Back, 3 - Write caching ok if bad BBU.
    - Required when I(Info=None) and controller type is LSI.
    type: int

io:
    choices:
    - 1
    - 2
    description:
    - IO Policy, 1 - Direct IO, 2 - Cached IO.
    - Required when I(Info=None) and controller type is LSI.
    type: int

host:
    description:
    - Specifies the DNS host name or address for connecting to the remote device over
      the specified transport.  The value of host is used as the destination address for
      the transport.
    type: str

info:
    choices:
    - show
    description:
    - Show controller and physical drive info.
    type: str

init:
    choices:
    - 1
    - 2
    - 3
    description:
    - Init State, 1 - No Init, 2 - Quick Init, 3 - Full Init.
    - Required when I(Info=None) and controller type is LSI.
    type: int

size:
    choices:
    - 0
    - 1
    - 2
    - 3
    - 4
    - 5
    description:
    - Strip Size, 0 - 32k, 1 - 64k, 2 - 128k, 3 - 256k, 4 - 512k, 5 - 1024k.
    - Required when I(Info=None) and controller type is LSI, PMC or MV.
    - When the controller type is MV, size is [0, 1].
    - When the controller type is LSI or PMC, size is [1, 2, 3, 4, 5].
    type: int

slot:
    description:
    - Slot Num, input multiple slotNumber like 0, 1, 2....
    - Required when I(Info=None) and controller type is LSI or PMC.
    elements: int
    type: list

cache:
    choices:
    - 1
    - 2
    - 3
    description:
    - Drive Cache, 1 - Unchanged, 2 - Enabled, 3 - Disabled.
    - Required when I(Info=None) and controller type is LSI.
    type: int

level:
    choices:
    - 0
    - 1
    - 5
    - 6
    - 10
    description:
    - RAID Level, 0 - RAID0, 1 - RAID1, 5 - RAID5, 6 - RAID6, 10 - RAID10.
    - Required when I(Info=None) and controller type is LSI or PMC.
    type: int

vname:
    description:
    - Virtual drive name.
    - Required when I(Info=None) and controller type is PMC or server model is M7.
    - Required when I(Info=None) and controller type is MV.
    type: str

access:
    choices:
    - 1
    - 2
    - 3
    description:
    - Access Policy, 1 - Read Write, 2 - Read Only, 3 - Blocked.
    - Required when I(Info=None) and controller type is LSI.
    type: int

select:
    description:
    - Select Size, from 1 to 100.
    - Required when I(Info=None) and controller type is LSI.
    type: int

ctrl_id:
    description:
    - Raid controller ID.
    - Required when I(Info=None) and controller type is LSI, PMC or MV.
    type: int

password:
    description:
    - Specifies the password to use to authenticate the connection to the remote device.
      If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD)
      will be used instead.
    type: str

provider:
    description:
    - A dict object containing connection details.
    suboptions:
      host:
        description:
        - Specifies the DNS host name or address for connecting to the remote device over
          the specified transport.  The value of host is used as the destination address
          for the transport.
        type: str
      password:
        description:
        - Specifies the password to use to authenticate the connection to the remote device.
          If the value is not specified in the task, the value of environment variable
          C(ANSIBLE_NET_PASSWORD) will be used instead.
        type: str
      username:
        description:
        - Configures the username to use to authenticate the connection to the remote
          device. If the value is not specified in the task, the value of environment
          variable C(ANSIBLE_NET_USERNAME) will be used instead.
        type: str
    type: dict

username:
    description:
    - Configures the username to use to authenticate the connection to the remote device.
      If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME)
      will be used instead.
    type: str

accelerator:
    choices:
    - 1
    - 2
    - 3
    description:
    - Driver accelerator, 1 - 1h, 2 - 2h, 3 - 3h.
    - Required when I(Info=None) and controller type is PMC.
    type: int

Outputs

changed:
  description: Check to see if a change was made on the device.
  returned: always
  type: bool
message:
  description: Messages returned after module execution.
  returned: always
  type: str
state:
  description: Status after module execution.
  returned: always
  type: str