[mythtv-users] question about RAID

chris@cpr.homelinux.net chris at cpr.homelinux.net
Thu Jan 12 00:03:06 UTC 2006


On Thu, Jan 12, 2006 at 08:18:12AM +0900, David Bennett wrote:
> Here here! I second that.,.. can -F be added after an array is created?

The -F option isn't "added" to the array.  It's a mdadm run-time
argument that tells it to check the array for errors.  The -F option
isn't useful (and may even be illegal) during the array creation phase.

You would typically either create a cron job that does
	/sbin/mdadm -F -s -1
periodically, or more typically you would have a system start-up script
that runs
	/sbin/mdadm -F -s -f -i /var/run/mdadm.pid -m root

The first version tells mdadm to check the array only once, and output
the status on stdout (which cron then emails to the crontab owner).  The
second version tells mdadm to daemonize (-f) using the specified pidfile
(-i /path/to/pidfile) and explicity provides an email address (-m root)
for the resulting status messages.

In both cases, the -s option tells mdadm to look for *all* RAID devices
even if they aren't in the config file.

-- 
"When fascism comes to America, it will be wrapped in the flag and 
carrying the cross." - Sinclair Lewis (1935)


More information about the mythtv-users mailing list