Management of Virtual/Shared Devices:
To create a virtual target device that maps lv20 as a virtual disk for a client partition hosted by the vhost0 virtual server adapter :
# mkvdev -vdev lv20 -vadapter vhost0
Same as above except here hdisk is used instead of a logical volume :
# mkvdev -vdev hdisk6 -vadapter vhost2
To create a SEA that maps the physical Ethernet adapter ent4 as a virtual adapter for the client partitions served by the virtual Ethernet adapters ent6 and ent7, using ent6 as the default adapter and 8 as the default id :
# mkvdev -sea ent4 -vadapter ent6,ent7 -default ent6 -defaultid 8
To remove a virtual target device vtscsi9 along with its backing lv :
# rmvdev –vdev vtscsi9 –
To remove all virtual target device associated with backing device lv001 :
# rmvdev –vdev lv001
To remove a specific virtual target device :
# rmvdev –vtd vtscsi10
List Device Mapping:
To list all virtual target devices and backing devices mapped to virtual server adapter vhost2 :
# lsmap -vadapter vhost2
To list SEA and physical device mapped to virtual Ethernet Adapter ent4 :
# lsmap -vadapter ent4 –net
To list all virtual target devices and backing devices where backing devices are of type LV :
# lsmap -all -type lv
To list all network mapping :
# lsmap –all –net
How to list Devices :
To display all the devices :
# lsdev
To display all the virtual devices :
# lsdev –virtual
To display all the virtual adapters :
# lsdev –type adapter –virtual
To display all the slots :
# lsdev –slot s
To display all the adapters :
# lsdev –type adapter
Few other device types: disk, lv, optical, tape, tty
To list all physical Ethernet adapters and Etherchannel available for creating a SEA :
# lsdev –type ent4sea
To list all virtual Ethernet adapters available for creating a SEA :
# lsdev –type ven4sea
To list all adapters over which ip address can be configured :
# lsdev –type ent4ip
To display parent device of a device :
# lsdev –dev hdisk0 –
To list disks names and physical location alone :
# lsdev -type disk -field name physloc
0 blogger-disqus:
Post a Comment