* Raid on USB flash disk
@ 2007-02-10 18:24 Arne Jansen
2007-02-10 18:57 ` Steve Cousins
2007-03-05 16:38 ` Rob Bray
0 siblings, 2 replies; 3+ messages in thread
From: Arne Jansen @ 2007-02-10 18:24 UTC (permalink / raw)
To: linux-raid
Hi,
I just tried to setup a one-device raid onto an USB flash drive.
Creating, setting up ext3 and filling with data was no problem.
But when I tried to work with it afterwards the metadevice was
unresponsive. I tried both linear and raid0 levels, but that
made no difference.
For my uneducated eye it looks like something is deadlocking if
md tries to read from the device.
I'm using kernel 2.6.18 (gentoo) on a VIA EPIA CN10000 mainboard
with a 2GB USB flash drive (extreme). Please ask if I should provide
more information like dmesg or lspci.
The main reason why I'm trying this weird setup is that the USB
drive is always enumerated last in my kernel, and I want to boot
from it. That means every time I add a disk or remove one I have
to edit grub.conf and fstab. Very inconvenient. So my idea was
to create a single device md on it and leave it to the autodetection
to find the device. So I never have to edit /etc/fstab again for
a simple hardware change and I'm independent of any enumeration
changes in future kernel releases.
But unfortunately it doesn't work :-(
Any help appreciated.
--Arne
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Raid on USB flash disk
2007-02-10 18:24 Raid on USB flash disk Arne Jansen
@ 2007-02-10 18:57 ` Steve Cousins
2007-03-05 16:38 ` Rob Bray
1 sibling, 0 replies; 3+ messages in thread
From: Steve Cousins @ 2007-02-10 18:57 UTC (permalink / raw)
To: Arne Jansen; +Cc: linux-raid
Arne Jansen wrote:
>
> The main reason why I'm trying this weird setup is that the USB
> drive is always enumerated last in my kernel, and I want to boot
> from it. That means every time I add a disk or remove one I have
> to edit grub.conf and fstab. Very inconvenient. So my idea was
> to create a single device md on it and leave it to the autodetection
> to find the device. So I never have to edit /etc/fstab again for
> a simple hardware change and I'm independent of any enumeration
> changes in future kernel releases.
>
> But unfortunately it doesn't work :-(
Sorry not to answer your main question but why not use labels in your
USB device partitions and use the labels in your fstab. This will make
it so it doesn't matter which dev file it uses.
Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Raid on USB flash disk
2007-02-10 18:24 Raid on USB flash disk Arne Jansen
2007-02-10 18:57 ` Steve Cousins
@ 2007-03-05 16:38 ` Rob Bray
1 sibling, 0 replies; 3+ messages in thread
From: Rob Bray @ 2007-03-05 16:38 UTC (permalink / raw)
To: Arne Jansen; +Cc: linux-raid
> Hi,
>
> I just tried to setup a one-device raid onto an USB flash drive.
> Creating, setting up ext3 and filling with data was no problem.
> But when I tried to work with it afterwards the metadevice was
> unresponsive. I tried both linear and raid0 levels, but that
> made no difference.
> For my uneducated eye it looks like something is deadlocking if
> md tries to read from the device.
>
> I'm using kernel 2.6.18 (gentoo) on a VIA EPIA CN10000 mainboard
> with a 2GB USB flash drive (extreme). Please ask if I should provide
> more information like dmesg or lspci.
>
> The main reason why I'm trying this weird setup is that the USB
> drive is always enumerated last in my kernel, and I want to boot
> from it. That means every time I add a disk or remove one I have
> to edit grub.conf and fstab. Very inconvenient. So my idea was
> to create a single device md on it and leave it to the autodetection
> to find the device. So I never have to edit /etc/fstab again for
> a simple hardware change and I'm independent of any enumeration
> changes in future kernel releases.
>
> But unfortunately it doesn't work :-(
>
> Any help appreciated.
>
> --Arne
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
I believe you could use udev persistant names (eg /dev/dsk/by-name) to
refer to your USB partitions, instead of /dev/sd?, etc.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-05 16:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-10 18:24 Raid on USB flash disk Arne Jansen
2007-02-10 18:57 ` Steve Cousins
2007-03-05 16:38 ` Rob Bray
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).