Solaris9 Software RAID

Hi All
I have setup Solaris9 on a V240 with two hard drives 73 GB each. The issue is i need to do a software mirror for for this two Disks(RAID1). Is there any one out there who can help me or advice me on which tool to use On SOlaris9 to accomplish this(RAID1 configuration).

Any link to info or detail step by step of this setup is welcomed.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can use Solaris Volume Manager which comes with solaris 9. So you dont need to install any third party tool like veritas. Please go through the link posted below for a detailed explanation regarding RIAD creation using solaris volume manager.
ThlwareAuthor Commented:

Thanks vamsi for your response i have went through the tutorial just to clear things up.
Is it necessary to create State Database Replicas on both my hard disks ? (c1t0d0x and c1t1d0x).

On this disk c1t0d0x i have my OS and this one is empty c1t1d0x.

And if i have do do it on c1t0d0x1 please advice me which slice should i use see below.

Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c1t0d0s0    45386177 1568313 43364003     4%    /
/proc                      0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
fd                         0       0       0     0%    /dev/fd
/dev/dsk/c1t0d0s1    12106732   41361 11944304     1%    /var
swap                 3374400      40 3374360     1%    /var/run
/dev/dsk/c1t0d0s2    12578092   12530 12439782     1%    /tmp
/dev/dsk/c1t0d0s4     498039    1041  447195     1%    /swap

u need to take some space out of swap at this stage.
min is 60mb to store SDR

first do a search on v240. you may able to do hardware raid . better than software raid to my experience

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Please have a look at the answer in http:Q_21879432.html#16866815 for mirror disk setup.

To learn more about Solaris Volume Manager:
"Solaris Volume Manager Administration Guide":

or the short one:
"Setting up RAID volumes with Solaris Volume Manager":


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ThlwareAuthor Commented:
Hi Guys
I have wend ahead with the Soft RAID. I am experiencing this error when i try to create my third second mirror. please see

bash-2.05# metainit -f d2 1 1 c1t1d0s0
metainit: unknown: c1t1d0s0: overlaps with device in metadevice state database

I have created my first one successfully using the same command.

bash-2.05# metainit -f d2 1 1 c1t0d0s0

Please advice.

1) check the state database replica location, type in:
 metadb - i

2) check the disk layout using the format command.

In this case, there was a cylinder overlap between partitions
for disk c1t1d0
adjust the cylinder boundaries, and try again.

ThlwareAuthor Commented:
Please look at my metadb table

bash-2.05# metainit -f d2 1 1 c1t1d0s0
metainit: unknown: c1t1d0s0: overlaps with device in metadevice state database

bash-2.05# metadb -i
        flags           first blk       block count
     a m  p  luo        16              8192            /dev/dsk/c1t1d0s1
     a    p  luo        16              8192            /dev/dsk/c1t1d0s2
     a    p  luo        8208            8192            /dev/dsk/c1t1d0s1

And this is my partition table for c1t1d0. (am not sure what to adjust here please advice).
format> verify

Primary label contents:

Volume name = <        >
ascii name  = <SUN72G cyl 14087 alt 2 hd 24 sec 424>
pcyl        = 14089
ncyl        = 14087
acyl        =    2
nhead       =   24
nsect       =  424
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  9067       44.00GB    (9068/0/0)   92275968
  1       swap    wu      26 -    52      134.16MB    (27/0/0)       274752
  2     backup    wu       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6        usr    wm      52 - 14086       68.10GB    (14035/0/0) 142820160
  7 unassigned    wm       0                0         (0/0/0)             0


there is a cylinder overlap between partitions for disk c1t1d0

0       root    wm       0 -  9067       44.00GB    (9068/0/0)   92275968

 1       swap    wu      26 -    52      134.16MB    (27/0/0)       274752

6        usr    wm      52 - 14086       68.10GB    (14035/0/0) 142820160

Backup all your data, and modify the partition to make it not overlap, eg (not a good layout!)

0   0 -  9067      
1   9067 - 9038
4   9039 - 14086

BTW, 134.16MB  foe swap is too small. consider make >=RAM size

also you don't need to have a seperate partion for /usr (nothing wrong with it!) , you can have one large partion + swap for your box.

ThlwareAuthor Commented:
Thanx Guys
For your input
On the mirrors i have created onr of them does not look good please see below ...(state Last Errerd and State: Needs maintenance). What can i do to fix this or is this state field ok with this results ?

d1: Submirror of d10
    State: Needs maintenance
    Invoke: after replacing "Maintenance" components:
                metareplace d10 c1t0d0s0 <new device>
    Size: 92164032 blocks (43 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s0          0     No      Last Erred   Yes


Did you remember to create a small slice for the metadatabase?

Please spend a few minutes to read the example in:
http:Q_21879432.html#16866815 for mirror disk setup.

and read the docs in my previous comment http:#18833883
ThlwareAuthor Commented:
Hi Gents

I made a mistake i have removed my metadb's and mirrors. And i mirrored my /  "root" partitions with one of the mirrors. now i can not boot the machine. How can revert back to my initial disk?

I tried to boot from the original kernel using "boot -as"  which was successful and i could see the /etc/vfstab
file but could not edit it using vi.

Please see the errors am getting up on boot.

panic[cpu1]/thread=140a000: vfs_mountroot: cannot mount root 38dc6c, 2000, 500)

Rebooting with command: bootot: cannot mount root      
Boot device: disk  File and args:                  

SunOS Release 5.9 Version Generic_118558-11 64-bit0, 0)                                            
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.0 0000000000002000 00000000014955c0                            
Use is subject to license terms.              
  %l4-7: 00000000
Cannot mount root on /pseudo/md@0:0,10,b                                      
Probing I/O buses                

Sun Fire V240, No Keybo

  %l0-3: 0000000000000001 000000000140a000 0000000001413018 0000000000000000rights reserved.                                                            
  %l4-7: 0000000078002000 0000000000396000 00000000014a3e40 000000000106                                                    

SC Alert: SC Request to send Break to host.                
SunOS Release 5.9 Version
Probing memory-11 64-bit    

And show command show-disks this disks

{1} ok show-disks
a) /pci@1c,600000/scsi@2,1/disk
b) /pci@1c,600000/scsi@2/disk
c) /pci@1e,600000/ide@d/cdrom
d) /pci@1e,600000/ide@d/disk

I have saved the alternate boot device when i was enabling the system to  boot from the mirror see below.
bash-2.05# ls -l /dev/rdsk/c1t1d0s0
lrwxrwxrwx   1 root     root          47 Jan  1 02:13 /dev/rdsk/c1t1d0s0 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:a,raw

Can some one help or guide  me to boot from my original disk ?


Why delete?

We have given valid answered to the original question, and gave example for the case.

Since Thlware doesn't seems to read all my comments. I didn't want to waste time to help him to fix the box.

He can fixed the problem in http:#18904301 by using a Solaris Software CD to boot up the box in single user mode, mount the root filesystem, and reversed /etc/vfstab and /etc/system file back to the state before the RAID was setup (eg, use the normal disk device instead of the /dev/md
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.