Re: from raidtools2 to mdadm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday June 21, cs@xxxxxxxxxxxxx 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
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux