Wrap Plug Test


 
Thread Tools Search this Thread
Operating Systems AIX Wrap Plug Test
# 1  
Old 02-05-2009
Wrap Plug Test

Can someone show me on how to use DIAG command in doing a wrap plug test for fcs0 (FC Adapter)?
# 2  
Old 02-05-2009
OK, simple question but it gets heavy after the first bit:

diag
advanced diags
system verification
highlight / select fcs0
press enter and a + will show next to it
press F7 / Esc +7 to run the test
It should prompt you to unplug the fibre / plug in the wrap plug

This will probably fail because the device is in use - otherwise how would you think there was a problem with it?

rmpath all paths on the device if it has multipath devices attached.
varyoff all associated vgs if they are not multipathed.
you might also need to rmdev all disks on the adapter

Then you should be able to run the wrap tests.

Now I'll ask the important questions:
What is the current configuration of the adapter and why do you think you want to run a wrap test?

Why do you think there is a problem with the adapter?

What is it / do you think it is connected to?

Is this a new installation / SAN connection?

What do the lights on the adapter show?

What do the lights on the swith show?

What type of switch is it?

What is the firmware level of the switch?

What back end devices are presented to the adapter?

Please also post the output of:
lscfg -vl fcs0
lsattr -El fcs0
lsattr -El fscsi0

HTH

Last edited by dukessd; 02-05-2009 at 09:52 PM.. Reason: added a t to the end of the word firs on the first lene - see, I can spell first! oh no, I've miwss-typewd line now, ahh!
# 3  
Old 02-07-2009
Thanks for the instructions!

Basically "pcmpath query device" shows failed hdisks along one adapter path (was okay before). The cabling from adapter to switch has been tested and the switch port has been tested - both OK. No firmware upgrades have been done, no SAN config changes have been done.

Apparently, the right green LED is flashing and the left amber link LED is off.

Unfortunately, I do not have access to any info beyond the FC Adapter (different teams manage it).

Will provide the output requested in next post soon...
# 4  
Old 02-07-2009
Part Number.................03N6441

# lsmcode -A
...
fcs0!df1000fa.190313
fcs1!df1000fa.190313

Code:
# lsattr -El fcs0
bus_intr_lvl  311        Bus interrupt level                                False
bus_io_addr   0xdfc00    Bus I/O address                                    False
bus_mem_addr  0xe8040000 Bus memory address                                 False
init_link     al         INIT Link flags                                    True
intr_priority 3          Interrupt priority                                 False
lg_term_dma   0x800000   Long term DMA                                      True
max_xfer_size 0x100000   Maximum Transfer Size                              True
num_cmd_elems 200        Maximum number of COMMANDS to queue to the adapter True
pref_alpa     0x1        Preferred AL_PA                                    True
sw_fc_class   2          FC Class for Fabric                                True

# lsattr -El fscsi0
attach       switch       How this adapter is CONNECTED         False
dyntrk       no           Dynamic Tracking of FC Devices        True
fc_err_recov delayed_fail FC Fabric Event Error RECOVERY Policy True
scsi_id      0x770e13     Adapter SCSI ID                       False
sw_fc_class  3            FC Class for Fabric                   True

Appears the wrap test has resolved the issue (it might be the fact that the cable was simply pulled out then put back in). No config changes were done, no reboots, just wrap test. Path is back up.

I probably should've mentioned before ... this path went down when a power outage happened on the switch, however, the path should've come back up once switch came back online.

So series of events:

1. Power OFF to switch attached to fcs0.
2. Power ON to switch attached to fcs0.
<expected path to be back up, ran cfgmgr, chpath -l hdiskX -s enable -p fscsi0, pcmpath set device X path 0 online ... no luck bringing hdiskX's back online>
3. Switch ports and cabling checked - all OK.
4. Wrap test on fcs0
5. Everything back online.

The team/vendor that checked things on step 3 mentioned:
Many times I have seen that simply running the wrap test will reset the port and path may be alright after that.

Which turned out to be true in this case. Sounds like some AIX issue?

Anyway, all good now Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Word Wrap

When I cat a file that has several hundred characters in a line, the right hand side is truncated. How can I make everything displayed on my screen word wrap? (6 Replies)
Discussion started by: bsimon
6 Replies

2. UNIX for Dummies Questions & Answers

How to wrap words in vi?

I just typed several long lines into vi but I only want it to have 80 columns. How can I set this in vi? (3 Replies)
Discussion started by: guitarscn
3 Replies

3. Shell Programming and Scripting

How to check weather a string is like test* or test* ot *test* in if condition

How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies

4. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

5. Shell Programming and Scripting

Word wrap with sed

Hi, I got some timetable in a file but it is all mixed up like this 01:00 hgrtwhrt #104:00 tyergethr05:00 tqqrthd qrth #107:00 qhtrhqerth10:00 qerthrthqr qtrqthr qthrrt11:00 thqrthqrthrr rthgreth #212:00 trhrthrth14:00 wrthwrtwrqrthwrthwr #2116:00 trqhthtr: rthrthr17:00 rtwhtrhwrth rthwrt... (6 Replies)
Discussion started by: stinkefisch
6 Replies

6. Shell Programming and Scripting

Wrap Interactive Script

Does anyone know of a program to wrap an interactive script into an application..I tried using platypus but i want a utility to allow interactive scripts to be run in a stand-alone window to avoid .profile settings on multiple computers...platypus provides the option of a text window output but... (0 Replies)
Discussion started by: meskue
0 Replies

7. UNIX for Dummies Questions & Answers

word wrap in vi

I am using vi to edit shell scripts, but whenever I get to the end of the line it goes to the next line, and when I run the script it considers whatever was placed onthe next line a new command...I guess this has to do with word wrap- how do I continue to write on one line? (3 Replies)
Discussion started by: dangral
3 Replies
Login or Register to Ask a Question