The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE nageswarb SUN Solaris 0 03-14-2008 04:46 PM
Volume Manager; importing a disk BOFH Filesystems, Disks and Memory 1 02-06-2008 01:11 PM
Solaris 10 - breaking of mirror and change new hard disk chongkls77 SUN Solaris 3 09-03-2007 09:21 PM
how to delete RAID of solaris volume manager thru command line vr76413 UNIX for Advanced & Expert Users 1 12-13-2006 05:42 PM
newfs hotspares: solaris volume manager xnightcrawl UNIX for Advanced & Expert Users 3 03-26-2006 10:56 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-01-2007
deal732 deal732 is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 13
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 (permalink)  
Old 05-02-2007
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
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 (permalink)  
Old 05-02-2007
deal732 deal732 is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 13
can i do two side mirror aslo?

-deal732
  #4 (permalink)  
Old 05-02-2007
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0