hmc_create_virtual_disk
Create a virtual disk inside a VIOS volume group, allocating capacity in MiB for use as backing storage to attach to LPARs.
Instructions
Create a Virtual Disk (logical volume) inside a Volume Group.
vios_name_or_uuid: accepts either a PartitionName or a UUID (find it with hmc_vios). capacity_mb is the size in MiB. The disk becomes backing storage that you then attach to an LPAR with hmc_map_storage_to_lpar (storage_kind 'VirtualDisk'). Find vg_uuid with hmc_list_volume_groups.
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>",
"vg_uuid": "<vg_uuid>",
"disk_name": "<disk_name>",
"capacity_mb": "<capacity_mb>"
},
"name": "hmc_create_virtual_disk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vg_uuid | Yes | ||
| disk_name | Yes | ||
| capacity_mb | Yes | ||
| vios_name_or_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |