SVM, mirroring


 
Thread Tools Search this Thread
Operating Systems Solaris SVM, mirroring
# 1  
Old 07-02-2009
Question SVM, mirroring

Really sorry for the long posting. But i would really want to clear all the doubts.

I have 2 disk c0t0d0 & c0t1d0, i wanted to mirror c0t1d0 (mirror) to c0t0d0 (main).

Creating state database replica:
metadb -a -c3 -f c0t0d0s7

------------------------------------------------------------------
Question:
1. Should i create the state database replica on c0t0d0s7 or c0t1d0s7?
2. Should i create all the replicas on the same slice?
------------------------------------------------------------------

Creating volumes:
metainit -f d11 1 1 c0t0d0s1
metainit -f d12 1 1 c0t1d0s1

Creating one-way mirror:
metainit d10 -m d11

Creating two-way mirror:
metattach d10 d12

------------------------------------------------------------------
Question:
1. Does the above command means that d11(c0t0d0s1) is two-way mirrored to d12(c0t1d0s1)?
2. Should i create mirror and volumes on all the 8 slices (s0-s7)?
3. Is it creating two-way mirror means that when i delete something on the main/mirror volume, the other volume will also do the same?
------------------------------------------------------------------

This is my understanding from reading through the webs. If i get it all wrong, please kindly point out my mistake.

Thanks in advance for reading or solving the thread.
# 2  
Old 07-02-2009
Quote:
Originally Posted by beginningDBA
Really sorry for the long posting. But i would really want to clear all the doubts.

I have 2 disk c0t0d0 & c0t1d0, i wanted to mirror c0t1d0 (mirror) to c0t0d0 (main).

Creating state database replica:
metadb -a -c3 -f c0t0d0s7

------------------------------------------------------------------
Question:
1. Should i create the state database replica on c0t0d0s7 or c0t1d0s7?
2. Should i create all the replicas on the same slice?
------------------------------------------------------------------
1. Create state database replicas on both disks, 2 on each would be enought.
2. Yes. But it must be unused slice.

Quote:
Originally Posted by beginningDBA
Creating volumes:
metainit -f d11 1 1 c0t0d0s1
metainit -f d12 1 1 c0t1d0s1

Creating one-way mirror:
metainit d10 -m d11

Creating two-way mirror:
metattach d10 d12

------------------------------------------------------------------
Question:
1. Does the above command means that d11(c0t0d0s1) is two-way mirrored to d12(c0t1d0s1)?
2. Should i create mirror and volumes on all the 8 slices (s0-s7)?
3. Is it creating two-way mirror means that when i delete something on the main/mirror volume, the other volume will also do the same?
------------------------------------------------------------------
1. It means that d10 is two-way mirror with submirrors: d11 and d12.
2. Depends what you want to do. Besides you can't mirror all slices, as 1 slice on each disk need to hold state database replicas, but remaining 7 slices can be mirrored if you require that in your setup.
3. You can't delete something from mirror, you only see main device (d10) which is going to be mounted in your system, and system will manage all operations on the submirrors. When you do any operation on d10, both submirrors receive same operation. If you would try manipulating submirrors (like mounting d11 and changing it) it would damage your data, but I guess system should be able to recover from that, anyway don't edit submirrors.

Quote:
Originally Posted by beginningDBA
This is my understanding from reading through the webs. If i get it all wrong, please kindly point out my mistake.

Thanks in advance for reading or solving the thread.
You're welcome.
# 3  
Old 07-02-2009
Metadb replicas:
1. It's vital that you create metadb replicas on *both* slices. Otherwise the loss of a disk could destroy your database.
2. Having all the copies on one slice is no big problem, so long as you have them on multiple disks

Mirror:
1: That command means that you will have a mirror device called d10, it will write to d11 and d12 syncronisly - don't try to write to the underlying volumes
2: Yep, each mirror covers one slice - don't bother with slice 2 or your metadb slice though
3: Yes, this only ptoects you against disk failure, not deletions or filesystem corruption

---------- Post updated 07-03-09 at 10:42 AM ---------- Previous update was 07-02-09 at 06:03 PM ----------

Heh, snap, looks like we both answered at the same time Smilie
Good news that we've both said much the same thing too Smilie
# 4  
Old 07-14-2009
Thank you so much for the reply.
It sure clear out a lot of doubts i have. SmilieSmilie

Thanks again.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

2. Solaris

SVM ISSUE...

Dear All, I face some errors in SVM.Need help. Actually couple of days ago i got a call from one of the customer mentioning that one of the sub-mirror was in Need maintance state. So we replaced that disk. After Replacing the disk it comes back to "Okay" State. But the Error are... (3 Replies)
Discussion started by: sudhansu
3 Replies

3. Solaris

Fsck with SVM

Hello I want to ask that how to mount and run fsck in SVM disk.In my scenario if i have to disks c0t0d0 and c0t1d0 these two disks are in Mirroring (raid1) if i want to run fsck on the disks than below are the right steps? ok boot cdrom -s mount /dev/dsk/c0t0d0s0 /a cd /a fsck... (3 Replies)
Discussion started by: jhonnybravo
3 Replies

4. Solaris

SVM Creation

Hello, I recently patched my Solaris 10 box and found out that few of the apps are not working. Fortunately, I had detached the mirroring prior to patching, so I just booted into my secondary disk and found that my apps are working.... The problem is this was way back in last month....see... (14 Replies)
Discussion started by: zigi_p5
14 Replies

5. UNIX for Advanced & Expert Users

What is interlace value in SVM?

Hi All, I want to know what is the Interlace value in SVM and what is the need of this ? regards, prashant (1 Reply)
Discussion started by: prashant2507198
1 Replies

6. UNIX for Advanced & Expert Users

SVM

How to list out multiple Disk sets in SVM # metaset -s <disksetname> --- This will list out only one diskset but I need a list of disk sets configured for the node. Is there any command,please let me know ... Thanks in advance. (1 Reply)
Discussion started by: pramath
1 Replies

7. UNIX for Dummies Questions & Answers

SVM doubt

i have taken two separate disk A and B created 4 slices in each A b s4 s4 s5 s5 s6 s6 s7 s7 took slices s4 of A and slice s6 0f B ---created a meta device d0 took slices s4 of B and slice s6 0f A---created a meta device d1 created main mirror d2 using d0... (1 Reply)
Discussion started by: vivek_ng
1 Replies

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

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

10. Solaris

Change the name in SVM

gurus, i have configured the LUN's in solaris 10.after labeled the disk,i have added the disk into one of the soft partition using metattach d0 c5t1000d10s6.actully before that i should confiure the powermt and than i should have add metattch d0 emcpowerc2.i forget to do that and increased... (0 Replies)
Discussion started by: rjay.com
0 Replies
Login or Register to Ask a Question