subscribe iconSubscribe to this information
POWER7 information

rmvdev command

Purpose

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

Syntax

rmvdev [ -f ] { -vdev TargetDevice | -vtd VirtualTargetDevice } [-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
-f Forces the removal of all virtual target devices associated with the given backing device.
-vdev TargetDevice Specifies the physical backing device
-rmlv Deletes the backing device. This flag is valid only for logical volume backing devices.
-vtd VirtualTargetDevice Specifies the virtual target device to remove.
-sea SEAdevice Removes the Shared Ethernet Adapter
-auto Migrates and removes the shared Ethernet adapter when used with the -migrate option.
-migrate Migrates the settings from the physical adapter interface to the shared Ethernet adapter interface.
-lnagg LnaggDevice Removes a Link Aggregation device.
-interface TargetInterface Deleted the interfaces configured on the system for the target interface.

Exit Status

See Exit status for Virtual I/O Server commands.

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


Send feedback Rate this page

Last updated: Wed, June 03, 2015