Solved

Solaris : How to do a Raid 1 (mirror) on data disk?

Posted on 2012-03-29
1
660 Views
Last Modified: 2012-06-21
Hello experts.

I have 4 disks on a Sun Fire V440 (solaris 11).
I have mirrored the root disk and I want to use the two other disks c2t2d0 & c2t3d0 as data disk.

I plan to mirror the data disk for a better data redundancy, but I don't know exactly how to partition them, and I am not sure how can I mirror data disk. Can you guide me  ?

bash-3.2# format               
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c2t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,700000/scsi@2/sd@0,0
       1. c2t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,700000/scsi@2/sd@1,0
       2. c2t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,700000/scsi@2/sd@2,0
       3. c2t3d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,700000/scsi@2/sd@3,0

Open in new window

0
Comment
Question by:cismoney
1 Comment
 
LVL 76

Accepted Solution

by:
arnold earned 500 total points
ID: 37785398
http://www.unixway.com/vm/disksuite/metainitexamples.html
Presumably you partitioned the two remaining drives to include a small partition where the metadata can be stored.
Format
Select disk 2
Partition to see the current partition table
Let's say s7 will be the 100mb
s0 will be the rest of the space
Make sure to partition disk 3 in exactly the same way.

metainit d21 1 1 c0t2d0s0
metainit d22 1 1 c0t3d0s0
metainit d2 -m d21
metattach d2 d22
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now