When a VM is deleted in the vSphere environment, its underlying storage resources (pools)
and virtual volumes might remain on the storage system even after the deletion. These elements are
not visible on the Spectrum Control Base GUI, and must be deleted via XCLI.
About this task
This procedure details how to use XCLI to delete residual XIV storage resources and
orphaned virtual volumes after their VMs were deleted. Procedure
To delete the leftover virtual volumes:
- Launch the XIV® XCLI tool and log in as a storage
administrator (storageintegrationadmin).
- List all existing virtual volumes, by using the vol_list command.
XIV hostdev31c>>vol_list managed=yes domain=test
Name Size (GB) Master Name Consistency Group Pool Creator Compressed Compression Ratio (%) Used Capacity (GB) Compression Saving (GB) Managed
test_1 17 gp_1_meta tester_1 no 0 yes
test_1 18 gp_2_meta tester_1 no 0 yes
- Delete the virtual volume, by using the vol_delete command.
XIV hostdev31c>>vol_delete vol=test_1
Warning: This is a managed object. Performing manual operations on it may cause severe problems to the managing software. Are you sure you want to perform
the operation on this managed object? y/n: y
- List all group pools in the domain, by using the gp_list command.
XIV hostdev31c>>gp_list domain=test
Name Meta Pool Name Thin Pool Name Thick Pool Name
gp_1 gp_1_meta gp_1_thin gp_1_thick
gp_2 gp_2_meta gp_2_thin gp_2_thick
- List all pools in the group pool, by using the pool_list command.
pool_list gp=gp_1 managed=yes
Name Size (GB) Soft Vols (GB) Snap Size (GB) Soft Empty (GB) Hard Size (GB) Hard Vols (GB) Locked Hard Snaps (GB) Hard Empty (GB) Domain Create Compressed Volumes Managed
gp_1_thin 653 0 34 619 309 0 no 0 309 test no yes
gp_1_meta 0 0 0 0 0 0 no 0 0 test no yes
gp_1_thick 34 0 34 0 34 0 no 0 34 test no yes
- Delete the group pool, by using the gp_delete command.
XIV hostdev31c>>gp_delete gp=gp_1
- Delete the all pools that belonged to the deleted group pool, by using the
pool_delete command.
XIV hostdev31c>>pool_delete pool=gp_1_thin