Solved

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

Posted on 2012-03-29
1
671 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 77

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

860 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