rmvdisk

You can use the rmvdisk command to delete a virtual disk. The command might fail if there are mappings between the virtual disk and hosts and you do not specify the force flag.

Syntax

Read syntax diagramSkip visual syntax diagram>>- svctask -- -- rmvdisk -- --+----------+-- ------------------>
                               '- -force -'

>--+- vdisk_id ---+--------------------------------------------><
   '- vdisk_name -'

Parameters

-force
Optionally forces the deletion. This argument deletes any host-to-VDisk mappings and any FlashCopy mappings that exist for this VDisk.
vdisk_id | vdisk_name
Specifies the name of the virtual disk to delete, either by ID or by name.

Description

This command deletes an existing virtual disk. The extents that made up this virtual disk are returned to the pool of free extents available on the managed disk group.

Attention: Attention: Any data that was on the virtual disk is lost. Care should be taken when executing this command to ensure that the virtual disk (and any data that resides on it) is no longer required.

If any mappings still exist between this virtual disk and hosts, the deletion will fail unless the force flag is specified. When the force flag is specified, any mappings that remain are deleted and then the virtual disk is deleted.

Possible failures

Examples

An invocation example

svctask rmvdisk -force vdisk5