Re: Autostarting arrays with V1 metadata

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

 



On Wednesday May 7, rain@xxxxxxxxxxxxxx wrote:
> I've noticed that (as of 2.6.25, at least) the kernel doesn't autostart 
> arrays with V1 metadata.  In autostart_arrays(), md_import_device() is 
> called for 0.90 arrays only, and there's currently no sort of 
> autodetection of the superblock position for V1 metadata.
> 
> Is this simply a matter of the code being unwritten, or are there other 
> reasons that V1 arrays aren't autostarted (such as the SB format being 
> unfinished)?  My only real motivation to use V1 metadata is the unhashed 
> homehost field, which I'll give up if the SB format hasn't stabilized yet.

V1.x metadata (deliberately) doesn't contain sufficient information to
allow in-kernel autodetect.  In particular it doesn't store the 'minor
number' information so the kernel wouldn't know which md device to
use.

However it is quite possible to assemble V1.x arrays using mdadm in an
initrd.  This is the preferred method.

Ofcourse, if the array doesn't hold the root filesystem, you can just
assemble it as part of the regular boot scripts.

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