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