Re: [gentoo-user] Creating RAID devices - udev question

2005-11-21 Thread Neil Bothwick
On Sat, 19 Nov 2005 16:19:53 +1100, Brian Parish wrote:

 Removing the initramfs seemed like the line of least resistance here,
 so being basically lazy, that's what I did.  /dev/md0 is now created
 and I can create my RAID array happily enough.
 
 This still doesn't survive a reboot though.  i.e. I have to run the
 mdadm --create command again.

Are the partitions comprising the RAID marked 'Linux raid autodetect' in
cfdisk/fdisk?


-- 
Neil Bothwick

Scrute the inscrutable; eff the ineffable.


signature.asc
Description: PGP signature


Re: [gentoo-user] Creating RAID devices - udev question

2005-11-19 Thread Brian Parish
On Saturday 19 November 2005 16:19, Brian Parish wrote:
 On Sunday 13 November 2005 17:33, Brian Parish wrote:
  On Sunday 13 November 2005 17:23, Richard Fish wrote:
   On 11/12/05, Mike Williams [EMAIL PROTECTED] wrote:
On Sunday 13 November 2005 01:49, Brian Parish wrote:
 I am trying to add a software RAID 5 disk set to an existing
 machine installed using genkernel. All the RAID support is compiled
 into the kernel, but no /dev/md? device files exist. I can create
 these using mknod and make the RAID, but they don't survive a
 reboot. How do I tell udev to create these files as persistant
 devices?
   
All partitions in the RAID set need to be set to partition type fd
(Linux raid autodetect), then the kernel will build the arrays during
startup.
  
   FYI, this is only true if the raid drivers are compiled into the
   kernel (no modules), and you do _not_ use an initramfs to boot the
   system.  If you use an initramfs, the kernel skips the autodetection
   of raid arrays.
  
   -Richard
 
  I did and it does (skip that is).  Thanks again Richard.
 
  Brian

 Removing the initramfs seemed like the line of least resistance here, so
 being basically lazy, that's what I did.  /dev/md0 is now created and I can
 create my RAID array happily enough.

 This still doesn't survive a reboot though.  i.e. I have to run the mdadm
 --create command again.  I assumed that this required something in
 mdadm.conf, so I updated that with all the magic numbers shown by mdadm -D.
 No change though.  Is this an rc-update issue, or something?

More info on this:  It turns out that the main problem is/was that at the time 
the system is attempting to mount the RAID set, not only has it not been 
assembled, but the devices which compose it do not exist.  /dev/sda, b and c 
are being created sometime later in the boot process.

I have now implemented a smooth work-around by:

1. Setting the RAID in fstab to noauto and no checking
2. Creating a script in /etc/init.d which assembles and mounts the RAID set
3. Adding this script to the default group using rc-update

While this means that everything works nicely, it does seem like a kludge and 
there is presumably a way to have the SATA (SCSI) devices created early in 
the boot process, so that the RAID set can be assembled and ready for the 
entry in fstab to be processed.

cheers
Brian
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices - udev question

2005-11-19 Thread Mike Williams
On Saturday 19 November 2005 14:15, Brian Parish wrote:
  This still doesn't survive a reboot though.  i.e. I have to run the mdadm
  --create command again.  I assumed that this required something in
  mdadm.conf, so I updated that with all the magic numbers shown by mdadm
  -D. No change though.  Is this an rc-update issue, or something?

 More info on this:  It turns out that the main problem is/was that at the
 time the system is attempting to mount the RAID set, not only has it not
 been assembled, but the devices which compose it do not exist.  /dev/sda, b
 and c are being created sometime later in the boot process.

That's certainly interesting. What SATA card do you have?
If it's got in kernel drivers, having them compiled into the kernel will get 
them setup before raid starts.

-- 
Mike Williams

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices - udev question

2005-11-19 Thread A. Khattri
On Sun, 20 Nov 2005, Brian Parish wrote:

 I have now implemented a smooth work-around by:

 1. Setting the RAID in fstab to noauto and no checking
 2. Creating a script in /etc/init.d which assembles and mounts the RAID set
 3. Adding this script to the default group using rc-update

Yes, this seems like an unnecessary kludge to me.

I have several servers all using software RAID, udev and 2.6 kernels (all
are SCSI, one is SATA) without any problems.



-- 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices - udev question

2005-11-18 Thread Brian Parish
On Sunday 13 November 2005 17:33, Brian Parish wrote:
 On Sunday 13 November 2005 17:23, Richard Fish wrote:
  On 11/12/05, Mike Williams [EMAIL PROTECTED] wrote:
   On Sunday 13 November 2005 01:49, Brian Parish wrote:
I am trying to add a software RAID 5 disk set to an existing machine
installed using genkernel. All the RAID support is compiled into the
kernel, but no /dev/md? device files exist. I can create these using
mknod and make the RAID, but they don't survive a reboot. How do I
tell udev to create these files as persistant devices?
  
   All partitions in the RAID set need to be set to partition type fd
   (Linux raid autodetect), then the kernel will build the arrays during
   startup.
 
  FYI, this is only true if the raid drivers are compiled into the
  kernel (no modules), and you do _not_ use an initramfs to boot the
  system.  If you use an initramfs, the kernel skips the autodetection
  of raid arrays.
 
  -Richard

 I did and it does (skip that is).  Thanks again Richard.

 Brian
Removing the initramfs seemed like the line of least resistance here, so being 
basically lazy, that's what I did.  /dev/md0 is now created and I can create 
my RAID array happily enough.

This still doesn't survive a reboot though.  i.e. I have to run the mdadm 
--create command again.  I assumed that this required something in 
mdadm.conf, so I updated that with all the magic numbers shown by mdadm -D.  
No change though.  Is this an rc-update issue, or something?

Thanks yet again
Brian
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices - udev question

2005-11-12 Thread Mike Williams
On Sunday 13 November 2005 01:49, Brian Parish wrote:
 I am trying to add a software RAID 5 disk set to an existing machine
 installed using genkernel.  All the RAID support is compiled into the
 kernel, but no /dev/md? device files exist.  I can create these using mknod
 and make the RAID, but they don't survive a reboot.  How do I tell udev to
 create these files as persistant devices?

All partitions in the RAID set need to be set to partition type fd (Linux raid 
autodetect), then the kernel will build the arrays during startup.

-- 
Mike Williams

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices - udev question

2005-11-12 Thread Richard Fish
On 11/12/05, Mike Williams [EMAIL PROTECTED] wrote:
 On Sunday 13 November 2005 01:49, Brian Parish wrote:
  I am trying to add a software RAID 5 disk set to an existing machine
  installed using genkernel. All the RAID support is compiled into the
  kernel, but no /dev/md? device files exist. I can create these using mknod
  and make the RAID, but they don't survive a reboot. How do I tell udev to
  create these files as persistant devices?

 All partitions in the RAID set need to be set to partition type fd (Linux raid
 autodetect), then the kernel will build the arrays during startup.

FYI, this is only true if the raid drivers are compiled into the
kernel (no modules), and you do _not_ use an initramfs to boot the
system.  If you use an initramfs, the kernel skips the autodetection
of raid arrays.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices - udev question

2005-11-12 Thread Brian Parish
On Sunday 13 November 2005 17:23, Richard Fish wrote:
 On 11/12/05, Mike Williams [EMAIL PROTECTED] wrote:
  On Sunday 13 November 2005 01:49, Brian Parish wrote:
   I am trying to add a software RAID 5 disk set to an existing machine
   installed using genkernel. All the RAID support is compiled into the
   kernel, but no /dev/md? device files exist. I can create these using
   mknod and make the RAID, but they don't survive a reboot. How do I tell
   udev to create these files as persistant devices?
 
  All partitions in the RAID set need to be set to partition type fd (Linux
  raid autodetect), then the kernel will build the arrays during startup.

 FYI, this is only true if the raid drivers are compiled into the
 kernel (no modules), and you do _not_ use an initramfs to boot the
 system.  If you use an initramfs, the kernel skips the autodetection
 of raid arrays.

 -Richard

I did and it does (skip that is).  Thanks again Richard.

Brian
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-06-01 Thread Emanuele Morozzi

Scott Storck wrote:
I use the dmraid tools, but they are not in portage yet. Why not, I 
don't know.
There has been a bug open in bugzilla about this for a long time, but 
nothing (noticabliy) is happening with this.

I however, boot from such a partition, so that ebuild alone doesn't help me.
I went the route of using an initrd which runs dmraid -ay which 
creates the device nodes.
I would reccommend to you, that you also use an initrd containing 
dmraid, even if you don't boot from such a partition.

This way the devices are available when the normal system starts.

I started off using the script and linuxrc found here 
http://tienstra4.flatnet.tudelft.nl/~gerte/gen2dmraid/

There is also at least one thread about this in the gentoo forums.
Here is one for example: 
http://forums.gentoo.org/viewtopic-t-258981-highlight-dmraid.html


I have however since then created my own script which modifies the 
initrd created by genkernel.
I don't use genkernel to make the kernels themselves, but it is the best 
way in my book to make a initrd in gentoo.


One world of advice, regardless which way you choose, be sure to use the 
newest dmraid version.

The older versions had various bugs.
My favorite bug was one that setup the raid block size incorrectly while 
doing mirroring, on two different controlers I use.
It isn't funny, when you buy two 400GB drives, and when mirrored, you 
only see 200GB in linux.


Otherwise, you could always go back to using devfs.
I think devfs will still be supported for a little while.
Maybe by then some gentoo dev will decide to do something about these 
problems.


Regards,
Scott
-- gentoo-user@gentoo.org mailing list


I also used dmraid tools, but now that I have fixed the problem in the 
kernel configuration I'm not able to detect the raid with 'dmraid -ay'. 
With old kernel (devfs) I worked perfectly, but with this new one (udev) 
there're so much. But with this one I have solved other problems that 
I've suffered since 1 month.


I'll give an eye on the addresses you gave me.

Regards, Emanuele.





___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-31 Thread Emanuele Morozzi

Richard Fish wrote:

Emanuele Morozzi wrote:



Can anybody help me?





Sorry, I think you have us stumped.  If you run:

dmraid ...
dmsetup ls

and dmsetup reports no devices, then my guess is that dmraid is
misconfigured or broken.  But I don't know enough about dmraid to help. 
I will in about 3-4 months, when I upgrade my laptop to a model that

supports SATA RAID, but that doesn't help you today.

You might also try posting a message to [EMAIL PROTECTED]

-Richard



Thanks for your support.





___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-31 Thread Emanuele Morozzi

Me:

Hallo, I recently passed to udev, so now I cannot use my Raid.

Gentoo si installed in /dev/hda.
The Raid is a striping raid composed of /dev/sda /dev/sdb and consists
of 4 partitions. I created it installing windows (work reason).
The SATA controller is a Silicon 3512.

Before, with devfs, I used dmraid to create
dev/mapper/silsomething{1,2,3,4} and mounted direclty using this
devices. I had to remove dmraid eBuild from /usr/local/portage (or
something like that) because it blocked the emerge -uD world, and the
devices now are disappeared (i.e. using dmraid the devices are not
created). I need to create them manually but I have not found the right
way to do it.
I someone knows how to create this devices, please tell me.

*

By the advices of you (Scott Stork), Richard Fish and A. Khattri I 
checked the kernel .config to see if there was this line 
CONFIG_BLK_DEV_DM=y.


I found this line compiled as module without autoloading at boot. Now, 
with the kernel 2.6.10-r6 using dmraid I have the devices.
With this new one dmraid  dmsetup says there are no devices found. At 
boot time while autodetecting md array no error is encountered.






___ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.beta.messenger.yahoo.com


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-31 Thread Scott Storck




Emanuele Morozzi schrieb:
Me:
  
  
Hallo, I recently passed to udev, so now I cannot use my Raid.
  
  
Gentoo si installed in /dev/hda.
  
The Raid is a striping raid composed of /dev/sda /dev/sdb and consists
  
of 4 partitions. I created it installing windows (work reason).
  
The SATA controller is a Silicon 3512.
  
  
Before, with devfs, I used dmraid to create
  
dev/mapper/silsomething{1,2,3,4} and mounted direclty using
this
  
devices. I had to remove dmraid eBuild from /usr/local/portage (or
  
something like that) because it blocked the "emerge -uD world", and the
  
devices now are disappeared (i.e. using dmraid the devices are not
  
created). I need to create them manually but I have not found the right
  
way to do it.
  
I someone knows how to create this devices, please tell me.
  
  
*
  
  
By the advices of you (Scott Stork), Richard Fish and A. Khattri I
checked the kernel .config to see if there was this line
CONFIG_BLK_DEV_DM=y.
  
  
I found this line compiled as module without autoloading at boot. Now,
with the kernel 2.6.10-r6 using dmraid I have the devices.
  
With this new one dmraid  dmsetup says there are no devices found.
At boot time while autodetecting md array no error is encountered.
  
  

I use the dmraid tools, but they are not in portage yet. Why not, I
don't know.
There has been a bug open in bugzilla about this for a long time, but
nothing (noticabliy) is happening with this.
I however, boot from such a partition, so that ebuild alone doesn't
help me.
I went the route of using an initrd which runs "dmraid -ay" which
creates the device nodes.
I would reccommend to you, that you also use an initrd containing
dmraid, even if you don't boot from such a partition.
This way the devices are available when the normal system starts.

I started off using the script and linuxrc found here
http://tienstra4.flatnet.tudelft.nl/~gerte/gen2dmraid/
There is also at least one thread about this in the gentoo forums.
Here is one for example:
http://forums.gentoo.org/viewtopic-t-258981-highlight-dmraid.html

I have however since then created my own script which modifies the
initrd created by genkernel.
I don't use genkernel to make the kernels themselves, but it is the
best way in my book to make a initrd in gentoo.

One world of advice, regardless which way you choose, be sure to use
the newest dmraid version.
The older versions had various bugs.
My favorite bug was one that setup the raid block size incorrectly
while doing mirroring, on two different controlers I use.
It isn't funny, when you buy two 400GB drives, and when mirrored, you
only see 200GB in linux.

Otherwise, you could always go back to using devfs.
I think devfs will still be supported for a little while.
Maybe by then some gentoo dev will decide to do something about these
problems.

Regards,
Scott



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-30 Thread Emanuele Morozzi

Can anybody help me?

Scott Storck wrote:

Emanuele Morozzi schrieb:

You were right, now I have compiled the kernel with 
CONFIG_BLK_DEV_DM=y, but it's the same as before; there are not 
peculiar errors, but dmraid continues not to create the devices in 
/dev/mapper.


Richard Fish wrote:

This means that you do not have the device mapper driver compiled or 
loaded.


You should have:

carcharias linux # grep BLK_DEV_DM /usr/src/linux/.config
CONFIG_BLK_DEV_DM=y

-Richard






Does /dev/mapper/control exist?

-Scott








___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-30 Thread Richard Fish
Emanuele Morozzi wrote:

 Can anybody help me?



Sorry, I think you have us stumped.  If you run:

dmraid ...
dmsetup ls

and dmsetup reports no devices, then my guess is that dmraid is
misconfigured or broken.  But I don't know enough about dmraid to help. 
I will in about 3-4 months, when I upgrade my laptop to a model that
supports SATA RAID, but that doesn't help you today.

You might also try posting a message to [EMAIL PROTECTED]

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-30 Thread Scott Storck

Emanuele Morozzi schrieb:


Can anybody help me?


Sorry, but I seem to have deleted this thread, and I can't remember 
exactly what all you wrote.


If I remember correctly, you have a SATA raid controler on which you 
created a raid over two complete disks, right?


-Scott

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-26 Thread Emanuele Morozzi

Scott Storck wrote:

Emanuele Morozzi schrieb:

You were right, now I have compiled the kernel with 
CONFIG_BLK_DEV_DM=y, but it's the same as before; there are not 
peculiar errors, but dmraid continues not to create the devices in 
/dev/mapper.


Richard Fish wrote:

This means that you do not have the device mapper driver compiled or 
loaded.


You should have:

carcharias linux # grep BLK_DEV_DM /usr/src/linux/.config
CONFIG_BLK_DEV_DM=y

-Richard






Does /dev/mapper/control exist?

-Scott



Yes, it exists since I compiled the kernel with CONFIG_BLK_DEV_DM=y

- Emanuele


___ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.beta.messenger.yahoo.com


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-25 Thread Emanuele Morozzi
You're right, the device manager was compiled as module, but I thought 
it was autoloaded at boot and finded no entry in 
/etc/modules.autoload.d/kernel-2.6. Now I try to copile directly into 
the kernel. Thanks


Richard Fish wrote:



This means that you do not have the device mapper driver compiled or loaded.

You should have:

carcharias linux # grep BLK_DEV_DM /usr/src/linux/.config
CONFIG_BLK_DEV_DM=y

-Richard




--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-25 Thread Emanuele Morozzi
You were right, now I have compiled the kernel with 
CONFIG_BLK_DEV_DM=y, but it's the same as before; there are not 
peculiar errors, but dmraid continues not to create the devices in 
/dev/mapper.


Richard Fish wrote:

This means that you do not have the device mapper driver compiled or loaded.

You should have:

carcharias linux # grep BLK_DEV_DM /usr/src/linux/.config
CONFIG_BLK_DEV_DM=y

-Richard




--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-25 Thread Richard Fish
Emanuele Morozzi wrote:

 You were right, now I have compiled the kernel with
 CONFIG_BLK_DEV_DM=y, but it's the same as before; there are not
 peculiar errors, but dmraid continues not to create the devices in
 /dev/mapper.


What does dmsetup ls show (after running dmraid)?

Did it create /dev/sil_* instead??

More info at:

http://bugs.gentoo.org/show_bug.cgi?id=63041
http://forums.gentoo.org/viewtopic-t-244941-highlight-dmraid.html


Me thinks I've written this before

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-25 Thread Scott Storck

Emanuele Morozzi schrieb:

You were right, now I have compiled the kernel with 
CONFIG_BLK_DEV_DM=y, but it's the same as before; there are not 
peculiar errors, but dmraid continues not to create the devices in 
/dev/mapper.


Richard Fish wrote:

This means that you do not have the device mapper driver compiled or 
loaded.


You should have:

carcharias linux # grep BLK_DEV_DM /usr/src/linux/.config
CONFIG_BLK_DEV_DM=y

-Richard





Does /dev/mapper/control exist?

-Scott

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-24 Thread Emanuele Morozzi
I had this idea too, but what I have to say is that in the first 
partition is running WindowsXP. I've created the raid while installing 
MS Windows. Using dmraid -ay and devfs, I was able to create the 
proper devices in /dev/mapper , but this is no more because I want 
udev; since I use udev these devices (/dev/mapper/sil*{1,2,3,4}) are 
not in /dev any more.


Richard Fish wrote:

Ok, I don't use mdadm, but that looks completely screwed up to me. 
First, if you want the md driver to autodetect your raid arrays, the

partitions types on sda, as well as sdb4, need to be 0xfd.  Use fdisk to
fix them.  You also need to create the arrays with persistent superblocks.

But, more importantly, your partition sizes are not even close to a
match for raid 0.  For example, /dev/md1 consists of sda2 and sdb2
according to your mdadm.conf file...but sda2 is ~92GB while sdb2 is
0.5GB.  That means /dev/md1 (assuming raid0 or raid1) should come out
about 1GB total size, wasting 91GB of space

-Richard




--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-24 Thread Emanuele Morozzi

A. Khattri wrote:


I think you need to heed my earlier advice (which was to read the RAID
HOWTO docs at tldp.org) so you understand what the different RAID levels
mean.


I've read the docs, and there's nothing new for me; I just knew the 
meaning of RAID levels.
The raid and relative partitions were created by Windows using the 
Sil3512 driver (the Silicon SATA-RAID controller is integrated in my 
MB); before installing Winsucks I simply configured the Raid in the Bios 
of that controller (i.e. not in the Bios of the MB) and used windows to 
make the partition table.
With dmraid and devfs there weren't problems in detecting the raid and 
creating the right devices, but I suppose that with udev dmraid works no 
more, because it did not create the devices. I've posted my fdisk -l 
output, and I know there's something wrong about it because simply the 
sizes of partitions doesn't match; I repeat, dmraid was able to build 
the raid devices in the right way, why I can't do this using mdadm?


This is the output of dmraid -s:

*** Set
name   : sil_afabcfabdecgb
size   : 796588032
stride : 32
type   : striped
status : ok
subsets: 0
devs   : 2
spares : 0

This means dmraid detect the raid in the right way.

Output of dmraid -ay -t:

sil_afabcfabdecgb: 0 796588032 striped 2 32 /dev/sda 0 /dev/sdb 0


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-24 Thread Emanuele Morozzi

This is the output of dmsetup ls:

/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Command failed

No, dmraid doesnt' create the devices (2.6.11-r9 with udev); I have 
tried to rerun Gentoo with the old kernel (2.6.11-r8 with devfs) and 
dmraid works. I don't understand, I've used make oldconfig.


Richard Fish wrote:


Ah, *now* I understand.  This has nothing to do with software raid or
mdadm.  Viewing the partition tables is also going to be completely useless.

Does dmraid do anything when you run it...is there any output? 


What does dmsetup ls show?

Did it create /dev/sil_* instead??

More info at:

http://bugs.gentoo.org/show_bug.cgi?id=63041
http://forums.gentoo.org/viewtopic-t-244941-highlight-dmraid.html


This was the first message:

Hallo, I recently passed to udev, so now I cannot use my Raid.

Gentoo si installed in /dev/hda.
The Raid is a striping raid composed of /dev/sda /dev/sdb and consists
of 4 partitions.
I created it installing windows (work reason). The SATA controller is 
a Silicon 3512.


Before, with devfs, I used dmraid to create
dev/mapper/silsomething{1,2,3,4} and mounted direclty using this
devices. I had to remove dmraid eBuild from /usr/local/portage (or
something like that) because it blocked the emerge -uD world, and the
devices now are disappeared (i.e. using dmraid the devices are not
created). I need to create them manually but I have not found the 
right way to do it.

If someone knows how to create this devices, please tell me.

emanuele


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-24 Thread Richard Fish
Emanuele Morozzi wrote:

 This is the output of dmsetup ls:

 /proc/misc: No entry for device-mapper found
 Is device-mapper driver missing from kernel?
 Failure to communicate with kernel device-mapper driver.
 Command failed


This means that you do not have the device mapper driver compiled or loaded.

You should have:

carcharias linux # grep BLK_DEV_DM /usr/src/linux/.config
CONFIG_BLK_DEV_DM=y

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-23 Thread Emanuele Morozzi

A. Khattri wrote:

On Fri, 20 May 2005, Emanuele Morozzi wrote:



Gentoo si installed in /dev/hda.
The Raid is a striping raid composed of /dev/sda /dev/sdb and consists
of 4 partitions. I created it installing windows (work reason).
The SATA controller is a Silicon 3512.

Before, with devfs, I used dmraid to create
dev/mapper/silsomething{1,2,3,4} and mounted direclty using this
devices. I had to remove dmraid eBuild from /usr/local/portage (or
something like that) because it blocked the emerge -uD world, and the
devices now are disappeared (i.e. using dmraid the devices are not
created). I need to create them manually but I have not found the right
way to do it.
I someone knows how to create this devices, please tell me.



The normal way to make (software) RAID devices is to use mkraid or
mdadm.

*  sys-fs/mdadm
  Latest version available: 1.9.0-r1
  Latest version installed: 1.9.0-r1
  Size of downloaded files: 92 kB
  Homepage:http://cgi.cse.unsw.edu.au/~neilb/mdadm
  Description: A useful tool for running RAID systems - it can be used as a 
replacement for the raidtools
  License: GPL-2

*  sys-fs/raidtools
  Latest version available: 1.00.3-r4
  Latest version installed: [ Not Installed ]
  Size of downloaded files: 163 kB
  Homepage:http://people.redhat.com/mingo/raidtools/
  Description: Linux RAID 0/1/4/5 utilities
  License: GPL-2

You should also check that you have md support in your kernel (or if its a
module, use modprobe md and modprobe raidX (where X is your RAID level
- if you dont know what RAID level means I suggest you read the RAID HOWTO
at tldp.org).


I use mdadm and I have not compiled md and raid0 as modules, but 
directly into the kernel. The problem is that while booting md doesn't 
find the raid properly.


If you,re interested, this is part of the output of fdisk -l

**
Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   12677215029717  HPFS/NTFS
/dev/sda22678   25624   184321777+   7  HPFS/NTFS
/dev/sda3   25625   39137   108543172+   7  HPFS/NTFS
/dev/sda4   39138   49585839235607  HPFS/NTFS

Disk /dev/sdb: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1   *   1158112699351   fd  Linux raid 
autodetect
/dev/sdb215821706 1004062+  fd  Linux raid 
autodetect
/dev/sdb317071902 1574370   fd  Linux raid 
autodetect

/dev/sdb41903   24792   1838639255  Extended
**

And this is my mdadm.conf:

**
DEVICE /dev/sda1
DEVICE /dev/sdb1
DEVICE /dev/sda2
DEVICE /dev/sdb2
DEVICE /dev/sda3
DEVICE /dev/sdb3
DEVICE /dev/sda4
DEVICE /dev/sdb4

ARRAY /dev/md0 devices=/dev/sda1,/dev/sdb1
ARRAY /dev/md1 devices=/dev/sda2,/dev/sdb2
ARRAY /dev/md2 devices=/dev/sda3,/dev/sdb3
ARRAY /dev/md3 devices=/dev/sda4,/dev/sdb4

PROGRAM /usr/sbin/handle-mdadm-events
**



--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-23 Thread A. Khattri
On Mon, 23 May 2005, Emanuele Morozzi wrote:

 I use mdadm and I have not compiled md and raid0 as modules, but
 directly into the kernel. The problem is that while booting md doesn't
 find the raid properly.

 If you,re interested, this is part of the output of fdisk -l

 **
 Disk /dev/sda: 203.9 GB, 203928109056 bytes
 255 heads, 63 sectors/track, 24792 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot  Start End  Blocks   Id  System
 /dev/sda1   *   12677215029717  HPFS/NTFS
 /dev/sda22678   25624   184321777+   7  HPFS/NTFS
 /dev/sda3   25625   39137   108543172+   7  HPFS/NTFS
 /dev/sda4   39138   49585839235607  HPFS/NTFS

 Disk /dev/sdb: 203.9 GB, 203928109056 bytes
 255 heads, 63 sectors/track, 24792 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot  Start End  Blocks   Id  System
 /dev/sdb1   *   1158112699351   fd  Linux raid
 autodetect
 /dev/sdb215821706 1004062+  fd  Linux raid
 autodetect
 /dev/sdb317071902 1574370   fd  Linux raid
 autodetect
 /dev/sdb41903   24792   1838639255  Extended
 **

As someone else pointed out - these need to be of type autodetect RAID.

 And this is my mdadm.conf:

 **
 DEVICE /dev/sda1
 DEVICE /dev/sdb1
 DEVICE /dev/sda2
 DEVICE /dev/sdb2
 DEVICE /dev/sda3
 DEVICE /dev/sdb3
 DEVICE /dev/sda4
 DEVICE /dev/sdb4

 ARRAY /dev/md0 devices=/dev/sda1,/dev/sdb1
 ARRAY /dev/md1 devices=/dev/sda2,/dev/sdb2
 ARRAY /dev/md2 devices=/dev/sda3,/dev/sdb3
 ARRAY /dev/md3 devices=/dev/sda4,/dev/sdb4

 PROGRAM /usr/sbin/handle-mdadm-events
 **

I think you need to heed my earlier advice (which was to read the RAID
HOWTO docs at tldp.org) so you understand what the different RAID levels
mean.


-- 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-20 Thread A. Khattri
On Fri, 20 May 2005, Emanuele Morozzi wrote:

 Gentoo si installed in /dev/hda.
 The Raid is a striping raid composed of /dev/sda /dev/sdb and consists
 of 4 partitions. I created it installing windows (work reason).
 The SATA controller is a Silicon 3512.

 Before, with devfs, I used dmraid to create
 dev/mapper/silsomething{1,2,3,4} and mounted direclty using this
 devices. I had to remove dmraid eBuild from /usr/local/portage (or
 something like that) because it blocked the emerge -uD world, and the
 devices now are disappeared (i.e. using dmraid the devices are not
 created). I need to create them manually but I have not found the right
 way to do it.
 I someone knows how to create this devices, please tell me.

The normal way to make (software) RAID devices is to use mkraid or
mdadm.

*  sys-fs/mdadm
  Latest version available: 1.9.0-r1
  Latest version installed: 1.9.0-r1
  Size of downloaded files: 92 kB
  Homepage:http://cgi.cse.unsw.edu.au/~neilb/mdadm
  Description: A useful tool for running RAID systems - it can be used as a 
replacement for the raidtools
  License: GPL-2

*  sys-fs/raidtools
  Latest version available: 1.00.3-r4
  Latest version installed: [ Not Installed ]
  Size of downloaded files: 163 kB
  Homepage:http://people.redhat.com/mingo/raidtools/
  Description: Linux RAID 0/1/4/5 utilities
  License: GPL-2

You should also check that you have md support in your kernel (or if its a
module, use modprobe md and modprobe raidX (where X is your RAID level
- if you dont know what RAID level means I suggest you read the RAID HOWTO
at tldp.org).


-- 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Creating RAID devices

2005-05-20 Thread Ognjen Bezanov
A. Khattri wrote:

On Fri, 20 May 2005, Emanuele Morozzi wrote:

  

Gentoo si installed in /dev/hda.
The Raid is a striping raid composed of /dev/sda /dev/sdb and consists
of 4 partitions. I created it installing windows (work reason).
The SATA controller is a Silicon 3512.

Before, with devfs, I used dmraid to create
dev/mapper/silsomething{1,2,3,4} and mounted direclty using this
devices. I had to remove dmraid eBuild from /usr/local/portage (or
something like that) because it blocked the emerge -uD world, and the
devices now are disappeared (i.e. using dmraid the devices are not
created). I need to create them manually but I have not found the right
way to do it.
I someone knows how to create this devices, please tell me.



The normal way to make (software) RAID devices is to use mkraid or
mdadm.

*  sys-fs/mdadm
  Latest version available: 1.9.0-r1
  Latest version installed: 1.9.0-r1
  Size of downloaded files: 92 kB
  Homepage:http://cgi.cse.unsw.edu.au/~neilb/mdadm
  Description: A useful tool for running RAID systems - it can be used as 
 a replacement for the raidtools
  License: GPL-2

*  sys-fs/raidtools
  Latest version available: 1.00.3-r4
  Latest version installed: [ Not Installed ]
  Size of downloaded files: 163 kB
  Homepage:http://people.redhat.com/mingo/raidtools/
  Description: Linux RAID 0/1/4/5 utilities
  License: GPL-2

You should also check that you have md support in your kernel (or if its a
module, use modprobe md and modprobe raidX (where X is your RAID level
- if you dont know what RAID level means I suggest you read the RAID HOWTO
at tldp.org).


  

Raidtools is depreciated in favour of mdadm, so id recommend you use
mdadm. I use it for software RAID5 and its been working fine for over a
year now, running 24/7. Its also very simple to configure and relativly
easy to use.



-- 
gentoo-user@gentoo.org mailing list