Skip to contentSkip to conversation

access array from knoppix

DISCUSSION Dexter Filmore 7 participants 16 messages Sep 12, 2006 – Sep 21, 2006 2 messages not in the archive MD RAID

lore
Share & tools
lore
#0 lore raw

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?

Signature · 9 lines
-----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
#1 lore raw

fdisk -l

then you have to assemble the array

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

Quoted 20 lines · Dexter Filmore

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?

Signature · 13 lines
-----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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

Re: access *exisiting* array from knoppix

Am Dienstag, 12. September 2006 15:29 schrieb Justin Piszcz:

Quoted 5 lines

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.

Signature · 9 lines
-----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
#8 lore raw

Re: access *existing* array from knoppix

In reply to a message not in the archive

Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:

Quoted 3 lines

/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.

Signature · 9 lines
-----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
#9 lore raw

Re: access *existing* array from knoppix

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

Quoted 19 lines · Dexter Filmore

Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:

Quoted 3 lines

/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.

Signature · 9 lines
-----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
#10 lore raw

Re: access *existing* array from knoppix

Am Dienstag, 12. September 2006 17:47 schrieb Justin Piszcz:

Quoted 2 lines

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.

Quoted 20 lines · Dexter Filmore
Quoted 18 lines

Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:

Quoted 3 lines

/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

Signature · 9 lines
-----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
#11 lore raw

Re: access *existing* array from knoppix

Quoted 6 lines · Dexter Filmore

Am Dienstag, 12. September 2006 17:47 schrieb Justin Piszcz:

Quoted 2 lines

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

#12 lore raw

Re: access *existing* array from knoppix

In reply to Dexter Filmore
Quoted 6 lines · Dexter Filmore

Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:

Quoted 3 lines

/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

#13 lore raw

Re: access *existing* array from knoppix

In reply to Dexter Filmore
Quoted 6 lines

Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:

Quoted 3 lines

/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?

#14 lore raw

Re: access *existing* array from knoppix

Am Mittwoch, 13. September 2006 15:48 schrieb Rob Bray:

Quoted 9 lines
Quoted 6 lines

Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:

Quoted 3 lines

/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...)

Signature · 9 lines
-----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
#3 lore raw

Re: access *exisiting* array from knoppix

In reply to Dexter Filmore
Quoted 6 lines
Quoted 1 line

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?

#4 lore raw

Re: access *exisiting* array from knoppix

Am Donnerstag, 14. September 2006 17:58 schrieb Tuomas Leikola:

Quoted 11 lines
Quoted 5 lines
Quoted 1 line

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?

Signature · 9 lines
-----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
#15 lore raw
In reply to Dexter Filmore
Quoted 2 lines · Dexter Filmore

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

#16 lore raw
In reply to Steve Cousins
Quoted 2 lines

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.)

Signature · 9 lines
-----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
#17 lore raw
Quoted 9 lines

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.