Remove old subpaths from vxvm/format/cfgadm


 
Thread Tools Search this Thread
Operating Systems Solaris Remove old subpaths from vxvm/format/cfgadm
# 1  
Old 04-15-2011
Remove old subpaths from vxvm/format/cfgadm

Hi, I`m having a server, that was initially having 2 HBA`s, and dmpnodes were creates with 2 subpaths:
Code:
# vxdisk -o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
c0t0d0s2     auto:none       -            -            online invalid
c0t1d0s2     auto:none       -            -            online invalid
c0t2d0s2     auto:none       -            -            online invalid
c0t3d0s2     auto:none       -            -            online invalid
c2t5006048452A724A7d37s2 auto:cdsdisk    emc1         B08  online
c2t5006048452A724A7d38s2 auto:cdsdisk    emc2         V01  online
c2t5006048452A724A7d39s2 auto:cdsdisk    emc02F2      D43  online
....

one HBA died/offlined
Code:
bash-3.00# luxadm -e port
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0:devctl      CONNECTED
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1,1/fp@0,0:devctl    NOT CONNECTED
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@2/fp@0,0:devctl      NOT CONNECTED
/devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@2,1/fp@0,0:devctl    NOT CONNECTED
bash-3.00# vxdmpadm getsubpaths dmpnodename=c2t5006048452A724A7d37s2
NAME         STATE[A]   PATH-TYPE[M] CTLR-NAME  ENCLR-TYPE   ENCLR-NAME    ATTRS
================================================================================
c2t5006048452A724A7d37s2 ENABLED(A)   -          c2         EMC          EMC0             -
c4t5006048452A72498d37s2 DISABLED     -          c4         EMC          EMC0             -

I still have those dead subpaths in format/cfgadm

Code:
# cfgadm -al -o show_SCSI_LUN
Ap_Id                          Type         Receptacle   Occupant     Condition
c2                             fc-fabric    connected    configured   unknown
c2::5006048452a724a7,32        disk         connected    configured   unknown
c2::5006048452a724a7,33        disk         connected    configured   unknown
c2::5006048452a724a7,37        disk         connected    configured   unknown
c2::5006048452a724a7,38        disk         connected    configured   unknown
c2::5006048452a724a7,39        disk         connected    configured   unknown
c2::5006048452a724a7,74        disk         connected    configured   unknown
c2::5006048452a724a7,75        disk         connected    configured   unknown
c2::5006048452a724a7,76        disk         connected    configured   unknown
c2::5006048452a724a7,77        disk         connected    configured   unknown
c2::5006048452a724a7,78        disk         connected    configured   unknown
c2::5006048452a724a7,79        disk         connected    configured   unknown
c2::5006048452a724a7,105       disk         connected    configured   unknown
c2::5006048452a724a7,106       disk         connected    configured   unknown
c3                             fc           connected    unconfigured unknown
c4                             fc-fabric    connected    configured   unknown
c4::5006048452a72498,32        disk         connected    configured   failing
c4::5006048452a72498,33        disk         connected    configured   unusable
c4::5006048452a72498,37        disk         connected    configured   failing
c4::5006048452a72498,38        disk         connected    configured   failing
c4::5006048452a72498,39        disk         connected    configured   failing
c4::5006048452a72498,74        disk         connected    configured   failing
c4::5006048452a72498,75        disk         connected    configured   failing
c4::5006048452a72498,76        disk         connected    configured   failing
c4::5006048452a72498,77        disk         connected    configured   failing
c4::5006048452a72498,78        disk         connected    configured   failing
c4::5006048452a72498,79        disk         connected    configured   failing
c4::5006048452a72498,105       disk         connected    configured   failing
c4::5006048452a72498,106       disk         connected    configured   failing

Code:
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@780/pci@0/pci@9/scsi@0/sd@0,0
       1. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@780/pci@0/pci@9/scsi@0/sd@1,0
       2. c0t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@780/pci@0/pci@9/scsi@0/sd@2,0
       3. c0t3d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@780/pci@0/pci@9/scsi@0/sd@3,0
       4. c2t5006048452A724A7d32 <EMC-SYMMETRIX-5771 cyl 36862 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,20
       5. c2t5006048452A724A7d33 <EMC-SYMMETRIX-5771 cyl 36862 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,21
       6. c2t5006048452A724A7d37 <EMC-SYMMETRIX-5771 cyl 36862 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,25
       7. c2t5006048452A724A7d38 <EMC-SYMMETRIX-5771 cyl 36862 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,26
       8. c2t5006048452A724A7d39 <EMC-SYMMETRIX-5771 cyl 36862 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,27
       9. c2t5006048452A724A7d74 <EMC-SYMMETRIX-5771 cyl 36862 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,4a
      10. c2t5006048452A724A7d75 <EMC-SYMMETRIX-5771 cyl 36862 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,4b
      11. c2t5006048452A724A7d76 <EMC-SYMMETRIX-5771 cyl 27619 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,4c
      12. c2t5006048452A724A7d77 <EMC-SYMMETRIX-5771 cyl 27619 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,4d
      13. c2t5006048452A724A7d78 <EMC-SYMMETRIX-5771 cyl 27619 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,4e
      14. c2t5006048452A724A7d79 <EMC-SYMMETRIX-5771 cyl 27619 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,4f
      15. c2t5006048452A724A7d105 <EMC-SYMMETRIX-5771 cyl 27619 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,69
      16. c2t5006048452A724A7d106 <EMC-SYMMETRIX-5771 cyl 27619 alt 2 hd 15 sec 128>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w5006048452a724a7,6a
      17. c4t5006048452A72498d32 <drive not available>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@2/fp@0,0/ssd@w5006048452a72498,20
      18. c4t5006048452A72498d37 <drive not available>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@2/fp@0,0/ssd@w5006048452a72498,25
      19. c4t5006048452A72498d38 <drive not available>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@2/fp@0,0/ssd@w5006048452a72498,26
      20. c4t5006048452A72498d39 <drive not available>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@2/fp@0,0/ssd@w5006048452a72498,27
      21. c4t5006048452A72498d74 <drive not available>
          /pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@2/fp@0,0/ssd@w5006048452a72498,4a
...

Question is - how can I get rid of dead subpaths in vxdmpadm output and how to get rid of them in cfgadm/format output?

What I already tried:
Code:
luxadm -e offline /dev/rdsk/c4t5006048452A72498d106
cfgadm -c unconfigure c4::dsk/5006048452a72498,106
luxadm -e forcelip /dev/cfg/c4
devfsadm -Cv
cfgadm -c unconfigure -o unusable_SCSI_LUN c4::5006048452a72498,106

No joy.

Anyone?
# 2  
Old 04-15-2011
susheel

once check the disk controller if they are enable then go for the diskunsetup and setup then after try for vxdisk scandisks after that its not an real time sugestable command it restarts the daemon(vxconfigd -k)
# 3  
Old 04-16-2011
Two things you need to do

1. copy the /etc/vx/vxdmpexclude to as vxdmpexclude.old and /etc/vx/vxvmexclude as vxvmexclude.old
2.Go to vxdiskadm menu and choose option 17 (i believe)

then run vxconfigd -k
# 4  
Old 04-18-2011
Hmm, this is a prod system, so I`m not very sure I can run mentioned commands without minor outages.

Is restarting of vxconfigd safe? Also, restarting of it will remove devnodes from /dev ?
# 5  
Old 04-18-2011
masloff,

Does it hosts any clusters or only the VxVM
# 6  
Old 04-26-2011
Yes, this host is a part of VCS; anyway, we decided not to spend too much time on this one, and wait for opportunity to restart.

Thanks anyone!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

VXVM in POWERHA 6.1

I have created a VxVM disk group in AIX7.1. I have tried to added this VxVM disk group in powerHA 6.1. But in cluster VxVM DGs are not listing. Is there any other procedure to add vxvm diskgroup to hacmp. Please share me steps for adding vxvm diskgroup to hacmp. (6 Replies)
Discussion started by: sunnybee
6 Replies

2. Solaris

Fsck in vxvm

Hi, When we are running fsck in vxvm FS within few sec it will completed even if data is more than 500GB or in TB also. compare to UFS FS in that it will take more time compare with vxvm.UFS check FS in block level. & then vvxm on where its checking the FS. Please explain. (1 Reply)
Discussion started by: tiger09
1 Replies

3. Emergency UNIX and Linux Support

VxVM not able to see new disk

I have VxVM 5.1 running on Solaris-10. I have to increase a application file-system and storage team gave me a lun. After scanning scsi port by cfgadm, I can see them in format output. I labelled it, but I am not able to see them in "vxdisk list". I already tried commands --> vxdctl enable... (4 Replies)
Discussion started by: solaris_1977
4 Replies

4. Solaris

Hot swapping disks on V240 - blue light not lit after cfgadm -c unconfigure

Hot swapping a drive on V240. So, I do cfgadm -c unconfigure <disk>. Then cfgadm -al reports disk as unconfigured as expected. format then tells me there is no disk. BUT, blue light does not come on. Done the exact same command on my V440 and blue light does come on. V240 Server Admin... (0 Replies)
Discussion started by: psychocandy
0 Replies

5. Solaris

vxvm

hi all, how can we check whether vxvm is installed in our system or not in solaris? Thanks in advance dinu (4 Replies)
Discussion started by: dinu
4 Replies

6. Solaris

Issue with cfgadm

I have an issue with on T3-Lun where Veritas dont like it anymore and OS-system have issues with it too. So I thought to unconfigure it but even that does not work cfgadm -al | grep c17 c17::50020f230000eae0 disk connected unconfigured unkown then I tried a cfgadm -c unconfigure... (2 Replies)
Discussion started by: manni2
2 Replies

7. Solaris

cfgadm - is this an error?

# cfgadm -al Ap_Id Type Receptacle Occupant Condition c0 scsi-bus connected configured unknown c0::dsk/c0t0d0 CD-ROM connected configured unknown c1 scsi-bus ... (8 Replies)
Discussion started by: robsonde
8 Replies

8. Solaris

unconfigure using cfgadm

Hi, One of 2 local disks on V480 running solaris 10 and SVM failed. Now after running metadettach for submirrors on that disk, I want to unconfigure the FAULTY disk using cfgadm -c uncofigure command..and then put new one and configure that. but surprisingly I don't see local dsk in cfgadm... (17 Replies)
Discussion started by: upengan78
17 Replies

9. Solaris

VxVM softpartitions

Is there a way to create "softpartitions" with Veritas Volume Manager? I have a bunch of disks and i want to create a RAID 5 with them. On that RAID5, i want to split that RAID into two separated file systems like i could do it with SDS/LVM or ZFS, but i don't want to create two RAID5 in the... (3 Replies)
Discussion started by: pressy
3 Replies

10. Solaris

VxVM

All solaris rescue gurus out there .... I've a Solaris 2.6 E450 on which my sysadmin guy has deleted every file (not sub-directories) from the /etc directory. The machine is (was) running Vxvm with the root volume encapsulated. I've tried booting from CDROM, mounting the root volume... (3 Replies)
Discussion started by: andy11983
3 Replies
Login or Register to Ask a Question