* from raidtools2 to mdadm
@ 2005-06-21 5:40 Clemens Schwaighofer
2005-06-21 5:54 ` Neil Brown
2005-06-21 16:15 ` Luca Berra
0 siblings, 2 replies; 8+ messages in thread
From: Clemens Schwaighofer @ 2005-06-21 5:40 UTC (permalink / raw)
To: linux-raid
[-- Attachment #1: Type: text/plain, Size: 775 bytes --]
Hi,
as debian changed their package from raidtools2 to mdadm and left us
users out in the cold (no mdadm.conf craeted, lsraid commands left in
crontab, etc), I am now a bit worried if the command
#> mdadm --detail --scan>> mdadm.conf
is enought to get the raid started the next time I have to reboot the box.
Until now I used only the raidtools (raidhotadd, lsraid, etc). Is there
somehwere a reference like what raidhotadd would be in mdadm command?
--
[ Clemens Schwaighofer -----=====:::::~ ]
[ TEQUILA\ Japan IT Group ]
[ 6-17-2 Ginza Chuo-ku, Tokyo 104-8167, JAPAN ]
[ Tel: +81-(0)3-3545-7703 Fax: +81-(0)3-3545-7343 ]
[ http://www.tequila.co.jp ]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: from raidtools2 to mdadm
2005-06-21 5:40 from raidtools2 to mdadm Clemens Schwaighofer
@ 2005-06-21 5:54 ` Neil Brown
2005-06-21 5:59 ` Clemens Schwaighofer
2005-06-21 16:15 ` Luca Berra
1 sibling, 1 reply; 8+ messages in thread
From: Neil Brown @ 2005-06-21 5:54 UTC (permalink / raw)
To: Clemens Schwaighofer; +Cc: linux-raid
On Tuesday June 21, cs@tequila.co.jp wrote:
> Hi,
>
> as debian changed their package from raidtools2 to mdadm and left us
> users out in the cold (no mdadm.conf craeted, lsraid commands left in
> crontab, etc), I am now a bit worried if the command
Unfortunate...
>
> #> mdadm --detail --scan>> mdadm.conf
>
> is enought to get the raid started the next time I have to reboot
> the box.
1/ remove the 'devices=' parts. Then it should be ok, providing there
is a suitable DEVICES line at the top.
2/ If you were depending on 'raidstart' to start your arrays before,
mdadm will definitely be more reliable (which is to say that it
should still work if you lose the first drive of your array...)
3/ Best way to find out is to try it!
>
> Until now I used only the raidtools (raidhotadd, lsraid, etc). Is there
> somehwere a reference like what raidhotadd would be in mdadm
> command?
Well, there is the man-page for mdadm. An understanding is always
better than a cheat-sheet...
But raidhotadd /dev/mdX /dev/hdY -> mdaddm /dev/mdX --add /dev/hdy
s/add/remove/
raidstop -> mdadm --stop
There is no real equivalent for mkraid. mdadm --create does the same
thing in a very different way.
NeilBrown
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: from raidtools2 to mdadm
2005-06-21 5:54 ` Neil Brown
@ 2005-06-21 5:59 ` Clemens Schwaighofer
2005-06-21 6:25 ` Neil Brown
0 siblings, 1 reply; 8+ messages in thread
From: Clemens Schwaighofer @ 2005-06-21 5:59 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 1726 bytes --]
On 06/21/2005 02:54 PM, Neil Brown wrote:
>>#> mdadm --detail --scan>> mdadm.conf
>>
>>is enought to get the raid started the next time I have to reboot
>>the box.
>
>
> 1/ remove the 'devices=' parts. Then it should be ok, providing there
> is a suitable DEVICES line at the top.
yeah I have a devices line on the top. If I don't have, I will need the
devices lines I guess.
> 2/ If you were depending on 'raidstart' to start your arrays before,
> mdadm will definitely be more reliable (which is to say that it
> should still work if you lose the first drive of your array...)
no, it should be now called via the mdadm start
> 3/ Best way to find out is to try it!
well :) not if you have production boxes with sw raid :D
>>Until now I used only the raidtools (raidhotadd, lsraid, etc). Is there
>>somehwere a reference like what raidhotadd would be in mdadm
>>command?
>
>
> Well, there is the man-page for mdadm. An understanding is always
> better than a cheat-sheet...
yeah, I am crawling through the docs, and man pages to get a thinking of it.
> But raidhotadd /dev/mdX /dev/hdY -> mdaddm /dev/mdX --add /dev/hdy
> s/add/remove/
> raidstop -> mdadm --stop
>
> There is no real equivalent for mkraid. mdadm --create does the same
> thing in a very different way.
yeah, but I more often have to add/remove a device than I have to create
a new raid, so its fine :)
--
[ Clemens Schwaighofer -----=====:::::~ ]
[ TEQUILA\ Japan IT Group ]
[ 6-17-2 Ginza Chuo-ku, Tokyo 104-8167, JAPAN ]
[ Tel: +81-(0)3-3545-7703 Fax: +81-(0)3-3545-7343 ]
[ http://www.tequila.co.jp ]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: from raidtools2 to mdadm
2005-06-21 5:59 ` Clemens Schwaighofer
@ 2005-06-21 6:25 ` Neil Brown
2005-06-21 6:32 ` Clemens Schwaighofer
2005-06-22 18:48 ` Bill Davidsen
0 siblings, 2 replies; 8+ messages in thread
From: Neil Brown @ 2005-06-21 6:25 UTC (permalink / raw)
To: Clemens Schwaighofer; +Cc: linux-raid
On Tuesday June 21, cs@tequila.co.jp wrote:
> On 06/21/2005 02:54 PM, Neil Brown wrote:
>
> >>#> mdadm --detail --scan>> mdadm.conf
> >>
> >>is enought to get the raid started the next time I have to reboot
> >>the box.
> >
> >
> > 1/ remove the 'devices=' parts. Then it should be ok, providing there
> > is a suitable DEVICES line at the top.
>
> yeah I have a devices line on the top. If I don't have, I will need the
> devices lines I guess.
No..
The 'devices=' bits by themselves aren't enough, and are rarely
wanted.
If a device isn't listed in the DEVICES lines, then it won't be
considered for use in an array.
The 'devices=' words are quite different. They say "this is how you
recognise a device that is in this array. All the devices in it are
on this list".
This is reported by "mdadm --detail --scan" largely for interest. It
should rarely be included in mdadm.conf. The very latest version ofn
mdadm does not report them unless --verbose is given.
NeilBrown
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: from raidtools2 to mdadm
2005-06-21 6:25 ` Neil Brown
@ 2005-06-21 6:32 ` Clemens Schwaighofer
2005-06-22 18:48 ` Bill Davidsen
1 sibling, 0 replies; 8+ messages in thread
From: Clemens Schwaighofer @ 2005-06-21 6:32 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]
On 06/21/2005 03:25 PM, Neil Brown wrote:
> No..
> The 'devices=' bits by themselves aren't enough, and are rarely
> wanted.
> If a device isn't listed in the DEVICES lines, then it won't be
> considered for use in an array.
okay
> The 'devices=' words are quite different. They say "this is how you
> recognise a device that is in this array. All the devices in it are
> on this list".
> This is reported by "mdadm --detail --scan" largely for interest. It
> should rarely be included in mdadm.conf. The very latest version ofn
> mdadm does not report them unless --verbose is given.
okay, then I have an old one, because mine gives it to me, thats why I
had it in my conf file.
thanks for all the help
--
[ Clemens Schwaighofer -----=====:::::~ ]
[ TEQUILA\ Japan IT Group ]
[ 6-17-2 Ginza Chuo-ku, Tokyo 104-8167, JAPAN ]
[ Tel: +81-(0)3-3545-7703 Fax: +81-(0)3-3545-7343 ]
[ http://www.tequila.co.jp ]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: from raidtools2 to mdadm
2005-06-21 6:25 ` Neil Brown
2005-06-21 6:32 ` Clemens Schwaighofer
@ 2005-06-22 18:48 ` Bill Davidsen
2005-06-24 2:01 ` Neil Brown
1 sibling, 1 reply; 8+ messages in thread
From: Bill Davidsen @ 2005-06-22 18:48 UTC (permalink / raw)
To: Neil Brown; +Cc: Clemens Schwaighofer, linux-raid
Neil Brown wrote:
>On Tuesday June 21, cs@tequila.co.jp wrote:
>
>
>>On 06/21/2005 02:54 PM, Neil Brown wrote:
>>
>>
>>
>>>>#> mdadm --detail --scan>> mdadm.conf
>>>>
>>>>is enought to get the raid started the next time I have to reboot
>>>>the box.
>>>>
>>>>
>>>1/ remove the 'devices=' parts. Then it should be ok, providing there
>>> is a suitable DEVICES line at the top.
>>>
>>>
>>yeah I have a devices line on the top. If I don't have, I will need the
>>devices lines I guess.
>>
>>
>
>No..
>The 'devices=' bits by themselves aren't enough, and are rarely
>wanted.
>If a device isn't listed in the DEVICES lines, then it won't be
>considered for use in an array.
>
>The 'devices=' words are quite different. They say "this is how you
>recognise a device that is in this array. All the devices in it are
>on this list".
>This is reported by "mdadm --detail --scan" largely for interest. It
>should rarely be included in mdadm.conf. The very latest version ofn
>mdadm does not report them unless --verbose is given.
>
So is there no way to ask mdadm to take what's running and create a
config to make it happen again? Telling people to cread the man pages
for a utility they did not use by choice and create a config file which
could result in losing their data if it's wrong is a deterent to an
upgrade, I suspect.
It would be desirable to follow the example of iptables, to allow rules
to be configured by hand (more or less) and then have a tool to create a
config file from what's there. A human readable editable file at that.
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: from raidtools2 to mdadm
2005-06-22 18:48 ` Bill Davidsen
@ 2005-06-24 2:01 ` Neil Brown
0 siblings, 0 replies; 8+ messages in thread
From: Neil Brown @ 2005-06-24 2:01 UTC (permalink / raw)
To: Bill Davidsen; +Cc: Clemens Schwaighofer, linux-raid
On Wednesday June 22, davidsen@tmr.com wrote:
>
> So is there no way to ask mdadm to take what's running and create a
> config to make it happen again? Telling people to cread the man pages
> for a utility they did not use by choice and create a config file which
> could result in losing their data if it's wrong is a deterent to an
> upgrade, I suspect.
There is a complexity in that devices can change there names across
reboot, and mdadm has no way to know a minimal set of possible new
names.
You could:
echo DEVICES partitions > /etc/mdadm.conf
mdadm -Ds | grep -v devices >> /etc/mdadm.conf
and then
mdadm -As
should re-assemble everything properly at boot time.
However this might not handle stacked devices (raid0 comprised for
raid1s) very well (maybe an enhancement for the next mdadm?).
A bad config file is unlikely to cause data loss. It might result it
data not being visible until the problem is fixed.
I'm working towards making auto-assembly more bullet-proof, but it is
not trivial, and I would rather it not give the appearance of working
correctly until it really does (in contrast to 'raidstart' which gives
the appearance of working correctly until a drive fails. Then it
fails too :-( )
NeilBrown
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: from raidtools2 to mdadm
2005-06-21 5:40 from raidtools2 to mdadm Clemens Schwaighofer
2005-06-21 5:54 ` Neil Brown
@ 2005-06-21 16:15 ` Luca Berra
1 sibling, 0 replies; 8+ messages in thread
From: Luca Berra @ 2005-06-21 16:15 UTC (permalink / raw)
To: linux-raid
On Tue, Jun 21, 2005 at 02:40:54PM +0900, Clemens Schwaighofer wrote:
>Hi,
>
>as debian changed their package from raidtools2 to mdadm and left us
>users out in the cold (no mdadm.conf craeted, lsraid commands left in
>crontab, etc), I am now a bit worried if the command
>
>#> mdadm --detail --scan>> mdadm.conf
>
i use this script to convert from old raidtab to mdadm.con
http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/SPECS/mdadm/raidtabtomdadm.sh
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-06-24 2:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-21 5:40 from raidtools2 to mdadm Clemens Schwaighofer
2005-06-21 5:54 ` Neil Brown
2005-06-21 5:59 ` Clemens Schwaighofer
2005-06-21 6:25 ` Neil Brown
2005-06-21 6:32 ` Clemens Schwaighofer
2005-06-22 18:48 ` Bill Davidsen
2005-06-24 2:01 ` Neil Brown
2005-06-21 16:15 ` Luca Berra
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).