Re: [Patch] mdadm: move mdadm.map file into /dev/md

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

 



On Wednesday April 8, goswin-v-b@xxxxxx wrote:
> "NeilBrown" <neilb@xxxxxxx> writes:
> >
> > Why /var/run cannot be mounted from tmpfs nice and early too I don't know..
> 
> Because /var is not yet mounted.

I guess that is a credible answer.

We really want "/volatile" rather than "/var" for holding "run" and
"locks"..  and /tmp.
I guess that is rather unlikely to happen universally.

> 
> Maybe mdadm should just have
> 
>   -m, --map <file>
>      Filename of the map file for incremental operations. Defaults
>      to /var/run/mdadm.map. Note that the default path might not exist
>      or be read-only early in the boot process in which case a
>      suitable alternative must be specified.
> 
> Wouldn't that be more flexible?
> 
> Debian could then set 'MAP /lib/init/rw' in its mdadm.conf.

Adding a config option because we cannot agree on a standard isn't my
idea of a good time...

I'm leaning towards:

 - to open for reading, if /var/run/mdadm/map doesn't exist,
   try /dev/.mdadm.map
 - to open for writing, if opening /var/run/mdadm/map and
   /var/run/mdadm.map for writing fails, try /dev/.mdadm.map

Note that I don't want to put the file in /dev/md/ as that might not
exist yet either.

So the idea is to still use /var/run/mdadm{.,/}map, but fall back on
/dev/.mdadm.map if that is the only option.

Thought?

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