Interesting Problem! 2 VIOs, One is problematic, assigning disks and resources from the other only


 
Thread Tools Search this Thread
Operating Systems AIX Interesting Problem! 2 VIOs, One is problematic, assigning disks and resources from the other only
# 1  
Old 04-13-2011
Interesting Problem! 2 VIOs, One is problematic, assigning disks and resources from the other only

Hi,

The scenario is like this:

1.We needed to assign two hdisks to an LPAR
2.SAN team gives us two ldevs
3.One of our VIO is hanging on cfgmgr operation
4. We ran cfgmgr on the smooth VIO. Got the disks and assigned the disks from there to the LPAR.(By passed the other VIO as in didnt run cfgmgr on them this time)
5. On the LPAR ran cfgmgr but the LPAR would also hang this time. Smilie

My question is that is this the right way? Because one of our engineers was feeling that we need to have the disks on the second VIO as well and then proceed on the LPAR because the LPAR sees resources from both VIO. something like that. Is there a work around?

The VIO that hangs on cfgmgr has errpt showing a failed disk operation on some old disk. Can that be the problem for the VIO hanging on and on?

Regards Smilie
# 2  
Old 04-13-2011
At first make sure that you can access these disk from VIOS without problem.. for examlpe make volumegroup and import the also create filesystem on that disks...
try
Code:
lspv, lspath

and post the output
# 3  
Old 04-13-2011
Hi,
Thanks for the reply Smilie

I just checked that there is Multipathing done on both the VIOs.

I assigned these two disks from the "working VIO" to 5 LPARS.

Now on running cfgmgr on some of the LPARs the disks are visible. lspath too shows them "enabled". But on the other 2 or 3 LPARs running lspath shows these two disks as "defined" and cfgmgr hangs.

I guess this has something to do with MPIO aka multipathing. I fail to understand why the second VIO is hangiing Smilie

So its 3 LPARs that are hanging at cfgmgr and the disks are in "defined" state when lspath is executed.

Regards Smilie
# 4  
Old 04-13-2011
First it is best to use the padmin commands for all VIO configuration. If in fact you are using the native padmin commands such as cfgdev etc but are showing the AIX equivalent for clarity then please excuse my comment.

Did you create the disks on the VIO using a new vhost or did you use an existing one but just added a new virtual disk?

Either way round if you run lsmap -all on the offending VIO do you see the disks in the listing?

A quick remedy I can think of is rmvdev the virtual disk and the physical disk then get the storage team to delete the LUN definition against the WWN of the FC adapter used on the VIO. Then ask the storage team to reallocate the same LUN to the FC adapter. Run cfgdev on the VIO which hopefully will not hang. Once cfgdev has finished run lspv -free to see if the disks are there.

I hope this helps.
# 5  
Old 04-14-2011
Thanks for the reply Smilie
Well I really didnt run padmin commands i.e the shell with the $. I ran:

$oem_setup_env
#_

Used the existing vhost and added a virtual disk.
Yes running the lsmap command does show the virtual disks.
(But please remember that this is being done on the healthy VIO. the second VIO hangs on commands like cfgmgr and lspath)


By the way if I want to delete the virtual disks what command should i use?
rmvdev -vtd (virtual_harddisk_name) -recursive?? But i need to delete them from the LPARs first right and when m done doing all this i need to go to the SAN team?

Regards Smilie
# 6  
Old 04-14-2011
Please do not delete them on the good VIO as this is unnecessary! Do you see the disks at all on the VIO which hangs on cfgdev?

You really should get used to using the padmin commands as life is far easier from the padmin restricted shell as the commands are far more compact and do more with a single line as in rmtcpip.

If you do see the disks on the problem VIO with lsmap -all or lspv -free then as I said try deleting them from the VIO (no need to delete them from the LPAR as they are not there I would assume). Get the storage team to unallocate the LUN from the WWN of the FC on the problem VIO and reallocate. Then run the command cfgdev (not cfgmgr) and then run lspv -free, you should see the new disks.

If you do not see the disks then check the WWN of the FC adapter.

Am I right to assume there are working external disks already mapped on the problem VIO and these disks are from the same storage medium?
# 7  
Old 04-15-2011
Hi, Thanks for the reply Smilie

Well didnt touch the configs yet.. Tomorrow will be trying something. I was thinking of shutting down the problem VIO and then temporarily continuing with the config of GPFS. This way MPIO wouldnt affect that much. Well lets see what happens

Regards.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Assigning disks to grid user Solaris 11

hello....am trying to install Oracle 11gR2 RAC on Solaris 11 using Oracle Virtualbox, am stucked somewhere when trying to assign disk to grid user......I created five disks of 5GB each for ASM, I formatted them successfully but when trying to assign them to grid user, there is no changes as still... (2 Replies)
Discussion started by: Magwai
2 Replies

2. Shell Programming and Scripting

Interesting awk problem

Hello; I wish to manipulate the output from the following: ps axo %mem,pid,euser,cmd|sort -nr 14.4 3170 root /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a 3.6 3635 root splunkd -p 8089 start 2.6 3383 root /usr/sbin/httpd 2.1 15496 apache /usr/sbin/httpd ... (5 Replies)
Discussion started by: delphys
5 Replies

3. Solaris

Very Interesting Problem

Ok Lets say i have a webpage on a solaris box. and i am trying to make a hyperlink. This hyperlink references a Microsoft Access file on a Windows box. So, How do i make a file reference from The unix box to a windows box. Things to keep in mind -- 1.) Solaris doesnt need to... (6 Replies)
Discussion started by: Demon002
6 Replies

4. Solaris

Assigning cryptographic resources to the control domain

Sun documentation suggests that we need to assign cryptographic resources to the control domain as part of the initial configuration. I searched the documentation to better understand the purpose of this and know recommendation/limitation. I am doing this for Netra T5220 and wondering if the... (5 Replies)
Discussion started by: StarSol
5 Replies

5. Programming

Interesting Problem About Incrementing ++

Here is my code: int startingPort = 200; string tempPort; stringstream out; out<<startingPort; tempPort = out.str(); //tempPort carries startingPort in string format //convert tempPort to *char - currentPort going to be passed into getaddrinfo() char currentPort;... (10 Replies)
Discussion started by: f.ben.isaac
10 Replies

6. Shell Programming and Scripting

interesting problem

Hi, I am new in this forum and I am glad to be a part of it. I have a problem that has two parts: 1/ extract just the timestamp from a filename: for example, I have a file called 'sales20080226144525.txt' and I want to extract just the '20080226144525' part out of it. 2/ Now, take that... (5 Replies)
Discussion started by: ChicagoBlues
5 Replies

7. Shell Programming and Scripting

Interesting problem

Hello, So I'm utilizing the bash brace expansion feature to checkout multiple folders from cvs with ease, while excluding certain subfolders within. So I do a command like this: cvs co trunk/{mod_a,mod_b,mod_c} \!trunk/{mod_a,mod_b,mod_c}/web to checkout modules trunk/mod_a , trunk/mod_b ,... (1 Reply)
Discussion started by: neked
1 Replies

8. SCO

I have an interesting problem and need advice

We have an inhouse built application which handles our AR function. We'd like to email statements out of the application directly. My question is this is there a good, solid, command line driven, scriptable Mail Transport Agent that would allow us to send a semi unique email (with a statement and... (1 Reply)
Discussion started by: Maldain
1 Replies

9. UNIX for Advanced & Expert Users

interesting problem

After a server reboot for regular mainatanance we face the following situation: 1/ user accounts with ksh can't start the korn shell 2/ korn shell scripts do work however, if executed from bash 3/ normal users with bash can't run ksh 4/ root can run ksh 5/ if I switch the default shell to... (3 Replies)
Discussion started by: rein
3 Replies

10. UNIX for Advanced & Expert Users

An interesting problem

hi!, here is an interesting problem ..... I ftp a file named " my first file.doc" from windows to my HP workstation. Ftp is succesful. The file appears with the same name in my home directory.. But now how do I open this file?? while using Vi or More or other editor, they take only the... (5 Replies)
Discussion started by: jyotipg
5 Replies
Login or Register to Ask a Question