graid5 compilation problem
deniswork at uzvik.kiev.ua
deniswork at uzvik.kiev.ua
Thu May 3 19:10:52 UTC 2007
Can you please advice how to create raid with graid5?
I found on docs
graid5 label -v -s 131072 data /dev/da0 /dev/da1 /dev/da2 /dev/da3
newfs /dev/raid5/data
mount /dev/raid5/data /mnt
So my attempt:
$ geom raid5 label -v /dev/ad4 /dev/ad6 /dev/ad8 /dev/ad10
i get:
Unknown command: label
usage: geom raid5 help
geom raid5 list [name ...]
geom raid5 status [-s] [name ...]
geom raid5 load [-v]
geom raid5 unload [-v]
Thanks!
p.s.
[root at 82 /usr/src/sbin/geom/class/raid5]# kldstat
Id Refs Address Size Name
1 6 0xc0400000 70794c kernel
2 1 0xc0b08000 11920 geom_vinum.ko
3 1 0xc0b1a000 59f20 acpi.ko
5 1 0xc8f43000 5000 geom_label.ko
6 1 0xc85e4000 13000 geom_raid5.ko
> --- deniswork at uzvik.kiev.ua wrote:
>> Hi, I want migrate(after two after-reboot-crashes) from gvinum to
>> graid5.
>>
> Cool... I am glad to read that...
>> I take graid5 from this url:
>>
>> http://home.tiscali.de/cmdr_faako/geom_raid5.tbz
>>
> OK...
>> and trying to compile it using this guide:
>> http://www.freenas.org/downloads/docs/devel-docs/#d0e689
>>
>> kernel module compiles OK.
>> , but i meet troubles when I
>> trying to compile geom_raid5.c
>>
>> [root at 82 /usr/src/sbin/geom/class/raid5]# cd /usr/src/sbin/geom/class/raid5/
>> [root at 82 /usr/src/sbin/geom/class/raid5]#
>> [root at 82 /usr/src/sbin/geom/class/raid5]# mkdir /usr/include/geom/raid5
>> [root at 82 /usr/src/sbin/geom/class/raid5]#
>> [root at 82 /usr/src/sbin/geom/class/raid5]# cp
>> /usr/src/sys/geom/raid5/g_raid5.h /usr/include/geom/raid5/
>> [root at 82 /usr/src/sbin/geom/class/raid5]#
>> [root at 82 /usr/src/sbin/geom/class/raid5]# make depend
>> [root at 82 /usr/src/sbin/geom/class/raid5]#
>> [root at 82 /usr/src/sbin/geom/class/raid5]# make
>> Warning: Object directory not changed from original
>> /usr/src/sbin/geom/class/raid5
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>
> This means nothing important, I would guess... I always ignored that...
>> and after this graid5(at /sbin/graid5 and at any other location) doesn't
>> created : (
>>
> U can either use
> geom raid5
> or u create the necessary hard link:
> ln /sbin/geom /sbin/graid5
>> Can you please help me solve this problem?
>>
> Yup - I hope I did... :-)
> Have fun...
> -Arne
More information about the freebsd-geom
mailing list