To remove the connection between a physical device and its associated virtual SCSI adapter.
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]]
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.
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. |
rmvdev -vdev hdisk4
rmvdev -vdev lv1 -rmlv
rmvdev -vtd vtscsi0
rmvdev -vdev hdisk0 -f