Visit Our UNIX and Linux User Community


Disk Mirror in Solaris 9 via Solaris Volume Manager


 
Thread Tools Search this Thread
Operating Systems Solaris Disk Mirror in Solaris 9 via Solaris Volume Manager
# 1  
Old 05-01-2007
Disk Mirror in Solaris 9 via Solaris Volume Manager

Hello,

I am trying to do mirror in solaris 9. I have total 0-7 disks

4 5 6 7
0 1 2 3

Drive 0 and Drive 4 = Boot Drives

Need to Mirror following drives.

Drive 1 and Drive 5 = Need to mirror


Drive 1 was mounted on: /prod1, /prod2, /prod3, /prod4, /prod5.

Then i have umount from /prod1----/prod5.


I have done following steps.

metadb -a -f /dev/dsk/c1t1d0s7
metadb -a -f /dev/dsk/c1t5d0s7

2)

metainit -f d100 1 1 c1t1d0s0
metainit -f d101 1 1 c1t5d0s0
metainit d0 -m d100
metattach d0 d101

3)

newfs /dev/md/rdsk/d0

4)

mount -F ufs /dev/md/dsk/d0 /prod1

Now, target 5 is submirror with target 1 mirror. Do i need to submirror drive 1 also, in order to mirror each other?

for example:


metainit -f d102 1 1 c1t5d0s0
metainit -f d103 1 1 c1t1d0s0
metainit d1 -m d102
metattach d1 d103


Let me know.

Thanks

Adeel
# 2  
Old 05-02-2007
no, that's not necessary.

metainit -f d100 1 1 c1t1d0s0
metainit -f d101 1 1 c1t5d0s0
this creates the meta-devices

metainit d0 -m d100
here you define that d0 is a mirror which contains d100 as a submirror. but right now, it's only a one-side mirror...

metattach d0 d101
here you attach the second half of the mirror.


gP
# 3  
Old 05-02-2007
can i do two side mirror aslo?

-deal732
# 4  
Old 05-02-2007
Quote:
can i do two side mirror aslo?
if you mean "metainit d0 -m d100 d101 1" to create the mirror in one command, well, i've tried it once and yes, it worked, but the man page says:

mirror -m submirror
Specifies the metadevice name of the mirror. The -m
indicates that the configuration is a mirror. submir-
ror is a metadevice (stripe or concatentation) that
makes up the initial one-way mirror. Volume Manager
supports a maximum of four-way mirroring. When defin-
ing mirrors, first create the mirror with the metainit
command as a one-way mirror. Then attach subsequent
submirrors using the metattach command. This method
ensures that Volume Manager properly syncs the mir-
rors. (The second and any subsequent submirrors are
first created using the metainit command.)


regards pressy

Previous Thread | Next Thread
Test Your Knowledge in Computers #40
Difficulty: Easy
HTML stands for 'Hyper Technology Transfer Protocol'.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

solaris volume manager- stripe?

Hello Admins.. I am going through solaris volume manager guide for RAID-0 concatenation and stripes, I do not understand the concept of stripe from following example of concatenation. There is an eample for concatenation: # metainit d25 1 1 c0t1d0s2 d25: Concat/Stripe is setup the... (5 Replies)
Discussion started by: snchaudhari2
5 Replies

2. Solaris

Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below: root@moneta # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 513M 9.3G 6% /... (4 Replies)
Discussion started by: fretagi
4 Replies

3. Solaris

Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below: root@moneta # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 513M 9.3G 6% / ... (0 Replies)
Discussion started by: fretagi
0 Replies

4. Solaris

root disk mirroring in solaris volume manager for solaris 10

Need a procedure document to do "root disk mirroring in solaris volume manager for solaris 10". I hope some one will help me asap. I need to do it production environment. Let me know if you need any deatils on this. Thanks, Rama (1 Reply)
Discussion started by: ramareddi16
1 Replies

5. UNIX for Dummies Questions & Answers

VERITAS Volume Manager - mirror a disk/volume

I have a machine (5.10 Generic_142900-03 sun4u sparc SUNW,Sun-Fire-V210) that we are upgrading the storage and my task is to mirror what is already on the machine to the new disk. I have the disk, it is labeled and ready but I am not sure of the next steps to mirror the existing diskgroup and... (1 Reply)
Discussion started by: rookieuxixsa
1 Replies

6. Solaris

Solaris Volume Manager: Break Mirror and use to make a 2nd machine

Hello: I have a machine built on 2 drives and mirrors have been created to a second set of 2 drives (4 total) on the same platform. SVM. Might anyone provide guidance to create a second machine by breaking the mirrored set, moving the two mirrors (2) to another machine (same platform type),... (1 Reply)
Discussion started by: 4dailyrunner
1 Replies

7. Solaris

Solaris Volume manager

Hi Friends, I have to migrate my raid-1 volume to raid -5 online. Can anyone please help me, If possible then send me the step by step commands for online migration. Thanks in advance. (2 Replies)
Discussion started by: rajaramrnb
2 Replies

8. Solaris

Solaris Volume Manager

Hello All, I have small doubt. It's related to SVM in solaris 10. I have created raid 0 (striping) using 3 slices of 500 MB size (default interlace value as 32KB) d2: Concat/Stripe ---- Interlace value is 32 KB Size: 2923830 blocks (1.4 GB) Stripe 0: (interlace: 64 blocks) Device Start... (1 Reply)
Discussion started by: vaibhav.kanchan
1 Replies

9. Solaris

Veritas volume manager in solaris.

Can you please let me know the certification code for veritas volume manager in solaris ? Thanks in advance. (2 Replies)
Discussion started by: gowthamakanthan
2 Replies

10. Solaris

How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE

Hi all, I have a problem with vxvm volume which is mirror with two disks. when i am try to increase file system, it is throwing an ERROR: can not allocate 5083938 blocks, ERROR: can not able to run vxassist on this volume. Please find a sutable solutions. Thanks and Regards B. Nageswar... (0 Replies)
Discussion started by: nageswarb
0 Replies

Featured Tech Videos