Blogs Classifieds Downloads FlashChat Gallery Googlemap Invite Friends Links Projects Reviews Wiki
 


Our Sponsors
Want to advertise?  


Reply
 
LinkBack Thread Tools
  #1  
Old January 27th, 2010
popesy's Avatar
popesy Offline
Junior Member
 
Join Date: July 2009
Posts: 15
Which is the primary VIOS

I am sure this is a quick question

With the mapping of storage to a vhost (LPAR) using the 'mkvdev -vdev..' command, how do I know that the hdisk I am mapping to the vhost will have affinity to a specific VIOS?

What I am trying to determine is which is the primary VIOS in steady state for that LPAR and also in a failed over state for the same LPAR. Is it merely a case of the steady state being the VIOS that I first ran the mkdev command on?

I have found a command 'mpstat -h' (not yet tried this).

Thanks.

JP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old January 28th, 2010
seth's Avatar
seth Offline
Senior Member
 
Join Date: June 2008
Posts: 253
Re: Which is the primary VIOS

Hi popesy

mpstat (-h flag does not exist or is at least not documented) Collects and displays performance statistics for all logical CPUs in the system. So how shuld that help you on the quest finding your "primary" VIO server.
There is no quick and easy info on that so you better write that when you create the LPAR LUNs in some sort of documentation or your lost! You may keep them in the head or think I always take VIOx as primary. It may wor a while but as your infrastructure and IT team grows this is something that should be documented!

Well lets assume you have to VIOS and one LPAR, on that LPAR a hdisk2 for example and want to know which VIO server serves it as "primary" and which one is the "backup".
Here the example:
Quote:
root@i21lpar1:/ > lspath
Enabled hdisk0 vscsi0
Enabled hdisk1 vscsi1
Enabled hdisk0 vscsi2
Enabled hdisk1 vscsi3
Enabled hdisk2 vscsi4
Enabled hdisk3 vscsi4
Enabled hdisk2 vscsi5
Enabled hdisk3 vscsi5
You see hdisk2 (in ideal conditions) over 2 ways vscsi4 and vscsi5.
Quote:
root@i21lpar1:/ > lspath -AHE -l hdisk2 -p vscsi4
attribute value description user_settable

priority 2 Priority True
OK so you know now vscsi4 is the backup device
Quote:
root@i21lpar1:/ > lspath -AHE -l hdisk2 -p vscsi5
attribute value description user_settable

priority 1 Priority True
Bingo! vscsi5 is the device you have to trace!
Quote:
root@i21lpar1:/ > lsslot -c slot
# Slot Description Device(s)
U9117.MMA.068A540-V3-C0 Virtual I/O Slot vsa0
U9117.MMA.068A540-V3-C2 Virtual I/O Slot vscsi0
U9117.MMA.068A540-V3-C3 Virtual I/O Slot vscsi1
U9117.MMA.068A540-V3-C4 Virtual I/O Slot vscsi2
U9117.MMA.068A540-V3-C5 Virtual I/O Slot vscsi3
U9117.MMA.068A540-V3-C6 Virtual I/O Slot ent0
U9117.MMA.068A540-V3-C7 Virtual I/O Slot ent1
U9117.MMA.068A540-V3-C8 Virtual I/O Slot vscsi4
U9117.MMA.068A540-V3-C9 Virtual I/O Slot vscsi5
So you see vscsi5 has client slot number 9 (C9).
Now log on to your HMC, gor to manage profiles of the lpar you just logged in and look into the active profile on virtual adapters there we have a "Adapter ID" this represents the Client slot ID. Look at number "9" in the same row the next filed shows you the connected VIO Server. If you want to know which disk the client hdisk2 on the VIO is then Note the "Connecting Adapter" in the same row and log into the VIO server which was shown in the last step.
In my case its i21vio2 and my Connecting Adapter is "19".
Quote:
lsdev -slots | grep C19
U9117.MMA.068A540-V2-C19 Virtual I/O Slot vhost2
So we found out the right vhost (vhost2)
Quote:
lsmap -vadapter vhost2
SVSA Physloc Client Partition ID
--------------- -------------------------------------------- ------------------
vhost2 U9117.MMA.068A540-V2-C19 0x00000003

VTD vtscsi2
Status Available
LUN 0x8100000000000000
Backing device hdisk8
Physloc U789D.001.DQD9Y01-P1-C2-T1-W50060E8010051029-L6000000000000

VTD vtscsi3
Status Available
LUN 0x8200000000000000
Backing device hdisk9
Physloc U789D.001.DQD9Y01-P1-C2-T1-W50060E8010051029-L7000000000000
So our VIO2 is configured that it sees each device over two FC adapters that's the reason why we see 2 disks at the vhost device. To find the currently active device you need to go back to the client and get the pvid from hdisk2
Quote:
root@i21lpar1:/ > lspv
hdisk0 00c8a5404c2ee5d5 rootvg active
hdisk1 00c8a5404c2eea3b swvg active
hdisk2 00c8a5404c2efd45 ics1e2evg active
hdisk3 00c8a5404c2f01af ics1e2evg active
then you grep for this id on the VIO server:
Quote:
padmin@i21vio2:/home/padmin > lspv | grep 00c8a5404c2efd45
hdisk8 00c8a5404c2efd45 None
padmin@i21vio2:/home/padmin > lspath | grep hdisk8
Enabled hdisk8 fscsi0 50060e8010051021,6000000000000
Enabled hdisk8 fscsi2 50060e8010051029,6000000000000
this shows you the the corresponding fcs Adapter.
with
Quote:
padmin@i21vio2:/home/padmin > lspath -dev hdisk8 -pdev fscsi2 -lsattr
attribute value description user_settable

scsi_id 0x792c13 SCSI ID False
node_name 0x50060e8010051029 Node Name False
priority 1 Priority True
padmin@i21vio2:/home/padmin > lspath -dev hdisk8 -pdev fscsi0 -lsattr
attribute value description user_settable

scsi_id 0x6f1813 SCSI ID False
node_name 0x50060e8010051021 Node Name False
priority 2 Priority True
you see that fcs2 is the primary adapter for the client disk hdisk2.
Be cautious this is an environment with default MPIO Fiber Disk Driver enabled. If you use any other storage devicedriver like Hitachi HDLM or SDD from IBM you might have to handle the disks on the VIO in some other way (lspath will not work as expected for example). Anyway you see this is all but easy to get to this info so you better prep your excel documents for lot of VIO-LPAR documentation...

Cheers seth

Edit: made it more readable
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old January 29th, 2010
popesy's Avatar
popesy Offline
Junior Member
 
Join Date: July 2009
Posts: 15
Thumbs up Re: Which is the primary VIOS

Seth

Cheers for this, it is absolutely what I was after.

All path priorities are set to '1'. That being the case I understand that that means the primary one is the vscsi adapter with the lowest numeric value assigned to it i.e. out of vscsi0 and vscsi1 the primary will be vscsi0.

Many thanks for your help with this,

JP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
primary, vios

These are the 100 most searched terms
Search Cloud
0042-001 0042-001 nim 0042-008 nimsh: request denied 0513-001 the system resource controller daemon is not active 0513-001 the system resource controller daemon is not active. 0514-061 0514-061 cannot find a child device 0514-061 cannot find a child device. 0516-787 0516-787 extendlv 0516-787 extendlv: maximum allocation for logical volume 110000ac 3074feb7 aa00e1f3 aio aix aix aio aix freeware aix memory usage aix rsync aixif_arp_dup_addr b150f22a b181f22a b181fb53 ba010004 c1001020 d133c002 dacnone dcb47997 fcp_array_err6 fget_config gnu tar aix gtar aix hmc root password hmc vmware ibm p6 520 libpopt.a libpopt.a(libpopt.so.0) is needed by rsync-2.6.2-1 migratelv mksysb navisphere agent nim server pseriestech ptype and account type do not match rshd: 0826-813 permission is denied. rsync aix sc_disk_err4 scan_error_chrp vio server vmware hmc websm ... powered by Simple Search Cloud


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC

vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73