Disk replacement with svm


 
Thread Tools Search this Thread
Operating Systems Solaris Disk replacement with svm
# 1  
Old 05-18-2007
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 metadevices? and metadb's? delete them and rebuild after the disk is replaced? I thgouth there was an easier way to do it without reconfigure rebooting.


su25e1n: / # metastat -p

d100 -m d103 d113 1
d103 3 1 d102 \
1 d104 \
1 d106
d102 -p c0t11d0s0 -o 1 -b 2097152
d104 -p c0t11d0s0 -o 2097154 -b 2097152
d106 -p c0t11d0s0 -o 4194307 -b 2097152
d113 3 1 d112 \
1 d114 \
1 d116
d112 -p c0t12d0s0 -o 1 -b 2097152
d114 -p c0t12d0s0 -o 2097154 -b 2097152
d116 -p c0t12d0s0 -o 4194307 -b 2097152
su25e1n: / # echo | format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@0,0
1. c0t8d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@8,0
2. c0t9d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@9,0
3. c0t10d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@a,0
4. c0t11d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,4000/scsi@3/sd@b,0
5. c0t12d0 <drive not available: formatting>
/pci@1f,4000/scsi@3/sd@c,0
# 2  
Old 05-19-2007
I am not 100% sure about this, but you could just use metadetach to detach the d113 metadevice. Then replace the disk (you may have to recreate d113). The use metattach to recreate the mirror. The sync will be carried out by the system after the new mirror is attached.
# 3  
Old 05-19-2007
You may also need to use cfgadm or luxadm to ensure the disk is OK2RM (OK to remove) - what platform are you using (uname -i)

Cheers
ZB
# 4  
Old 05-31-2007
Quote:
Originally Posted by BG_JrAdmin
su25e1n: / # metastat -p

d100 -m d103 d113 1
d103 3 1 d102 \
1 d104 \
1 d106
d102 -p c0t11d0s0 -o 1 -b 2097152
d104 -p c0t11d0s0 -o 2097154 -b 2097152
d106 -p c0t11d0s0 -o 4194307 -b 2097152
d113 3 1 d112 \
1 d114 \
1 d116
d112 -p c0t12d0s0 -o 1 -b 2097152
d114 -p c0t12d0s0 -o 2097154 -b 2097152
d116 -p c0t12d0s0 -o 4194307 -b 2097152
su25e1n: / # echo | format
Searching for disks...done
Wow, that is a convoluted way to create a simple mirror(its not raid5 mirrored).. Why has it been setup this way ?

How did you go with your didk replacement, I hope it all went well.

If I was you I would fix that config aswell.

d102, d104 and d106 are soft partitions
d103 is a concat of these soft partitions

d112, d114 and d116 are soft partitions
d113 is a concat of these soft partitions

d100 is a mirror of d103 and d113

A better layout would be.

d100 -m d103 d113 1
d103 1 1 c0t11d0s0
d113 1 1 c0t12d0s0
Tornado
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

DISK ARRAY PROTECTION SUSPENDED message following disk replacement

Hello, On 4/20/2018, we performed a disk replacement on our IBM 8202 P7 server. After the disk was rebuilt, the SAS Disk Array sissas0 showed a status of degraded. However, the pdisks in the array all show a status of active. We did see a message in errpt. DISK ARRAY PROTECTION SUSPENDED. ... (3 Replies)
Discussion started by: terrya
3 Replies

2. Filesystems, Disks and Memory

DISK ARRAY PROTECTION SUSPENDED message displayed following disk replacement

Hello, On 4/20/2018, we performed a disk replacement on our IBM 8202 P7 server. After the disk was rebuilt, the SAS Disk Array sissas0 showed a status of degraded. However, the pdisks in the array all show a status of active. We did see a message in errpt. DISK ARRAY PROTECTION SUSPENDED. ... (1 Reply)
Discussion started by: terrya
1 Replies

3. Solaris

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: format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t0d0 <drive type unknown> ... (9 Replies)
Discussion started by: fretagi
9 Replies

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

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

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

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

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

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

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