Adds a virtual device to the system.
To create a virtual target device:
mkvdev [ -f ] {-vdev TargetDevice | -dplc TDPhysicalLocatonCode } { -vadapter VirtualServerAdapter | -aplc VSAPhysicalLocationCode} [ -dev DeviceName ]
To create a virtual target device for a file backed virtual optical device:
mkvdev -fbo { -vadapter VirtualServerAdapter | -aplc VSAPhysicalLocationCode } [-dev DeviceName]
To create a shared Ethernet Adapter:
mkvdev -sea TargetDevice -vadapter VirtualEthernetAdapter... -default DefaultVirtualEthernetAdapter -defaultid SEADefaultPVID [ -attr Attribute=Value [ Attribute=Value... ] ]
To create an Link Aggregation adapter:
mkvdev -lnagg TargetAdapter... [ -attr Attribute=Value [ Attribute=Value... ] ]
To create a VLAN Ethernet adapter:
The mkvdev command creates a virtual device. The name of the virtual device is automatically generated and assigned unless the -dev DeviceName flag is specified, in which case DeviceName becomes the device name.
If the -lnagg flag is specified, a Link Aggregation or IEEE 802.3 Link Aggregation (automatic Link Aggregation) device is created. To create an IEEE 802.3 Link Aggregation set the mode attribute to 8023ad. If the -sea flag is specified, a Shared Ethernet Adapter is created. The TargetDevice may be a Link Aggregation adapter (note, however, that the VirtualEthernetAdapter may not be Link Aggregation adapters). The default virtual Ethernet adapter, DefaultVirtualEthernetAapter, must also be included as one of the virtual Ethernet adapters, VirtualEthernetAdapter.
The -fbo flag is used to create a virtual target device which maps the VirtualServerAdapter to a file backed virtual optical device. Virtual optical devices cannot be used until virtual media is loaded into the device. See the loadopt command for details.
The -vlan flag is used to create a VLAN device and the -vdev flag creates a virtual target device which maps the VirtualServerAdapter to the TargetDevice.
If the backing device that is specified by the -vdev or -dplc flags is already in use, an error is returned unless the -f flag is also specified. Also, the backing device that is specified cannot be a physical or logical volume that is assigned to a shared memory pool (to be used as a paging space device by a shared memory partition).
The mkvdev command also configures virtual optical and tape devices, where the -vdev or -dplc flag specifies the physical optical or tape device and the -vadapter or -aplc flag specifies the virtual SCSI adapter. If the specified optical or tape device is already assigned to a virtual SCSI adapter, an error is returned unless the -f flag is also specified. If the -f flag is specified, the optical or tape device will be removed from the virtual SCSI adapter it is currently assigned to before reassigning it to the new virtual SCSI adapter.
When an additional disk drive that has a lower max_transfer_size than the current setting is added, and it is set as a virtual target device (processing mkvdev), the client cannot recognize this device until the VIOS is rebooted and the max_transfer_size is reestablished to the new setting. Because the max_transfer_size cannot be dynamically changed, the mkvdev command checks the current max_transfer_size of the device being added. If it is lower, it posts a message stating that the VIOS must be rebooted before the client can see this device.
| 13 | Specified physical or logical volume is not a valid. |
| 21 | Device is already in use. Use the -f flag to force assignment. |
| 22 | Logical volumes cannot be assigned as backing devices more than once. |
mkvdev -vdev lv20 -vadapter vhost0The system displays a message similar to the following:
vtscsi0 available
mkvdev -vdev hdisk6 -vadapter vhost2The system displays a message similar to the following:
vtscsi1 available
mkvdev -vdev rmt0 -vadapter vhost2The system displays a message similar to the following:
vttape0 available
mkvdev -sea ent4 -vadapter ent6,ent7,ent9 -default ent6 -defaultid 8The system displays a message similar to the following:
ent10 available
mkvdev -lnagg ent4,ent5 -attr backup_adapter=ent6 mode=8023adThe system displays a message similar to the following:
ent10 available