Saturday, 6 July 2013

PowerVM QuickStart VI-Key VIOS Commands

PowerVM QuickStart VI-Key VIOS Commands

VIOS commands are documented by categories on this InfoCenter page.

The lsmap command:

•Used to list mappings between virtual adapters and physical resources.
List all (virtual) disks attached to the vhost0 adapter
lsmap -vadapter vhost0
List only the virtual target devices attached to the vhost0 adapter
lsmap -vadapter vhost0 -field vtd
This line can be used as a list in a for loop
lsmap -vadapter vhost0 -field vtd -fmt :|sed -e "s/:/ /g"
List all shared ethernet adapters on the system
lsmap -all -net -field sea
List all (virtual) disks and their backing devices
lsmap -all -type disk -field vtd backing
List all SEAs and their backing devices
lsmap -all -net -field sea backing
Additional lsmap information


The mkvdev command:

• Used to create a mapping between a virtual adapter and a physical resource. The result of this command will be a "virtual device".

Create a SEA that links physical ent0 to virtual ent1
mkvdev -sea ent0 -vadapter ent1 -default ent1 -defaultid 1
›››   The -defaultid 1 in the previous command refers to the default VLAN ID for the SEA. In this case it is set to the VLAN ID of the virtual interface (the virtual interface in this example does not have 802.1q enabled).
›››   The -default ent1 in the previous command refers to the default virtual interface for untagged packets. In this case we have only one virtual interface associated with this SEA.
Create a disk mapping from hdisk7 to vhost2 and call it wd_c1_hd7
mkvdev -vdev hdisk7 -vadapter vhost2 -dev wd_c1_hd7

Remove a virtual target device (disk mapping) named vtscsi0
rmvdev -vtd vtscsi0

• Additional mkvdev information







PowerVM QuickStart Series:

PowerVM QuickStart I-Overview
PowerVM QuickStart II-VIOS Setup & Management
PowerVM QuickStart III-Virtual Disk Setup & Management
PowerVM QuickStart IV-Virtual Network Setup & Management
PowerVM QuickStart V-VIOS Device Management
PowerVM QuickStart VI-Key VIOS Commands
PowerVM QuickStart VII-Advanced VIOS Management

0 blogger-disqus:

Post a comment