unconfigure using cfgadm | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

unconfigure using cfgadm

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-15-2009
upengan78 upengan78 is offline
Registered User
 
Join Date: Jun 2008
Last Activity: 5 September 2012, 2:35 PM EDT
Location: Texas
Posts: 206
Thanks: 6
Thanked 1 Time in 1 Post
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...
Sponsored Links
    #2  
Old 05-15-2009
reborg's Avatar
reborg reborg is offline Forum Advisor  
Administrator Emeritus
 
Join Date: Mar 2005
Last Activity: 29 March 2012, 7:00 PM EDT
Location: Ireland
Posts: 4,464
Thanks: 0
Thanked 11 Times in 11 Posts
I'm not sure what you are asking here.

Both of the local disks that show up in format also show up in cfgadm.
Sponsored Links
    #3  
Old 05-15-2009
upengan78 upengan78 is offline
Registered User
 
Join Date: Jun 2008
Last Activity: 5 September 2012, 2:35 PM EDT
Location: Texas
Posts: 206
Thanks: 6
Thanked 1 Time in 1 Post
Quote:
Originally Posted by reborg View Post
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
reborg's Avatar
reborg reborg is offline Forum Advisor  
Administrator Emeritus
 
Join Date: Mar 2005
Last Activity: 29 March 2012, 7:00 PM EDT
Location: Ireland
Posts: 4,464
Thanks: 0
Thanked 11 Times in 11 Posts
In this case

c2::2100000087140f53 is your attachment point ( look at the path on the line after the disk name and compare the identifiers )
Sponsored Links
    #5  
Old 05-15-2009
upengan78 upengan78 is offline
Registered User
 
Join Date: Jun 2008
Last Activity: 5 September 2012, 2:35 PM EDT
Location: Texas
Posts: 206
Thanks: 6
Thanked 1 Time in 1 Post
Quote:
Originally Posted by reborg View Post
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
Sponsored Links
    #6  
Old 05-17-2009
incredible incredible is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 24 August 2014, 5:15 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
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.
Sponsored Links
    #7  
Old 05-17-2009
incredible incredible is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 24 August 2014, 5:15 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
Also, this is not looking good though
0. c0t5006016041E033A8d0 <drive type unknown>
/pci@8,700000/SUNW,qlc@3/fp@0,0/ssd@w5006016041e033a8,0
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -4. The time now is 11:57 PM.