[linux-lvm] LVM mirror questions
jrharris19 at yahoo.com
Mon Oct 4 23:55:28 UTC 2010
What happens to an lvm mirror if the disk log is lost ?
I am having a hard time understanding Linux lvm ; I created a mirror for my
home system, two same-sized drives. I decided to go for a mirror because I
have too much space and I thought with the rash of failed hard drives I've had
recently, having a mirror would be ideal. I had already installed my linux
system, and I already had my /home filesystem in a single stripe/disk lv anyway,
all I had to do was to add the other disk and lvcovert. But it wouldn't work,
saying I needed to add space on yet a third device for the log. Either that,
or I could keep the mirror log in memory. Lvm would have to rebuild a 1TB
mirror every time the system was rebooted if the log was left in memory. That
doesn't sound efficient. So. Put the log on disk. I couldn't find an
answer in man pages, but if the log is lost, then is the whole mirror lost ?
That would mean to have the benefits of a mirror, the log would have to be at
least as reliable as the mirror itself (or inconsequential).
So, another mirror would have to be built of tiny size to hold the log, then
lvconvert can be given something like -log disk /dev/vghuh/lvtiny, etc..
But then for the original mirror to be reliable, the second mirror would need a
third mirror for the 2nd mirror's log. Unless it is ok to leave the 2nd
mirrors log in memory because it is so small.
What does everyone else do ?
Thank you in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linux-lvm