Hi there, I'm kinda new to all of this. :stud
My goal is to setup a software RAID5 array on FreeBSD 8.0-RELEASE.
I've read that one of the solutions provided is using gvinum, however due to difficulities i was unable to get it working.
There is a high chance that I'm doing something horribly wrong here, so point my mistakes, please.
The exact steps I took to set all things up on VMware® Workstation 7.0.0 build-203739:
1. Standard installation, auto partitioning.
2. Standard MBR.
3. Developer package and ports.
4. Created user 'testuser' group: 'wheel"
5. Enabled inetd, uncommented telnet line.
6. Restart, add 3x2GB IDE HDD (ad0, ad1, ad3, system drive identified as da0)
7. Logged as root on ttyv0
8. telnet host-guest with putty
9. For ad0, ad1, ad3 ->
[CMD=""]freebsd-teststation# gpart create -s mbr ad0
freebsd-teststation# gpart add -b 63 -s 4194224 -t freebsd ad0
freebsd-teststation# gpart create -s bsd ad0s1[/CMD]
10. As a result:
10. Now gvinum:
[CMD=""]freebsd-teststation# gvinum
gvinum -> raid5 ad0s1h ad1s1h ad3s1h
gvinum -> list -V[/CMD]
I thought, that at this stage initialisation should begin - but it didnt.
Anyway, i proceeded to
[CMD=""]freebsd-teststation# newfs -U /dev/gvinum/gvinumvolume0
freebsd-teststation# mkdir /mnt/raid5
freebsd-teststation# mount /dev/gvinum/gvinumvolume0 /mnt/raid5/[/CMD]
And finally:
Should speak for itself. Achieved similar thrilling results on 'real hardware', and then I got confirmation on VM.
CPU idle.
My guess I messed something badly.
What am I doing wrong?
My goal is to setup a software RAID5 array on FreeBSD 8.0-RELEASE.
I've read that one of the solutions provided is using gvinum, however due to difficulities i was unable to get it working.
There is a high chance that I'm doing something horribly wrong here, so point my mistakes, please.
The exact steps I took to set all things up on VMware® Workstation 7.0.0 build-203739:
1. Standard installation, auto partitioning.
2. Standard MBR.
3. Developer package and ports.
4. Created user 'testuser' group: 'wheel"
5. Enabled inetd, uncommented telnet line.
6. Restart, add 3x2GB IDE HDD (ad0, ad1, ad3, system drive identified as da0)
7. Logged as root on ttyv0
8. telnet host-guest with putty
9. For ad0, ad1, ad3 ->
[CMD=""]freebsd-teststation# gpart create -s mbr ad0
freebsd-teststation# gpart add -b 63 -s 4194224 -t freebsd ad0
freebsd-teststation# gpart create -s bsd ad0s1[/CMD]
10. As a result:
Code:
freebsd-teststation# gpart show
=> 63 4194225 ad0 MBR (2.0G)
63 4194162 1 freebsd (2.0G)
4194225 63 - free - (32K)
=> 63 4194225 ad1 MBR (2.0G)
63 4194162 1 freebsd (2.0G)
4194225 63 - free - (32K)
=> 63 4194225 ad3 MBR (2.0G)
63 4194162 1 freebsd (2.0G)
4194225 63 - free - (32K)
=> 63 16777152 da0 MBR (8.0G)
63 16771797 1 freebsd [active] (8.0G)
16771860 5355 - free - (2.6M)
=> 0 16771797 da0s1 BSD (8.0G)
0 864256 1 freebsd-ufs (422M)
864256 1360219 2 freebsd-swap (664M)
2224475 1454080 4 freebsd-ufs (710M)
3678555 772096 5 freebsd-ufs (377M)
4450651 12321146 6 freebsd-ufs (5.9G)
=> 0 4194162 ad0s1 BSD (2.0G)
0 16 - free - (8.0K)
16 4194146 8 freebsd-vinum (2.0G)
=> 0 4194162 ad1s1 BSD (2.0G)
0 16 - free - (8.0K)
16 4194146 8 freebsd-vinum (2.0G)
=> 0 4194162 ad3s1 BSD (2.0G)
0 16 - free - (8.0K)
16 4194146 8 freebsd-vinum (2.0G)
[CMD=""]freebsd-teststation# gvinum
gvinum -> raid5 ad0s1h ad1s1h ad3s1h
gvinum -> list -V[/CMD]
Code:
3 drives:
Drive gvinumdrive2: Device ad3s1h
Size: 2147267072 bytes (2047 MB)
Used: 2147221504 bytes (2047 MB)
Available: 45568 bytes (0 MB)
State: up
Flags: 0
Free list contains 1 entries:
Offset Size
2147357184 45568
Drive gvinumdrive1: Device ad1s1h
Size: 2147267072 bytes (2047 MB)
Used: 2147221504 bytes (2047 MB)
Available: 45568 bytes (0 MB)
State: up
Flags: 0
Free list contains 1 entries:
Offset Size
2147357184 45568
Drive gvinumdrive0: Device ad0s1h
Size: 2147267072 bytes (2047 MB)
Used: 2147221504 bytes (2047 MB)
Available: 45568 bytes (0 MB)
State: up
Flags: 0
Free list contains 1 entries:
Offset Size
2147357184 45568
1 volume:
Volume gvinumvolume0: Size: 4294443008 bytes (4095 MB)
State: up
Plex 0: gvinumvolume0.p0 (up), 4095 MB
1 plex:
Plex gvinumvolume0.p0: Size: 4294443008 bytes (4095 MB)
Subdisks: 3
State: up
Organization: raid5 Stripe size: 256 kB
Flags: 0
Part of volume gvinumvolume0
Subdisk 0: gvinumvolume0.p0.s0
state: up size 2147221504 (2047 MB)
Subdisk 1: gvinumvolume0.p0.s1
state: up size 2147221504 (2047 MB)
Subdisk 2: gvinumvolume0.p0.s2
state: up size 2147221504 (2047 MB)
3 subdisks:
Subdisk gvinumvolume0.p0.s2:
Size: 2147221504 bytes (2047 MB)
State: up
Plex gvinumvolume0.p0 at offset 524288 (512 kB)
Drive gvinumdrive2 (gvinumdrive2) at offset 135680 (132 kB)
Flags: 0
Subdisk gvinumvolume0.p0.s1:
Size: 2147221504 bytes (2047 MB)
State: up
Plex gvinumvolume0.p0 at offset 262144 (256 kB)
Drive gvinumdrive1 (gvinumdrive1) at offset 135680 (132 kB)
Flags: 0
Subdisk gvinumvolume0.p0.s0:
Size: 2147221504 bytes (2047 MB)
State: up
Plex gvinumvolume0.p0 at offset 0 (0 B)
Drive gvinumdrive0 (gvinumdrive0) at offset 135680 (132 kB)
Flags: 0
gvinum ->
I thought, that at this stage initialisation should begin - but it didnt.
Anyway, i proceeded to
[CMD=""]freebsd-teststation# newfs -U /dev/gvinum/gvinumvolume0
freebsd-teststation# mkdir /mnt/raid5
freebsd-teststation# mount /dev/gvinum/gvinumvolume0 /mnt/raid5/[/CMD]
And finally:
Code:
freebsd-teststation# dd if=/dev/zero of=/mnt/raid5/file count=128 bs=512k
^C86+0 records in
85+0 records out
44564480 bytes transferred in 464.141622 secs (96015 bytes/sec)
CPU idle.
My guess I messed something badly.
What am I doing wrong?