Reset MPxIO total path count


 
Thread Tools Search this Thread
Operating Systems Solaris Reset MPxIO total path count
# 1  
Old 07-02-2018
Reset MPxIO total path count

We recently moved our netapp disks onto new infrastructure by attaching the new controllers to our fibre switch and netapp migrating the disks. Disks kept the same address. We originally had 4 paths, but after attaching the new controllers we had 8. Now I want to remove the old paths. But can't. I have unconfigured the remote ports eg:
Code:
cfgadm -c unconfigure c7::200700a0985d435a

I have disable the ports on the fibre switch. But it still shows 8 paths.
Code:
mpathadm list lu 
/dev/rdsk/c8t600A0980383034566824487668336B66d0s2
                Total Path Count: 8
                Operational Path Count: 4

Code:
 mpathadm show lu /dev/rdsk/c8t6xxx

show the path state as unknown.

Code:
luxadm display /dev/dsk/c8t6xxx

only shows the 4 new controllers

Any way to clean this up without a reboot ??
Moderator's Comments:
Mod Comment To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)


Last edited by Don Cragun; 07-02-2018 at 03:30 AM.. Reason: Add CODE tags again.
# 2  
Old 07-02-2018
Try the following commands :
Code:
cfgadm -c unconfigure -o unusable_SCSI_LUN c7::200700a0985d435a
devfsadm -Cv # to remove unconfigured disks from the system

Check mpathadm output, if this doesn't work, a reboot always should Smilie

Can you post entire output of
Code:
cfgadm -al

Do notice that even if mpathadm shows 8 paths, only 4 are operational and in use.
So, it has no effect on the system, except displaying data.

Regards
Peasant.

Last edited by Peasant; 07-03-2018 at 09:14 AM.. Reason: Typo fix, thx hicksd
These 2 Users Gave Thanks to Peasant For This Post:
# 3  
Old 07-03-2018
DISREGARD THIS POST. PEASANT HAS CORRECTED TYPO.

@Peasant......Good post but isn't that a typo??? Shouldn't 'devsadm' be 'devfsadm'??

Last edited by hicksd8; 07-03-2018 at 11:22 AM..
This User Gave Thanks to hicksd8 For This Post:
# 4  
Old 07-04-2018
Before :
Code:
c2::200500a0985d435a           disk         connected    configured   unusable
c2::200900a0985d435a           disk         connected    configured   unusable
c2::201100a0985d435a           disk         connected    configured   unknown
c2::201300a0985d435a           disk         connected    configured   unknown
c3                                       fc-fabric    connected    configured   unknown
c3::200300a0985d435a           disk         connected    configured   unusable
c3::200700a0985d435a           disk         connected    configured   unusable
c3::201000a0985d435a           disk         connected    configured   unknown
c3::201200a0985d435a           disk         connected    configured   unknown

After
Code:
cfgadm -c unconfigure -o unusable_SCSI_LUN c7::200300a0985d435a

Code:
c2::201100a0985d435a           disk         connected    configured   unknown
c2::201300a0985d435a           disk         connected    configured   unknown
c3                                       fc-fabric    connected    configured   unknown
c3::201000a0985d435a           disk         connected    configured   unknown
c3::201200a0985d435a           disk         connected    configured   unknown

Ran devfsadm -C and every variable of cfgadm -c unconfigure.
Still shows the total path count as 8.
Looks like a reboot will be the only option.
No biggy. Just being pedantic.

Thanks for the replies.
# 5  
Old 07-05-2018
Hmmmm.....well I reckon that, if you know the node names of the redundant devices, you could delete them from /dev/dsk, /dev/rdsk and /dev/cfg

You might need to use:

Code:
# rm -f <full device path>

to achieve that.

You can certainly do that with normal local disk nodes. Can anyone else confirm whether I'm correct with regards FC drives?
# 6  
Old 07-05-2018
I would advise against manual intervention using rm.
It is possible and doable, but i advise against it.
Margin for error is just to great.

There is no harm, and next reboot should clean up everything.

Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Consecutive count and reset in awk

I have the following file: A1 4.5807 6.4202 B1 2.5704 11.4414 C1 5.5607 5.28872 D1 3.5807 8.2132 E1 3.2206 9.13153 F1 3.0907 9.51532 G1 3.2707 8.99165 H1 2.4607 11.9515 A2 2.5505 11.5307 B2 2.3106 12.7279 C2 3.8507 7.63731 D2 2.6208 11.2214 E2 2.7609 10.652 F2 2.0604 14.2734 G2... (2 Replies)
Discussion started by: Xterra
2 Replies

2. Shell Programming and Scripting

Count total duplicates

Hi all, I have found another post threads talking about count duplicate lines, but I am interested in obtain the total number of duplicates. For example: #file.txt a1 a2 a1 a3 a1 a2 a4 a5 #out 3 (lines are duplicates) Thank you! (12 Replies)
Discussion started by: mikloz
12 Replies

3. UNIX for Dummies Questions & Answers

In ls -l remove total count

Hi All, When i give ls -ltr i get 'total 10' like this along with files long listing. is there any option in ls command to remove this line or do we need use head -1 command only. $ls -ltr total 45 -rw-r--r-- 1 abc g1 0 Jul 17 07:20 0 -rw-r--r-- 1 abc g1 744 May 9 12:10 a -rw-r--r--... (1 Reply)
Discussion started by: HemaV
1 Replies

4. Solaris

Reset failed login count

Hi, Can someone tell me the command to do this in solaris 5.10 please? I've trawled around the internet for ages but all I can find is the AIX command... Thanks (2 Replies)
Discussion started by: Grueben
2 Replies

5. Shell Programming and Scripting

total count of a word in the files

Hi Friends, Need help regarding counting the word "friend" in files test1.txt and test2.txt. ( there is no gap/space between word ) cat test1.txt himynameisrajandiamfriendofrajeshfriend wouldyouliketobemyfriend. cat test2.txt himynameisdostandiamfriendofdostfriend... (2 Replies)
Discussion started by: forroughuse
2 Replies

6. Solaris

Solaris 10 + mpxio Path

Hi, I have an Oracle/Sun T3-2 Server with a duel SAS controller Fujitsu DX60 array attached. I have 2 x SAS HBA's in the T3-2. One HBA cabled to CM0 and one HBA cabled to CM1 of the array. The array is setup with one RAID GROUP and one VOLUME and one LUN In Solaris I can see one device... (4 Replies)
Discussion started by: general_lee
4 Replies

7. Shell Programming and Scripting

Total Count using AWK

Hi Everybody, I have the following example file... 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1... (8 Replies)
Discussion started by: sraj142
8 Replies

8. Solaris

Solaris 10 MPXIO doesn't recover path failure

I have been running some tests with solaris mpxio, dual-pathed to HDS SAN storage. When I take a path offline, Solaris recognised this and a path is shown as offline in luxadm display <device>. However, it does not recover on reinstatement of the path until I run cfgadm -al. Any ideas? Phil (3 Replies)
Discussion started by: UKPhil
3 Replies

9. Shell Programming and Scripting

Bogus Total count

I have a shell script that I am pulling different zip file packages and totaling how many of each type of package is in the directory. I get a bogus total count of one in the middle of my output file (highlighted in RED) and not sure why, also would like to get a grand total of all files but not... (2 Replies)
Discussion started by: freddie999
2 Replies
Login or Register to Ask a Question