[Linux-cluster] Clustered VGs with many PVs slow to activate

Janne Peltonen janne.peltonen at helsinki.fi
Fri Jun 29 09:21:32 UTC 2007


On Fri, Jun 29, 2007 at 09:54:06AM +0100, Bryn M. Reeves wrote:
> > There is a clustered vg in my five-node cluster (four of which have
> > access to the SAN where the physical devices reside). It seems to me
> > that the more LV's and PV's I've got, the more time it takes to get the
> > VG activated. When I had 8 PV's and 79 LV's, it took some ten minutes to
> > activate the VG on each node. Now, I extended the VG by 39 PV's (so that my
> 
> Did you put a metadata copy on each PV? Check with vgdisplay:
[..]
> If that's the case, you probably don't want one for each PV here. It's
> unnecessary and will slow the tools down a lot when there are a large
> number of PVs.
> 
> Check out the --metadatacopies option to pvcreate and re-create the
> volume group with a much smaller number of MDAs if this is the problem
> you're seeing. If you're careful you can do this in-place via the
> - --restorefile option to pvcreate and vgcfgbackup/vgcfgrestore.

THANK you. And here I was thinking I knew the lvm tools completely...
Apparantly one'd have to read the man pages of even everyday tools now
and then. ;)


--Janne
-- 
Janne Peltonen <janne.peltonen at helsinki.fi>




More information about the Linux-cluster mailing list