In short, I want to create a system restore image. My idea with AUFS is like the image below
Now, as I require this mount setup at boot-time, I don't think I can do it with fuse and will require AUFS kernel support, which, CentOS 6.x doesn't have. So I started to think along an alternative approach with LVM snapshots. The setup I have in mind is like following image
However, I have a few questions about this setup.
- Is this kind of setup at all possible with LVM or device mapper? If yes, how to do it?
- with LVM, is it guaranteed to have write-protection in physical volume for read-only snapshots?
Thanks in advance.