linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* access array from knoppix
@ 2006-09-12 11:52 Dexter Filmore
  2006-09-12 13:29 ` Justin Piszcz
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Dexter Filmore @ 2006-09-12 11:52 UTC (permalink / raw)
  To: Linux RAID Mailing List

When running Knoppix on my file server, I can't mount /dev/md0 simply because 
it isn't there. 
Am I guessing right that I need to recreate the array?
How do I gather the necessary parameters?

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access array from knoppix
  2006-09-12 11:52 access array from knoppix Dexter Filmore
@ 2006-09-12 13:29 ` Justin Piszcz
  2006-09-12 14:01   ` access *exisiting* " Dexter Filmore
       [not found] ` <200609121607.22031.Dexter.Filmore@gmx.de>
  2006-09-14 16:16 ` access " Steve Cousins
  2 siblings, 1 reply; 16+ messages in thread
From: Justin Piszcz @ 2006-09-12 13:29 UTC (permalink / raw)
  To: Dexter Filmore; +Cc: Linux RAID Mailing List

fdisk -l

then you have to assemble the array

mdadm --assemble /dev/md0 /dev/hda1 /dev/hdb1 # i think, man mdadm

On Tue, 12 Sep 2006, Dexter Filmore wrote:

> When running Knoppix on my file server, I can't mount /dev/md0 simply because
> it isn't there.
> Am I guessing right that I need to recreate the array?
> How do I gather the necessary parameters?
>
> -- 
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
> w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@
> b++(+++) DI+++ D- G++ e* h>++ r* y?
> ------END GEEK CODE BLOCK------
>
> http://www.stop1984.com
> http://www.againsttcpa.com
> -
> 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
>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *exisiting* array from knoppix
  2006-09-12 13:29 ` Justin Piszcz
@ 2006-09-12 14:01   ` Dexter Filmore
  2006-09-14 15:58     ` Tuomas Leikola
  0 siblings, 1 reply; 16+ messages in thread
From: Dexter Filmore @ 2006-09-12 14:01 UTC (permalink / raw)
  To: linux-raid

Am Dienstag, 12. September 2006 15:29 schrieb Justin Piszcz:
> fdisk -l
>
> then you have to assemble the array
>
> mdadm --assemble /dev/md0 /dev/hda1 /dev/hdb1 # i think, man mdadm

Not what I meant: there already exists an array on a file server that was 
created from the server os, I want to boot that server from knoppix instead 
and access the array.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *existing* array from knoppix
       [not found]   ` <Pine.LNX.4.64.0609121008050.19418@p34.internal.lan>
@ 2006-09-12 14:37     ` Dexter Filmore
  2006-09-12 15:47       ` Justin Piszcz
                         ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Dexter Filmore @ 2006-09-12 14:37 UTC (permalink / raw)
  To: Justin Piszcz, linux-raid

Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:
> /dev/MAKEDEV /dev/md0
>
> also make sure the SW raid modules etc are loaded if necessary.

Won't work, MAKEDEV doesn't know how to create [/dev/]md0.


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *existing* array from knoppix
  2006-09-12 14:37     ` access *existing* " Dexter Filmore
@ 2006-09-12 15:47       ` Justin Piszcz
  2006-09-12 16:29         ` Dexter Filmore
  2006-09-12 18:17       ` dean gaudet
  2006-09-13 13:48       ` Rob Bray
  2 siblings, 1 reply; 16+ messages in thread
From: Justin Piszcz @ 2006-09-12 15:47 UTC (permalink / raw)
  To: Dexter Filmore; +Cc: linux-raid

Strange, what knoppix are you using? I recall doing it to fix an XFS bug 
with 4.x and 5.x.

On Tue, 12 Sep 2006, Dexter Filmore wrote:

> Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:
>> /dev/MAKEDEV /dev/md0
>>
>> also make sure the SW raid modules etc are loaded if necessary.
>
> Won't work, MAKEDEV doesn't know how to create [/dev/]md0.
>
>
> -- 
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
> w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@
> b++(+++) DI+++ D- G++ e* h>++ r* y?
> ------END GEEK CODE BLOCK------
>
> http://www.stop1984.com
> http://www.againsttcpa.com
>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *existing* array from knoppix
  2006-09-12 15:47       ` Justin Piszcz
@ 2006-09-12 16:29         ` Dexter Filmore
  2006-09-12 16:38           ` Henrik Holst
  0 siblings, 1 reply; 16+ messages in thread
From: Dexter Filmore @ 2006-09-12 16:29 UTC (permalink / raw)
  To: Justin Piszcz; +Cc: linux-raid

Am Dienstag, 12. September 2006 17:47 schrieb Justin Piszcz:
> Strange, what knoppix are you using? I recall doing it to fix an XFS bug
> with 4.x and 5.x.

5.0.1. Maybe they gone udev now and didn't handle md devices.
I'll see if I can so something in /lib/udev/devices.

>
> On Tue, 12 Sep 2006, Dexter Filmore wrote:
> > Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:
> >> /dev/MAKEDEV /dev/md0
> >>
> >> also make sure the SW raid modules etc are loaded if necessary.
> >
> > Won't work, MAKEDEV doesn't know how to create [/dev/]md0.
> >
> >
> > --
> > -----BEGIN GEEK CODE BLOCK-----
> > Version: 3.12
> > GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
> > w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@
> > b++(+++) DI+++ D- G++ e* h>++ r* y?
> > ------END GEEK CODE BLOCK------
> >
> > http://www.stop1984.com
> > http://www.againsttcpa.com

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *existing* array from knoppix
  2006-09-12 16:29         ` Dexter Filmore
@ 2006-09-12 16:38           ` Henrik Holst
  0 siblings, 0 replies; 16+ messages in thread
From: Henrik Holst @ 2006-09-12 16:38 UTC (permalink / raw)
  To: Dexter Filmore, Justin Piszcz; +Cc: linux-raid

Dexter Filmore wrote:
> Am Dienstag, 12. September 2006 17:47 schrieb Justin Piszcz:
>> Strange, what knoppix are you using? I recall doing it to fix an XFS bug
>> with 4.x and 5.x.
> 
> 5.0.1. Maybe they gone udev now and didn't handle md devices.
> I'll see if I can so something in /lib/udev/devices.

Try this:

mdadm -Av /dev/md0 --auto=yes /dev/hda1 /dev/hdb1
                   ^^^^^^^^^^

I have used this with success on many Udev systems. It will create
/dev/md0 automatic.

Henrik Holst

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *existing* array from knoppix
  2006-09-12 14:37     ` access *existing* " Dexter Filmore
  2006-09-12 15:47       ` Justin Piszcz
@ 2006-09-12 18:17       ` dean gaudet
  2006-09-13 13:48       ` Rob Bray
  2 siblings, 0 replies; 16+ messages in thread
From: dean gaudet @ 2006-09-12 18:17 UTC (permalink / raw)
  To: Dexter Filmore; +Cc: Justin Piszcz, linux-raid

On Tue, 12 Sep 2006, Dexter Filmore wrote:

> Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:
> > /dev/MAKEDEV /dev/md0
> >
> > also make sure the SW raid modules etc are loaded if necessary.
> 
> Won't work, MAKEDEV doesn't know how to create [/dev/]md0.

echo 'DEVICE partitions' >/tmp/mdadm.conf
mdadm --detail --scan --config=/tmp/mdadm.conf >>/tmp/mdadm.conf

take a look in /tmp/mdadm.conf ... your root array should be listed.

mdadm --assemble --config=/tmp/mdadm.conf --auto=yes /dev/md0

-dean

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *existing* array from knoppix
  2006-09-12 14:37     ` access *existing* " Dexter Filmore
  2006-09-12 15:47       ` Justin Piszcz
  2006-09-12 18:17       ` dean gaudet
@ 2006-09-13 13:48       ` Rob Bray
  2006-09-13 14:32         ` Dexter Filmore
  2 siblings, 1 reply; 16+ messages in thread
From: Rob Bray @ 2006-09-13 13:48 UTC (permalink / raw)
  To: Dexter Filmore; +Cc: linux-raid

> Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:
>> /dev/MAKEDEV /dev/md0
>>
>> also make sure the SW raid modules etc are loaded if necessary.
>
> Won't work, MAKEDEV doesn't know how to create [/dev/]md0.

mknod /dev/md0 b 9 0
perhaps?


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *existing* array from knoppix
  2006-09-13 13:48       ` Rob Bray
@ 2006-09-13 14:32         ` Dexter Filmore
  0 siblings, 0 replies; 16+ messages in thread
From: Dexter Filmore @ 2006-09-13 14:32 UTC (permalink / raw)
  To: Rob Bray; +Cc: linux-raid

Am Mittwoch, 13. September 2006 15:48 schrieb Rob Bray:
> > Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:
> >> /dev/MAKEDEV /dev/md0
> >>
> >> also make sure the SW raid modules etc are loaded if necessary.
> >
> > Won't work, MAKEDEV doesn't know how to create [/dev/]md0.
>
> mknod /dev/md0 b 9 0
> perhaps?

Uh huh, go and try. Next boot it's gone again.
running that command in /lib/udev/devices however made it permanent. 

Took way too long to figure tho. If the kernel devs feel like they need to 
hurl over a working system they better release proper docs for the 
replacement. And stop screwing with the syntax.
(Yes, wrong list, I know...)


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *exisiting* array from knoppix
  2006-09-12 14:01   ` access *exisiting* " Dexter Filmore
@ 2006-09-14 15:58     ` Tuomas Leikola
  2006-09-14 16:06       ` Dexter Filmore
  0 siblings, 1 reply; 16+ messages in thread
From: Tuomas Leikola @ 2006-09-14 15:58 UTC (permalink / raw)
  To: Dexter Filmore; +Cc: linux-raid

> > mdadm --assemble /dev/md0 /dev/hda1 /dev/hdb1 # i think, man mdadm
>
> Not what I meant: there already exists an array on a file server that was
> created from the server os, I want to boot that server from knoppix instead
> and access the array.
>

exactly what --assemble does. looks at disks, finds raid components,
assembles an array out of them (meaning, tells the kernel where to
find the pieces) and starts it.

no? did you try? read the manual?

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *exisiting* array from knoppix
  2006-09-14 15:58     ` Tuomas Leikola
@ 2006-09-14 16:06       ` Dexter Filmore
  2006-09-14 16:41         ` Tuomas Leikola
  0 siblings, 1 reply; 16+ messages in thread
From: Dexter Filmore @ 2006-09-14 16:06 UTC (permalink / raw)
  To: Tuomas Leikola; +Cc: linux-raid

Am Donnerstag, 14. September 2006 17:58 schrieb Tuomas Leikola:
> > > mdadm --assemble /dev/md0 /dev/hda1 /dev/hdb1 # i think, man mdadm
> >
> > Not what I meant: there already exists an array on a file server that was
> > created from the server os, I want to boot that server from knoppix
> > instead and access the array.
>
> exactly what --assemble does. looks at disks, finds raid components,
> assembles an array out of them (meaning, tells the kernel where to
> find the pieces) and starts it.
>
> no? did you try? read the manual?

How about you read the rest of the thread, wisecracker?


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access array from knoppix
  2006-09-12 11:52 access array from knoppix Dexter Filmore
  2006-09-12 13:29 ` Justin Piszcz
       [not found] ` <200609121607.22031.Dexter.Filmore@gmx.de>
@ 2006-09-14 16:16 ` Steve Cousins
  2006-09-16 10:26   ` Dexter Filmore
  2 siblings, 1 reply; 16+ messages in thread
From: Steve Cousins @ 2006-09-14 16:16 UTC (permalink / raw)
  To: Dexter Filmore; +Cc: Linux RAID Mailing List



Dexter Filmore wrote:

> When running Knoppix on my file server, I can't mount /dev/md0 simply because 
> it isn't there. 
> Am I guessing right that I need to recreate the array?
> How do I gather the necessary parameters?

 From the man page:

	mdadm -Ac partitions -m 0 /dev/md0

This will "assemble" the array, as opposed to "create".  It says to look 
in /proc/partitions for viable partitions and then assemble the array 
with devices that have a superblock minor number of 0.  Once done, 
/dev/md0 will exist.  Tuomas was not being a "wisecracker".  His advice 
was valid.

Steve




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access *exisiting* array from knoppix
  2006-09-14 16:06       ` Dexter Filmore
@ 2006-09-14 16:41         ` Tuomas Leikola
  0 siblings, 0 replies; 16+ messages in thread
From: Tuomas Leikola @ 2006-09-14 16:41 UTC (permalink / raw)
  To: Dexter Filmore; +Cc: linux-raid

On 9/14/06, Dexter Filmore <Dexter.Filmore@gmx.de> wrote:
> How about you read the rest of the thread, wisecracker?

sorry. <mailreader-excuse/>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access array from knoppix
  2006-09-14 16:16 ` access " Steve Cousins
@ 2006-09-16 10:26   ` Dexter Filmore
  2006-09-21 18:16     ` Rob Bray
  0 siblings, 1 reply; 16+ messages in thread
From: Dexter Filmore @ 2006-09-16 10:26 UTC (permalink / raw)
  To: Steve Cousins; +Cc: Linux RAID Mailing List

> His advice 
> was valid.

Maybe valid but not helping with my problem since the problem is/was, 
that /dev/md0 didn't exist at all. mdadm -C won't create device nodes.

But I figured the workaround meanwhile, so it doesn't matter anymore.
(In case someone wanna know: mknod in /lib/udev/devices does it on a hard disk 
install, I guess could work in /dev on knoppix, too, haven't tried yet.)


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: access array from knoppix
  2006-09-16 10:26   ` Dexter Filmore
@ 2006-09-21 18:16     ` Rob Bray
  0 siblings, 0 replies; 16+ messages in thread
From: Rob Bray @ 2006-09-21 18:16 UTC (permalink / raw)
  To: Dexter Filmore; +Cc: Linux RAID Mailing List

> Maybe valid but not helping with my problem since the problem is/was,
> that /dev/md0 didn't exist at all. mdadm -C won't create device nodes.
>
> But I figured the workaround meanwhile, so it doesn't matter anymore.
> (In case someone wanna know: mknod in /lib/udev/devices does it on a hard
> disk
> install, I guess could work in /dev on knoppix, too, haven't tried yet.)
>
>
Do you want to be able to boot using knoppix all the time, or are you
looking for a oneshot solution? I feel like 'mknod' with major 9 is a
trivial thing to have to do.


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-09-21 18:16 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-12 11:52 access array from knoppix Dexter Filmore
2006-09-12 13:29 ` Justin Piszcz
2006-09-12 14:01   ` access *exisiting* " Dexter Filmore
2006-09-14 15:58     ` Tuomas Leikola
2006-09-14 16:06       ` Dexter Filmore
2006-09-14 16:41         ` Tuomas Leikola
     [not found] ` <200609121607.22031.Dexter.Filmore@gmx.de>
     [not found]   ` <Pine.LNX.4.64.0609121008050.19418@p34.internal.lan>
2006-09-12 14:37     ` access *existing* " Dexter Filmore
2006-09-12 15:47       ` Justin Piszcz
2006-09-12 16:29         ` Dexter Filmore
2006-09-12 16:38           ` Henrik Holst
2006-09-12 18:17       ` dean gaudet
2006-09-13 13:48       ` Rob Bray
2006-09-13 14:32         ` Dexter Filmore
2006-09-14 16:16 ` access " Steve Cousins
2006-09-16 10:26   ` Dexter Filmore
2006-09-21 18:16     ` 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).