SVM-4
What we will learn in next Few Pages
·
Raid5
(Plz watch the videos from this blog for better understanding of raid
levels)
OK… Let’s create raid 5 with SVM,
Should we use Soft Partitions for SVM or we need to go with Physical
slices?
Well… we can go in both ways, let’s see with SP’s
Create Metadb
root@sol-test-2:>/# metadb -afc 3 c1t0d0s7 c1t1d0s7
Create partitions of any size a/c to convenience
Part Tag Flag
Cylinders Size Blocks
0 unassigned wm
0 - 652 5.00GB (653/0/0)
10490445
1 unassigned wm
653 - 914 2.01GB (262/0/0)
4209030
2 backup
wu 0 - 1562 11.97GB (1563/0/0) 25109595
3 unassigned wm
915 - 1176 2.01GB (262/0/0)
4209030
4 unassigned wm
1177 - 1438 2.01GB (262/0/0)
4209030
5 unassigned wm
1439 - 1558 941.31MB (120/0/0)
1927800
Now we need to create SP’s
We will create d11 d12 & d13
root@sol-test-2:>/# metainit d11 -p c1t2d0s0 100m
d11: Soft Partition is setup
root@sol-test-2:>/# metainit d12 -p c1t2d0s0 100m
d12: Soft Partition is setup
root@sol-test-2:>/# metainit d13 -p c1t2d0s0 100m
d13: Soft Partition is setup
Now create the metadevice and create raid5
root@sol-test-2:>/# metainit d2 -r d11 d12 d13
d2: RAID is setup
Now check what we had created
root@sol-test-2:>/# metastat -c
d2 r 196MB d11 d12 d13
d11 p
100MB c1t2d0s0
d12 p
100MB c1t2d0s0
d13 p
100MB c1t2d0s0
So we have raid5 volume d2 of 196mb
Now expand this d2
root@sol-test-2:>/# metainit d15 -p c1t2d0s0 100mb
root@sol-test-2:>/# metattach d2 d15
root@sol-test-2:>/# metastat -c
d2 r 298MB d11 d12 d13 d15
d11 p
100MB c1t2d0s0
d12 p
100MB c1t2d0s0
d13 p
100MB c1t2d0s0
d15 p
100MB c1t2d0s0
Let’s create Soft Partitions from the d2
root@sol-test-2:>/# metainit d21 -p d2 10m
d21: Soft Partition is setup
root@sol-test-2:>/# metainit d22 -p d2 10m
d22: Soft Partition is setup
root@sol-test-2:>/# metainit d23 -p d2 10m
d23: Soft Partition is setup
root@sol-test-2:>/# metastat -c
d23 p
10MB d2
d22 p 10MB d2
d21 p 10MB d2
d2 r
298MB d11 d12 d13 d15
d11 p
100MB c1t2d0s0
d12 p
100MB c1t2d0s0
d13 p
100MB c1t2d0s0
d15 p
100MB c1t2d0s0
root@sol-test-2:>/# metainit -f d31 1 1 c1t2d0s0
d31: Concat/Stripe is setup
root@sol-test-2:>/# metainit -f d32 1 1 c1t2d0s1
d32: Concat/Stripe is setup
root@sol-test-2:>/# metainit -f d33 1 1 c1t2d0s3
d33: Concat/Stripe is setup
root@sol-test-2:>/# metainit d100 -r d31 d32 d33
metainit: sol-test-2: d31: is a metadevice
Why I am unable to create raid5???
root@sol-test-2:>/# metaclear d31
d31: Concat/Stripe is cleared
root@sol-test-2:>/# metaclear d32 d33
d32: Concat/Stripe is cleared
d33: Concat/Stripe is cleared
root@sol-test-2:>/# metainit d3 -r c1t2d0s0 c1t2d0s1 c1t2d0s3
d3: RAID is setup
root@sol-test-2:>/# metastat -c
d3 r 4.0GB c1t2d0s0 (initializing) c1t2d0s1
(initializing) c1t2d0s3 (initializing)
root@sol-test-2:>/# metastat d3
d3: RAID
State: Initializing
Initialization in progress:
29.5% done
Interlace: 32 blocks
Size: 8369865 blocks (4.0
GB)
Original device:
Size: 8385216 blocks (4.0
GB)
Device Start Block Dbase
State Reloc Hot Spare
c1t2d0s0 16395 No Initializing Yes
c1t2d0s1 330 No Initializing Yes
c1t2d0s3 330 No Initializing Yes
Device Relocation Information:
Device Reloc Device ID
c1t2d0 Yes id1,sd@n6000c292a7dde1da7cb7b6bc4f82b207
No comments:
Post a Comment