Monday, September 12, 2011

Volume manger and RAID 0,1 and 5 configuration in Sun (Oracle) Solaris 10


VOLUME MANAGER & RAID 
=======================

1.Volume Types:
RAID 0
Concatenation or stripe
RAID 1
mirror
RAID 5
Stripting with Parity
2. Soft partitions - LARGE STORAGES

3. Hot Spare pools - Spare storage to use when Raid1 or 5 has failed

4. State datebase Replica - Must be created to created volumes

5. Data sets - Used for Clustering Solaris / failover

Can not create volumes using format



HOW TO CREATE SDR

wbem service should be running

check using,

/etc/init.d/init.wben status
running on port 898

which smc

smc

This computer>Storage>Enhanced storage

[supply root password]

Volumes Hotsparepool SDR datasets

mount

df

GO TO SDR

Action>create replica

Diskset > do nothing   >> NEXT

Slices ...

select slice is not mounted in MOUNT Command

IF not present Create few from format command

run smc again

refresh

c0t1d0s0 and c0t1d0s1

select 2 slices

8192 x 2

Select one if you want

Once you have two SDR created check from SDR

CREATING RAID0
==============

c0t1d0s0
c0t2d0s0

Make sure Two disks/slices have SDR

smc

Volumes > Create new volume

Don't create replica

Concatetination RAID0

NOTE: it writes data one of one, only when first is full



STRIPE RAID0

Note: It writes both disks/slices togather (for performances)

Select STRIPE RAID0

volume name d0

will create /dev/md/dsk/d0

SELECT both slices that you have created

NOTE : SAME SIZE in Stripe

next

NO HOT SPARE POOL

next

Command in CMD:

/usr/sbin/metainit d0 1 2 c0t1d0s0 c0t2d0s0

finish

Check RAID0 of d0 in volumes

Right click and properties ... Show..

To format

newfs /dev/md/rdsk/d0

mkdir /raid1

mount /dev/md/dsk/d0 /raid1

df -h

gedit /etc/vfstab

/dev/md/dsk/d0 /dev/md/rdsk/d0 /raid1 ufs 2 yes -

save and exit



properties of SDR

you must see a u

active and up to date

CREATING RAID 1 (Mirror):
======================

umount /raid1

smc

delete last created RAID0

Volume>Create volume

Follow same wizard

Select RAID1 (Mirror)

No hot spare pool

Command line tool,

metainit d0 1 1 c0t1d0s0

NOTE: 1 slice only

next next finish

refresh

Follow same step for one

Stripe 0

d1

command line tool,

metainit d1 1 1 c0t2d0s0

Now should be able to see two volumes

HOw to create mirror

Create volume:

No SDR

Select : Mirror

d2

d0 and d1 Concatination RAID0

select first for Source

Select Target for destination

READ Option: Round Robin
Write : Paralle
Passnumber:1

next

Command line tool,

metainit d2 -m d0
metattach d2 d1

finish

d2

properties :

Size is half of total amount of space

we can add and deattach sub-mirrors

newfs /dev/md/rdsk/d2

mkdir /mirror

mount /dev/ms/dsk/d2 /mirror

df -h


gedit /etc/vfstab

/dev/md/dsk/d2 /dev/md/rdsk/d2 /mirror ufs 2 yes -

save exit


Creating RAID 5(Stripe with parity):
==========================

Make sure you have three slices

umount /mirror

Delete all volumes

Volume> Create volumes

select RAID5

Volumename:

d0

c0t1d0s0 10gb
c0t1d0s1 10gb
c0t2d0s0 10gb

select three SAME SIZE slices

next

interface 16kb

no Hot spare pool

command line tool,

metainit d0 -r c0t1d0s0 c0t1d0s1 c0t2d0s0

finish

refresh

d0

20gb

10+10+10 = 20 GB in RAID5

****

which metastat

metastat d0

status ....

newfs /dev/md/rdsk/d0

mkdir /raid5

mount /dev/md/dsk/d0 /raid5


gedit /etc/vfstab

/dev/md/dsk/d0 /dev/md/rdsk/d0 /raid5 ufs 2 yes -

No comments:

Post a Comment