Disk Mirror in Solaris 9 via Solaris Volume Manager | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Disk Mirror in Solaris 9 via Solaris Volume Manager

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-01-2007
deal732 deal732 is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 1 September 2009, 5:08 PM EDT
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 05-02-2007
pressy's Avatar
pressy pressy is offline Forum Advisor  
solaris cultist
 
Join Date: Aug 2003
Last Activity: 12 March 2014, 9:56 AM EDT
Location: Vienna / Austria (Europe) [EARTH]
Posts: 732
Thanks: 1
Thanked 2 Times in 2 Posts
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
Sponsored Links
    #3  
Old 05-02-2007
deal732 deal732 is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 1 September 2009, 5:08 PM EDT
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
can i do two side mirror aslo?

-deal732
    #4  
Old 05-02-2007
pressy's Avatar
pressy pressy is offline Forum Advisor  
solaris cultist
 
Join Date: Aug 2003
Last Activity: 12 March 2014, 9:56 AM EDT
Location: Vienna / Austria (Europe) [EARTH]
Posts: 732
Thanks: 1
Thanked 2 Times in 2 Posts
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
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Convert from raw disk to solaris volume manager disk fretagi Solaris 4 04-20-2012 02:42 AM
root disk mirroring in solaris volume manager for solaris 10 ramareddi16 Solaris 1 09-16-2011 07:55 AM
VERITAS Volume Manager - mirror a disk/volume rookieuxixsa UNIX for Dummies Questions & Answers 1 06-15-2011 02:30 PM
Solaris Volume Manager: Break Mirror and use to make a 2nd machine 4dailyrunner Solaris 1 02-15-2011 04:49 PM
How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE nageswarb Solaris 0 03-14-2008 04:46 PM



All times are GMT -4. The time now is 07:05 PM.