Setting up gvinum raid5 on FreeBSD 7 ( amd64 )
Posted on 2008-06-22
Hello, I'm trying to get gvinum raid5 running on FreeBSD 7 and have hit a road block, here's the run down.
I have an IDE HD ( 200gb ), which has the freeBSD install on it and 4 500GB hard drives ( exact same hard drives ) connected via sata2. I have thoroughly tested all 5 hard drives on other systems and they are all good.
After installing freeBSD I did the following
#bsdlabel -w /dev/ad4
#bsdlabel -w /dev/ad5
#bsdlabel -w /dev/ad6
#bsdlabel -w /dev/ad7
3) created my raid config file "/etc/raid.conf"
drive disk_1 device /dev/ad4
drive disk_2 device /dev/ad5
drive disk_3 device /dev/ad6
drive disk_4 device /dev/ad7
plex org 261k
sd drive disk_1
sd drive disk_2
sd drive disk_3
sd drive disk_4
3) Created the array
#gvinum create /etc/raid.conf
4) Partitioned the new array
5) Created Directory and Mounted it
#mount /dev/gvinum/raid5 /wmfiles
And voila , the volume, plex, and subdisks were running and I could write to wmfiles perfectly fine.
I then add the new mount to fstab
/dev/gvinum/raid5 /wmfiles ufs rw 2 2
and add it to the /boot/loader.conf
Here's where things go wrong, I reboot and the boot fails because of the new volume. It throws the following error and puts me into a crippled single user mode where I must remount /usr, /, and /var just to use my /rescue/vi
THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY:
ufs: /dev/gvinum/raid5 (/wmfiles)
Automatic file system check failed; help!
when I run
CANNOT READ BLK: 128
which seems to be the first block, followed by ( after continue )
THE FOLLOWING DISK SECTORS COULD NOT BE READ: 128, 129 [etc etc] 142, 143,
ioctl (GCINFO): Inappropriate ioctl for device
fsck_ufs: /dev/gvinum/raid5: can't read disk label
returns that the volume and plex are down and the subdisks are stale, if I remove the fstab line and the loader.conf line, and reboot, then try to mount and start the volume manually, nothing happens.
Anyone have any ideas as to how to fix this? I am a relative UNIX newbie, so please tell me exactly how to do something if you'd like more information ( ie if you ask for a config file print out etc, tell me how to get said printout, thanks )