access array from knoppix
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
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/md0simply 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
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
Re: access *existing* array from knoppix
In reply to a message not in the archiveAm Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:
Quoted 3 lines
/dev/MAKEDEV/dev/md0also 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
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/md0also 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
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/md0also 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------
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
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
Re: access *existing* array from knoppix
In reply to Dexter FilmoreQuoted 6 lines · Dexter Filmore
Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:
Quoted 3 lines
/dev/MAKEDEV/dev/md0also 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
Re: access *existing* array from knoppix
In reply to Dexter FilmoreQuoted 6 lines
Am Dienstag, 12. September 2006 16:08 schrieb Justin Piszcz:
Quoted 3 lines
/dev/MAKEDEV/dev/md0also 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?
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/md0also 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/md0b 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
Re: access *exisiting* array from knoppix
In reply to Dexter FilmoreQuoted 6 lines
Quoted 1 line
mdadm --assemble
/dev/md0/dev/hda1/dev/hdb1# i think, man mdadmNot 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?
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 mdadmNot 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
Quoted 2 lines · Dexter Filmore
When running Knoppix on my file server, I can't mount
/dev/md0simply 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
Re: access *exisiting* array from knoppix
In reply to Dexter FilmoreQuoted 1 line · Dexter Filmore
How about you read the rest of the thread, wisecracker?
sorry. <mailreader-excuse/>
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
Quoted 9 lines
Maybe valid but not helping with my problem since the problem is/was, that
/dev/md0didn'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/devicesdoes 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.