LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 11-09-2006, 08:56 AM   #1
hcclnoodles
Member
 
Registered: Apr 2003
Posts: 50

Rep: Reputation: 15
HELP !! Disk mirroring question


Hi

I have a Sunfire X4100 box with a 4 disk Chassis (although I only have 2 disks in it). I have been asked to add two more disks into the chassis so that I can mirror the original two using SVM .....Ive read through a couple of SVM docs but am finding it a little confusing, and if any of you guys could help me out , that would be great

my disks are

c0t0d0s0 /
c0t0d0s1 SWAP

c0t1d0s5 /data
c0t1d0s6 /data1

i will be putting in

c0t2d0s0

c0t3d0s0

to be used as mirror disks only, I need to mirror all partitions (except SWAP ??)

any help would be greatly appreciated
thanks
Gary
 
Old 11-09-2006, 12:16 PM   #2
shizzy-t
Member
 
Registered: Dec 2003
Location: Maine/USA
Distribution: Fedora Core, Centos, Solaris
Posts: 34

Rep: Reputation: 15
Hi Gary,

Mirroring is actually pretty easy.

I'll use the / as an example.

So first you need to create some metadatabases's. Metadb hold all of the SVM info. The need to be put on their own empty slice. I would recommend creating 2 metadb on each disk. Each metadb is 4MB, so you'll want to create 3 slices one on each disk that are 8MB in size. Now you don't have to do this you could just run the whole SVM with just one metadb but that's not really a good idea. So lets say we created c0t0d0s7 c0t1d0s7 and c0t2d0s7 each 8MB.

To create the metadb's
metadb -f -a -c 2 c0t0d0s7 c0t1d0s7 c0t2d0s7

Now you're ready to start creating your mirrors. You'll need to make each slice into it's own stripe set..don't worry it won't destroy the data on any disks. Of course I alway recommend doing a back up before attempting anything like this. I'm assuming that you have already creating a slice on say c0t2d0 which is the same size of your / slice. Call it c0t2d0s0.

Then make the stripe sets.

metainit -f d11 1 1 c0t0d0s0
metainit d12 1 1 c0t2d0s0

metastat will show you the svm info.

Ok so now you'll want to mirror the two slices together. It's very important that add the / slice first, the one that has data on it, or things will turn out badly.

metainit d10 -m d11

This will start the mirror.
Then make it so you can now boot off the mirror with

metaroot d10

reboot

When the system comes back up add the second slice

metattach d10 d12

The mirror will sink up and you're ready to go.

Of course there is a bit more to it but that's the simple version. Good luck!

Last edited by shizzy-t; 11-09-2006 at 12:24 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solaris disk mirroring neil Solaris / OpenSolaris 4 09-25-2006 07:46 AM
Disk Mirroring via Network Drunkalot Linux - General 1 09-13-2005 08:29 PM
Mirroring Hard Disk smurf Linux - General 1 09-13-2001 05:38 AM
Disk Druid Mirroring 2 hd on a raid newnix Linux - Software 1 07-04-2001 10:13 AM
Disk Mirroring isaxby Linux - General 3 02-28-2001 10:45 AM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration