8.2 edvrmvol

Runs ESCLI commands to remove an EDV attachment and associated Exascale volume previously created using the edvmkvol command.

Purpose

The edvrmvol command provides a simple interface to remove an Exascale Direct Volume (EDV) attachment and associated Exascale volume that were created using the edvmkvol command. The command performs the ESCLI rmvolumeattachment and rmvolume commands.

Syntax

$ edvrmvol volume-name [ --verbose ]

Command Options

The options for the edvrmvol command are:

  • volume-name: Specifies the name of the volume being removed. This can be either the name specified in the edvmkvol command (for example, myvol1), or the device path (for example, /dev/exc/myvol1).

  • --verbose: Instructs the command to display verbose output, including the underlying ESCLI commands and their output.

Usage Notes

  • The command uses the user credentials associated with the first Exascale user wallet available in the following search path:

    1. $OSSCONF/eswallet
    2. $ORACLE_BASE/admin/eswallet
    3. /etc/oracle/cell/network-config/eswallet

Example 8-3 Remove an EDV Attachment and Associated Volume

The example shows a simple command to remove an EDV attachment and associated volume. In the example, the volume is named myvol1.

$ edvrmvol myvol1

Removed edv attachment with id 1:57172474ab234589a411178f92e4acc8
Removed volume with id 2:1312220a4a9841a1be28a6c60762702a
Removed device: /dev/exc/myvol1

Example 8-4 Remove an EDV Attachment and Associated Volume with Verbose Output

The example shows a command to remove an EDV attachment and associated volume with verbose output. In the example, the volume is identified using the EDV device name /dev/exc/myvol1.

$ edvrmvol /dev/exc/myvol1 --verbose

ESCLI>lsvolumeattachment --filter deviceName=myvol1
id                                 volume                             deviceName attachTime
1:70b18560f4714f178d80940dc643f453 2:87e95b8e9e4a4989a543c713769a867b myvol1     2024-11-19T14:35:30+00:00

ESCLI>rmvolumeattachment 1:70b18560f4714f178d80940dc643f453
Removed edv attachment with id 1:70b18560f4714f178d80940dc643f453

ESCLI>rmvolume 2:87e95b8e9e4a4989a543c713769a867b
Removed volume with id 2:87e95b8e9e4a4989a543c713769a867b