Re: md autostart?
MD setup is easier than it looks.
When you used mdcreate to make /dev/md0 it wrote a file called
/etc/mdtab.
You do not have to modify /etc/init.d/boot since it already has a call
to "mdadd -ar" if it and /etc/mdtab exist.
In other words, if you are running a recent copy of the sysvinit code
and you used mdcreate to make /dev/md0, you probably are already
getting it enabled at boot time.
Here's what I did to get mine working:
# mdcreate raid0 /dev/md0 /dev/sdb2 /dev/sdc2 /dev/sdd2 /dev/sde
# mdadd -ar
# e2fsck -fyv /dev/md0
# mkdir /raid
# echo '/dev/md0 /raid ext2 defaults 0 1' >> /etc/fstab
# mount /raid
# df
"cool, it works!"
OK, so I hammed it up but you get the idea.
Costa
Date: Tue, 25 Mar 1997 17:13:30 -0500 (EST)
From: Pete Templin <templin@bucknell.edu>
To: Debian Users List <debian-user@lists.debian.org>,
debian-devel@lists.debian.org
Subject: md autostart?
Hi there,
I just put the md package to use, and I have some semi-important
questions...
1) Do I need to do anything to ensure that my /dev/md0 has been started if
I expect to use it in /etc/fstab? If so, where do I put that? My kernel
has md compiled in (not a module).
2) Can I also assume that it'll get unmounted cleanly and properly?
Thanks for your help,
Pete
--
Peter J. Templin, Jr. Client Services Analyst
Computer & Communication Services tel: (717) 524-1590
Bucknell University templin@bucknell.edu
Reply to: