Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Wednesday, 13 February 2013

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