6.2.12.22 rmvolumeattachment
Delete a volume attachment.
Purpose
The rmvolumeattachment
command allows you to delete an Exascale volume attachment.
Syntax
rmvolumeattachment attachment-id [ --protocol edv ] [ --force ]
rmvolumeattachment attachment-id iscsi-initiator-id --protocol iscsi [ --force ]
Command Options
The options for the rmvolumeattachment
command are:
-
attachment-id: Identifies the volume attachment that is the subject of the operation. You can use the
lsvolumeattachment
command to find the identifier for each volume attachment. -
--protocol
: Specifies the attachment protocol, eitheredv
(Exascale Direct Volume) oriscsi
. If not specified,edv
is assumed. -
iscsi-initiator-id: For an iSCSI attachment only, specifies the iSCSI initiator identifier, which must be the same one that was used to create the attachment.
-
--force
: Optionally removes a volume attachment even if it is being used.
Examples
Example 6-184 Delete an EDV Attachment
You can delete an Exascale Direct Volume (EDV) attachment by specifying just the attachment-id. In the following example, the attachment-id is
3:50e52177583f4be4bad68ac20b65001e
.
@> rmvolumeattachment 3:50e52177583f4be4bad68ac20b65001e
Example 6-185 Delete an iSCSI Attachment
You can delete an iSCSI volume attachment by specifying the
--protocol iscsi
command option and the attachment-id and iscsi-initiator-id.
In the following example, the attachment-id is
2-2:50e52177583f4be4bad68ac20b65001e
, and the iscsi-initiator-id is
iqn.1988-10.com.oracle.vm01
.
@> rmvolumeattachment 2-2:50e52177583f4be4bad68ac20b65001e iqn.1988-10.com.oracle.vm01 --protocol iscsi
Parent topic: Block Store Management