Re: Read Only RAID5

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

 



On Thursday March 28, asmith@umdgrb.umd.edu wrote:
>  
> Does anyone have advice on how to make my static data remain static?
> 

Fix the RAID code.

I would really like md arrays to be treated read-only when first
assembled and not written to at all until either:
  1/ a write request is received or
  2/ a bad/missing drive is detected and a spare is present.

This could be achieved (I believe) with complete backwards
compatability but, of course, it requires some work and testing.



To address your problem of the assembly phase finding all but on of
the drives and going ahead anyway, you could use 'mdadm --assemble'
without --run or --scan.  Then it will only assemble if all drives are
present:

  mdadm --assemble /dev/md1 --super-minor=1 /dev/sd*

should do it.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
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