Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm looking for a way to replicate a all changes on a filesystem between two disks in a master->slave setup. One of the disks is much faster for reads, so I would like to direct all reads to this real disk for performance reasons; is it possible to do this with Linux software RAID? Is there a better approach?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

man mdadm:

   -W, --write-mostly

subsequent devices listed in a --build, --create, or --add command will be flagged as 'write-mostly'. This is valid for RAID1 only and means that the 'md' driver will avoid reading from these devices if at all possible. This can be useful if mirroring over a slow link.

share|improve this answer
    
Thanks, that's what I was looking for. –  El Yobo Jan 30 '11 at 21:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.