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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vios_name_or_uuid": "<vios_name_or_uuid>",
"storage_name": "<storage_name>",
"lpar_name_or_uuid": "<lpar_name_or_uuid>"
},
"name": "hmc_map_storage_to_lpar"
}
}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 |