rmvdev command

Purpose

To remove the connection between a physical device and its associated virtual SCSI adapter.

Syntax

rmvdev [ -f ] { -vdev | -vtd } [-rmlv]

To remove a shared Ethernet adapter:

rmvdev {-sea SEAdevice} [-migrate -auto]

To remove a Link Aggregation adapter:

rmvdev {-lnagg LnaggDevice} [-migrate -auto [-interface TargetInterface]]

Description

The rmvdev command removes the connection between a physical device and its associated virtual SCSI adapter. The connection can be identified by specifying the backing (physical) device or the virtual target device. If the connection is specified by the device name and there are multiple connections between the physical device and virtual SCSI adapters and error is returned unless the -f flag is also specified. If -f is included then all connections associated with the physical device are removed.

If the backing (physical) device is a logical volume and the -rmlv flag is specified, then logical volume will be removed as well.

Flags

Flag name Description
Removes the connection between a physical device and the virtual SCSI adapter with which its associated.
-vdev Specifies the backing device
-vtd Specifies the virtual target device to remove.
-rmlv Deletes the backing device. This flag is valid only for logical volume backing devices.
-f Forces the removal of all virtual target devices associated with the given backing device.
Removes the Shared Ethernet Adapter (SEA) device.
-sea SEAdevice Specifies the SEA device.
  -migrate -auto

Migrates the settings from the SEA adapter interface to the physical adapter interface.

Removes the link aggregate device.
-lnagg LnaggDevice Specifies the link aggregate device name.
  -migrate -auto

Migrates the settings from the link aggregate adapter interface to the physical adapter interface.

-interface TargetInterface Migrates the settings from the link aggregate adapter interface to the target interface when removing the link aggregate device with the -migrate and -auto options.

Examples

  1. To remove the connection between a physical volume and its associated virtual SCSI adapter by specifying the physical volume, type the following command:
    rmvdev -vdev hdisk4
  2. To remove the connection between a logical volume and its associated virtual SCSI adapter by specifying the logical volume and then to remove the logical volume after the connection is removed, type the following command:
     rmvdev -vdev lv1 -rmlv
  3. To remove the connection between a backing device and its associated virtual SCSI adapter by specifying the virtual target device, type the following command:
    rmvdev -vtd vtscsi0
  4. To remove multiple connections between a physical volume and virtual SCSI adapters by specifying the physical volume, type the following command:
    rmvdev -vdev hdisk0 -f
  5. To remove the shared Ethernet adapter ent3, type the following command:
    rmvdev -sea ent3
  6. To migrate the shared Ethernet adapter interface to physical adapter interface and remove the shared Ethernet adapter ent3, type the following command:
    rmvdev -sea ent3 -migrate -auto
  7. To remove the link aggregate device ent3, type the following command:
    rmvdev -lnagg ent3
  8. To migrate the link aggregate interface to the physical adapter interface and remove the link aggregate device ent3, type the following command:
    rmvdev -lnagg ent3 -migrate -auto
  9. To migrate the link aggregate interface to the physical adapter interface en1 and remove the link aggregate device ent3, type the following command:
    rmvdev -lnagg ent3 -migrate -auto -interface en1



Last updated: Wed, November 18, 2020