Tuesday 30 May 2017

Virtual SCSI - PowerVM

Here are some of the commands that can be used on a VIO Server.
1. To view the current reserve policy of a disk
# lsdev -dev hdisk2 -attr reserve_policy

2. To set the reservice policy of a disk
# chdev -dev hdisk2 -attr reserve_policy=no_reserve -P

3. To view the current values of all the attribtues of a FC adapter
# lsdev -dev fcs0 -attr

4. To modify the attributes of a FC adapter
# chdev -dev fcs0 -attr fc_err_recov=fast_fail dyntrk=yes -P

5. To map a disk to a Virtual Server SCSI adapter
# mkvdev -vdev hdisk2 -vadapter vhost0 -dev lpar1_vtd

"-dev lpar1_vtd" is an option to specify the VTD name.
If not specified, it would take a default name.

6. To unmap a disk from a Virtual Server SCSI adapter (Technically removing a VTD device)
# rmvdev -vtd lpar1_vtd

7. To list all the backing device and Virtual Server SCSI adapter mapping
# lsmap -all

8. To list all the backing devices mapped to a Virtual Server SCSI adapter
# lsmap -vadapter vhost0

Here are the commands that can be used on an AIX LPAR.

1. To list the atttributes of a virtual disk
# lsattr -El hdisk0

2. To set the necessary attributes of a virtual disk
# chdev -l hdisk0 -a hcheck_mode=nonactive hcheck_interval=20 algorithm=fail_over

3. To list all the paths for the virtual disks
# lpath

4. To list the parent device of a virtual disk
# lsparent -CH -l hdisk1

5. For more details of virtual disks
# lspath -H -F "status name parent path_id connection"

No comments:

Post a Comment