Replacing a failed disk using SVM


 
Thread Tools Search this Thread
Operating Systems Solaris Replacing a failed disk using SVM
# 1  
Old 03-08-2017
Replacing a failed disk using SVM

Hi

Please can you help me on replacing or removing a faulty disk drive on a SUN NETRA X4250server with 4 internal drives only.

the format comand show me the following:
Code:
format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <drive type unknown>
          /pci@0,0/pci8086,25e2@2/pci8086,3500@0/pci8086,3510@0/pci1000,3150@0/sd@0,0
       1. c0t1d0 <DEFAULT cyl 36469 alt 2 hd 255 sec 63>
          /pci@0,0/pci8086,25e2@2/pci8086,3500@0/pci8086,3510@0/pci1000,3150@0/sd@1,0
       2. c0t2d0 <DEFAULT cyl 36469 alt 2 hd 255 sec 63>
          /pci@0,0/pci8086,25e2@2/pci8086,3500@0/pci8086,3510@0/pci1000,3150@0/sd@2,0
       3. c0t3d0 <DEFAULT cyl 36469 alt 2 hd 255 sec 63>
          /pci@0,0/pci8086,25e2@2/pci8086,3500@0/pci8086,3510@0/pci1000,3150@0/sd@3,0
Specify disk (enter its number): ^D
root@mhcominf01:/#

so I beleive drive 0. c0t0d0 <drive type unknown>is faulty.
Also in tail /var/adm/messagesshows:
Code:
Mar  8 10:19:46 mhcominf01 scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci8086,25e2@2/pci8086,3500@0/pci8086,3510@0/pci1000,3150@0/sd@0,0 (sd1):
Mar  8 10:19:46 mhcominf01      drive offline
Mar  8 10:23:47 mhcominf01 scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci8086,25e2@2/pci8086,3500@0/pci8086,3510@0/pci1000,3150@0/sd@0,0 (sd1):
Mar  8 10:23:47 mhcominf01      drive offline
Mar  8 10:23:57 mhcominf01 scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci8086,25e2@2/pci8086,3500@0/pci8086,3510@0/pci1000,3150@0/sd@0,0 (sd1):
Mar  8 10:23:57 mhcominf01      drive offline
Mar  8 13:45:31 mhcominf01 scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci8086,25e2@2/pci8086,3500@0/pci8086,3510@0/pci1000,3150@0/sd@0,0 (sd1):
Mar  8 13:45:31 mhcominf01      drive offline
Mar  8 13:45:41 mhcominf01 scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci8086,25e2@2/pci8086,3500@0/pci8086,3510@0/pci1000,3150@0/sd@0,0 (sd1):
Mar  8 13:45:41 mhcominf01      drive offline

this confims that the disk is faulty.
metastatshows:
Code:
 metastat
d30: Mirror
    Submirror 0: d32
      State: Needs maintenance
    Submirror 1: d31
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 459940950 blocks (219 GB)

d32: Submirror of d30
    State: Needs maintenance
    Invoke: metareplace d30 c0t2d0s3 <new device>
    Size: 459940950 blocks (219 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c0t2d0s3          0     No     Maintenance   Yes


d31: Submirror of d30
    State: Okay
    Size: 459940950 blocks (219 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c0t1d0s3          0     No            Okay   Yes


d20: Mirror
    Submirror 0: d22
      State: Needs maintenance
    Submirror 1: d21
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 20980890 blocks (10 GB)

d22: Submirror of d20
    State: Needs maintenance
    Invoke: metareplace d20 c0t2d0s1 <new device>
    Size: 20980890 blocks (10 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c0t2d0s1          0     No     Maintenance   Yes


d21: Submirror of d20
    State: Okay
    Size: 20980890 blocks (10 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c0t1d0s1          0     No            Okay   Yes


d10: Mirror
    Submirror 0: d12
      State: Needs maintenance
    Submirror 1: d11
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 41945715 blocks (20 GB)

d12: Submirror of d10
    State: Needs maintenance
    Invoke: after replacing "Maintenance" components:
                metareplace d10 c0t2d0s0 <new device>
    Size: 41945715 blocks (20 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c0t2d0s0          0     No      Last Erred   Yes


d11: Submirror of d10
    State: Needs maintenance
    Invoke: metasync d10
    Size: 41945715 blocks (20 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c0t1d0s0          0     No       Resyncing   Yes


Device Relocation Information:
Device   Reloc  Device ID
c0t2d0   Yes    id1,sd@n5000c5003a470243
c0t1d0   Yes    id1,sd@n5000c500741f132b
root@mhcominf01:/#

from the following command:
Code:
 metastat -c
d30              m  219GB d32 (maint) d31
    d32          s  219GB c0t2d0s3 (maint)
    d31          s  219GB c0t1d0s3
d20              m   10GB d22 (maint) d21
    d22          s   10GB c0t2d0s1 (maint)
    d21          s   10GB c0t1d0s1
d10              m   20GB d12 (maint) d11 (maint)
    d12          s   20GB c0t2d0s0 (last-erred)
    d11          s   20GB c0t1d0s0 (resyncing

I beleive now I have to use the following:
Code:
metadetach d30 d32

Code:
metadetach d20 d22

From now on I am not quite what the following steps.
Please can you help
# 2  
Old 03-08-2017
The "last Erred" means the d10 mirror is already degraded, and can have all types of data corruption.
I have no experience how to go from there. Hope you have a good data backup.
# 3  
Old 03-11-2017
Can you show the metadb command?

Last edited by Don Cragun; 03-28-2017 at 01:27 AM.. Reason: Add ICODE tags.
# 4  
Old 03-13-2017
sorry for the late reply:

Code:
 metadb
        flags           first blk       block count
     a m  p  luo        16              8192            /dev/dsk/c0t1d0s5
     a    p  luo        8208            8192            /dev/dsk/c0t1d0s5
     a    p  luo        16400           8192            /dev/dsk/c0t1d0s5
     a    p  luo        16              8192            /dev/dsk/c0t2d0s5
     a    p  luo        8208            8192            /dev/dsk/c0t2d0s5
     a    p  luo        16400           8192            /dev/dsk/c0t2d0s5
root@mhcominf01:/#

# 5  
Old 03-13-2017
Do you have the bad disk still in?
Do you have a new disk already?
This link seems to be okay for Solaris 10.
Read it twice (at least)!
# 6  
Old 03-13-2017
Yes, I still have a bad disk, but at the moment I dont have a new disk. I am stuck on the line that says that I have to remove any metadb on the failed disk!
How to identify the metadb on the failed disk. the failed disk is c0t0d0but the metadb command shows the following:
Code:
 metadb
        flags           first blk       block count
     a m  p  luo        16              8192            /dev/dsk/c0t1d0s5
     a    p  luo        8208            8192            /dev/dsk/c0t1d0s5
     a    p  luo        16400           8192            /dev/dsk/c0t1d0s5
     a    p  luo        16              8192            /dev/dsk/c0t2d0s5
     a    p  luo        8208            8192            /dev/dsk/c0t2d0s5
     a    p  luo        16400           8192            /dev/dsk/c0t2d0s5
root@mhcominf01:/#

this does not show c0t0d0
Please help
# 7  
Old 03-14-2017
Your c0t0d0 is not part of the SVM setup so therefore you don't need to remove it from SVM. But it may be part of dump device or swap, do dumpadm or swap -l

For your SVM devices:

1. metareplace -e d30 c0t2d0s3
2. metareplace -e d20 c0t2d0s1
3. metareplace -e d10 c0t2d0s0
4. metasync d10
5. metastat -c

Last edited by Don Cragun; 03-28-2017 at 01:37 AM.. Reason: Add ICODE tags.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Replacing a Disk in a ODS/SVM Mirror

Hi All BAsed on the below I would like to verifu two things (1) The udnerlying mirroris for '/mnt' na dit onlcy contaisne 1 sub-mirror, with one sliceon is one disk and hence, data loss on the mount point (the mount point, '/mnt' is backed up) (2) the Procedure for renewal # df -kh /mnt... (2 Replies)
Discussion started by: stevie_velvet
2 Replies

2. Solaris

Root disk mirroring in SVM

I tried doing rootdisk mirroring in my local host , i added a new Ide disk in my system and copied the prtvtoc from root disk to the newly added disk, and then when i tried to add database replicas on both the disks, it was added for boot disk but for the newly added disk i gave the error, which... (6 Replies)
Discussion started by: Laxxi
6 Replies

3. Solaris

Replacing a hard disk (SVM) with a soft partition?

The following is the summarry:- 1) Four disks in server ie (c1t0d0. c1t1d0, c1t2d0, c1t3d0). c1t2d0 is the disk to be replaced. c1t0d0 and c1t2d0 are mirrors. c1t1d0 and c1t3d0 are mirrors. Metadb to be deleted is in c1t2d0s7 a) Mirror d35 has 2 submirrors d38 and d39 d38 is a stripe... (0 Replies)
Discussion started by: aji1729
0 Replies

4. Solaris

Root Disk mirroring in SVM

Dear All, Please help me to configure root mirroring using SVM in Solaris 9. Thanks and Regards, Lakkireddy BR (3 Replies)
Discussion started by: lbreddy
3 Replies

5. Solaris

Command to find the failed disks in SVM and VxVM

How to find & replace bad disks in solaris & VXVM?plz explain step by step? (2 Replies)
Discussion started by: xtreams
2 Replies

6. Solaris

Disk space missing under SVM

Hi Gurus, I've got an issue here: (1) Hardware: Sun NetraT1, (2) OS: Solaris 10, (3) SVM metastat shows /var having 12 GB. df shows /var having 4 GB. Real space for /var is about 4 GB since I can't move a big file to it. How is 8 GB space missing? Does /var/run swap need to account? Can I... (5 Replies)
Discussion started by: aixlover
5 Replies

7. Solaris

mirroring root disk using svm - but no free slices for metadb's

Hi all, we have an existing system that was configured using just one of the (two) internal disks. I want to mirror the disk using SVM, but have realised there is no free slice for creating the metadb's. Is there a workaround I can use for this? In the past we have always kept slice 7 free -... (8 Replies)
Discussion started by: badoshi
8 Replies

8. Solaris

Removing Disk from SVM

Hi All, I have to remove the disk from SVM. Kindly guide me or suggest me some link where in I can steps to remove SVM from Solaris 10 .Also I have one metaset which require deletion. Thanks in anticipation! (10 Replies)
Discussion started by: kumarmani
10 Replies

9. Solaris

Disk Replacement SVM

Hello, Can someone advise the proper procedure for replacing a mirrored disk in SVM. I have checked the docs and various websites but the procedure seems to vary. This is what I would do... 1. Remove the db replicas from the bad disk. 2. Detach it from the mirror 3. Clear it with... (4 Replies)
Discussion started by: Actuator
4 Replies

10. Solaris

Disk replacement with svm

I dont even know what raid level this is, but its raid 5 mirrored from the looks of it. I have a failed disk (t12) within this mirror. What is the best way to replace this disk? 2 things concern me, isn't there a command to prepare the disk for a hot swap? and what should i do with the... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies
Login or Register to Ask a Question