unconfigure using cfgadm


 
Thread Tools Search this Thread
Operating Systems Solaris unconfigure using cfgadm
# 1  
Old 05-15-2009
Error 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 -al output

Quote:
bash-3.00# cfgadm -al
Ap_Id Type Receptacle Occupant Condition
c0 fc-fabric connected configured unknown
c0::5006016041e033a8 disk connected configured unknown
c0::5006016130206b9d disk connected configured unknown
c0::5006016830206b9d disk connected configured unknown
c1 scsi-bus connected configured unknown
c1::dsk/c1t0d0 CD-ROM connected configured unknown
c2 fc-private connected configured unknown
c2::2100000087140f53 disk connected configured failed
c2::2100000087151713 disk connected configured unknown
c3 scsi-bus connected unconfigured unknown
c4 scsi-bus connected unconfigured unknown
usb0/1 unknown empty unconfigured ok
usb0/2 unknown empty unconfigured ok
usb0/3 unknown empty unconfigured ok
usb0/4 unknown empty unconfigured ok
Quote:
picld[467]: Fault detected: DISK1
iostat -En shows the disks
Quote:
c2t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: DK32EJ72FSUN72G Revision: 2Q09 Serial No: 0340W1F62F
Size: 73.40GB <73400057856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c2t1d0 Soft Errors: 0 Hard Errors: 36 Transport Errors: 469
Vendor: HITACHI Product: DK32EJ72FSUN72G Revision: 2Q09 Serial No: 0340W1FNCZ
Size: 73.40GB <73400057856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
format
Quote:
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t5006016041E033A8d0 <drive type unknown>
/pci@8,700000/SUNW,qlc@3/fp@0,0/ssd@w5006016041e033a8,0
1. c2t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000087151713,0
2. c2t1d0 <drive not available>
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000087140f53,0
3. c5t6006016037A11600A48D3AB42A6DDC11d0 <DGC-RAID5-0224 cyl 32766 alt 2 hd 2 sec 16>
/scsi_vhci/ssd@g6006016037a11600a48d3ab42a6ddc11
c2t1d0 is failed drive.

Do I need to unconfigure drive really ? or I can just shut the machine down, take faulty one out and put the new one and reboot..I wonder if cfgadm configure will be required in this case..

Also there is VXVM and Sun cluster configured on this machine.

This is my plan of action

Quote:
metadetach -f d230 d220
metaclear d220

metadetach -f d231 d221
metaclear d221

metadetach -f d235 d225
metaclear d225

metadetach -f d236 d226
metaclear d226

metastat -p | grep c2t1d0

metadb |grep c2t1d0

metadb -d c2t1d0s7

metadb |grep c2t1d0 <-------------- I am done until this step.

cfgadm -c unconfigure c2::dsk/c2t1d0 <-------- can not do this..

Insert the new disk


cfgadm -c configure c2::dsk/c2t1d0


prtvtoc /dev/rdsk/c2t0d0s2 |fmthard -s - /dev/rdsk/c2t1d0s2


metadevadm -u c2t1d0


metadb -a -c 3 c2t1d0s7


metainit -f d220 1 1 c2t1d0s0
metattach d230 d220

metainit -f d221 1 1 c2t1d0s1
metattach d231 d221

metainit -f d225 1 1 c2t1d0s5
metattach d235 d225

metainit -f d226 1 1 c2t1d0s6
metattach d236 d226
Any ideas...
# 2  
Old 05-15-2009
I'm not sure what you are asking here.

Both of the local disks that show up in format also show up in cfgadm.
# 3  
Old 05-15-2009
Quote:
Originally Posted by reborg
I'm not sure what you are asking here.

Both of the local disks that show up in format also show up in cfgadm.
Thank you for reply, question is how to unconfigure disk from solaris 10. ( failed disk was part of SVM mirror)

If you see format closely,

Quote:
2. c2t1d0 <drive not available>
that is not normal and it was clear from metastat output that c2t1d0 had write errors.

It is mentioned somewhere that one has to unconfigure using cfgadm -c faulty disk and then put new one and then do meta attach. if this(cfgadm unconfigure / configure) step is not rquired then I don't care.

I am not able to do this step

Quote:
cfgadm -c unconfigure c2::dsk/c2t1d0
# 4  
Old 05-15-2009
In this case

c2::2100000087140f53 is your attachment point ( look at the path on the line after the disk name and compare the identifiers )
# 5  
Old 05-15-2009
Quote:
Originally Posted by reborg
In this case

c2::2100000087140f53 is your attachment point ( look at the path on the line after the disk name and compare the identifiers )
correct but then when I try,
Quote:
#cfgadm -c unconfigure c2::2100000087140f53
O/p is
cfgadm: Configuration operation not supported
# 6  
Old 05-17-2009
You can skip the cfgadm unconfigure step and proceed to pull out the disk. Nothing would happen. just run devfsadm -C after you pull out and after you put in new disk and cont with your steps.
usually cfgadm is used for scsi disks. V480 uses fcal disk if im not wrong.
# 7  
Old 05-17-2009
Also, this is not looking good though
0. c0t5006016041E033A8d0 <drive type unknown>
/pci@8,700000/SUNW,qlc@3/fp@0,0/ssd@w5006016041e033a8,0
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. 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

2. Solaris

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: # vxdisk -o alldgs list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 auto:none - - online invalid c0t1d0s2 auto:none - ... (5 Replies)
Discussion started by: masloff
5 Replies

3. 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

4. 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
Login or Register to Ask a Question