hmc_map_storage_to_lpar
Map storage to an LPAR by creating a Virtual SCSI mapping on a VIOS, attaching a virtual disk or physical volume to the partition.
Instructions
Map backing storage to an LPAR via a Virtual SCSI mapping on a VIOS.
vios_name_or_uuid: accepts either a PartitionName or a UUID (find it with hmc_vios). lpar_name_or_uuid: accepts either a PartitionName or a UUID (find it with hmc_lpars). The LPAR must already have a vSCSI adapter paired to this VIOS — see hmc_add_vscsi_adapter. storage_kind is 'VirtualDisk' (a logical volume created with hmc_create_virtual_disk) or 'PhysicalVolume' (a whole hdisk). storage_name is the DiskName / device name. target_device optionally pins the vtscsi device name on the VIOS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storage_kind | No | VirtualDisk | |
| storage_name | Yes | ||
| target_device | No | ||
| lpar_name_or_uuid | Yes | ||
| vios_name_or_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |