Raid Configuration-0,5.1
Raid Configuration-0,5.1
Raid 0
Concatenation
1. Create the Database in raw slice.
# metadb a f <slice logical name>
example:
metadb a f ct1ds!
". Create the logical #olume
# metainit <#olname> <total no od hdd> 1 <slice logical name> $.
%xample:
metainit d & 1 ct1ds 1 ct1ds1 1 ct1ds&
&. Create the soft partition from logigal #olume.
# metainit <#olname> 'p <logigal #olname> <memor( si)e>
example
metainit d1 p d 1gb
metainit d" p d 1gb
Raw dis* path : +de#+md+rs*+<#olname>
,loc* dis* path: +de#+md+ds*+<#olname>
-. Create the file s(stem.
# newfs +de#+md+rds*+<#olname>
example:
# newfs +de#+md+rds*+d1
# newfs +de#+md+rds*+d"
.. /ount the slice
# mount +de#+md+ds*+#olname <mount point>
%xample:
# mount +de#+md+ds*+d1 +0rini
1. 2dd more space to the slice.
3he following steps appl( onl( for mounted slices.
# metattach <#olname> <memor( space>
example:
# metattach d1 .gb
# metattach d" .gb
Run the following command to create the file s(stem for newl( add space. 3his
is not affected old files and space.
# growfs / <mount point> +de#+md+rds*+<olname>
%xample:
#growfs / +srini +de#+md+rds*+d1
Clear the raid from (our hard dis*. 3his is common for all. 4irst un mount the slices
Clear the soft partition.
# metaclear <#olname>
clear the logical #olume
# metaclear < soft #ol name>
clear the database
# metadb d f <slice logical name>
Raid 5
Stripping with parity
1. Create the Database in raw slice.
# metadb a f <slice logical name>
example:
metadb a f ct1ds!
". Create the logical #olume
# metainit <#olname> 'r <slice logical name> $.
%xample:
metainit d r ct1ds 1 ct1ds1 1 ct1ds&
&. Create the soft partition from logigal #olume.
# metainit <#olname> 'p <logigal #olname> <memor( si)e>
example
metainit d1 p d 1gb
metainit d" p d 1gb
Raw dis* path : +de#+md+rs*+<#olname>
,loc* dis* path: +de#+md+ds*+<#olname>
-. Create the file s(stem.
# newfs +de#+md+rds*+<#olname>
example:
# newfs +de#+md+rds*+d1
# newfs +de#+md+rds*+d"
.. /ount the slice
# mount +de#+md+ds*+#olname <mount point>
%xample:
# mount +de#+md+ds*+d1 +0rini
1. 2dd more space to the slice.
3he following steps appl( onl( for mounted slices.
# metattach <#olname> <memor( space>
example:
# metattach d1 .gb
# metattach d" .gb
Run the following command to create the file s(stem for newl( add space. 3his
is not affected old files and space.
# growfs / <mount point> +de#+md+rds*+<olname>
%xample:
#growfs / +srini +de#+md+rds*+d1
Raid 1
Mirror [ 0+1] Concatenation and Mirror.
0tep :1
Create two concatenation 5olume named d1 6 d11.
0tep :"
Create a mirror with d1. 3he mirror #olume name is d1"
# metainit d1" m d1
Create a mirror #olume d1" from d1 first.
Restart the 0(stem.
# init 1
0tep :&
2fter restart the s(stem. 2dding d11 to mirror d1"
# metattach d1" d11
0tep :-
Create a file s(stem with mirror #olume d1"
# newfs +de#+md+rds*+d1"
0tep :.
/ount the mirror slice in an( one of mount point.
# mount +de#+md+ds*+d1" +srini