[linux-lvm] Re: Exposing the same VG from two different disks

Mike Snitzer snitzer at redhat.com
Wed Jun 17 15:48:45 UTC 2009


On Wed, Jun 17 2009 at 10:27am -0400,
liam at landv.org.uk <liam at landv.org.uk> wrote:

> I've had a closer look at the vgimportclone script and I think the fix for the
>  lost filter is very straight forward. The errors are coming out of the final
>  vgscan and it seems to be caused by the LVM_SYSTEM_DIR variable being set to an 
> empty string rather than being unset. So I made the following change and it seemed 
> to fix the errors...
> 
> 327,333c327
> <
> < if [[ -z ${ORIG_LVM_SYS_DIR} ]]
> < then
> <       unset LVM_SYSTEM_DIR
> < else
> <       LVM_SYSTEM_DIR=${ORIG_LVM_SYS_DIR}
> < fi
> ---
> > LVM_SYSTEM_DIR=${ORIG_LVM_SYS_DIR}
> 
> I'm not sure if this change causes any issues but I'd be suprised.

Liam,

Looks good, I've committed your fix along with various other fixes to
vgimportclone.

Thanks,
Mike




More information about the linux-lvm mailing list