[lvm-devel] [PATCH 2/7] Never set mirror log and images directly visible in metadata.

Petr Rockai prockai at redhat.com
Sun May 10 18:33:22 UTC 2009


Milan Broz <mbroz at redhat.com> writes:
> Mirror creation and conversion force set mirror log and images
> to be visible. This can violate VG max_lv restriction on LV.
>
> There is no need to set these volumes visible, even during
> mirror images conversion.
Well, I believe the use-case is that when the operation fails halfway (which
happens from time to time -- more often than would be comfortable, even), you
can clean up by hand, since those offending LVs became visible. If there is a
reasonable procedure that the admins can follow to get rid of the junk LVs in
those scenarios, I'm fine.

(The whole non-atomicity of those mirror operation is very unfortunate for
other reasons, but I didn't yet have time to investigate how hard it would be
to make those really atomic.)

Other than that, I have reviewed the patch, and it does what the description
advertises, so (bar the above issue) it is good to go, IMHO.

-- 
Peter Rockai | me()mornfall!net | prockai()redhat!com
 http://blog.mornfall.net | http://web.mornfall.net

"In My Egotistical Opinion, most people's C programs should be
 indented six feet downward and covered with dirt."
     -- Blair P. Houghton on the subject of C program indentation




More information about the lvm-devel mailing list