hmc_remove_memory_pool
Remove a shared memory pool from an IBM HMC managed system. Checks that the pool exists and has no assigned LPARs before executing deletion, preventing errors.
Instructions
Remove a shared memory pool from a managed system via the HMC CLI.
Before issuing the remove command, fetches the current pool list and
checks that pool_name exists and that no LPARs are still assigned to
it. If a pool with that name is missing, or any LPARs are still
assigned, the command is not executed and an HMCCLIError
describing the problem is raised instead.
Runs chhwres -r mempool -m <system_name> -o r -a <pool_name> on
the HMC via SSH when the pool exists and no LPARs are assigned.
The system may be given by CLI name or by UUID; a UUID is resolved to its CLI name via REST (falling back to an lssyscfg lookup over SSH when the REST API is unreachable) before the command runs.
WARNING: This permanently removes the pool — confirm system_name_or_uuid and pool_name before calling. Returns the HMC CLI output (immediate delete — no job to poll).
Raises: HMCCLIError: If pool_name has LPARs still assigned to it, or if no pool with that name exists on the managed system.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool_name | Yes | ||
| system_name_or_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |