* [linux-lvm] vgcreate with many disks
@ 2005-02-22 18:34 Mark Haverkamp
0 siblings, 0 replies; only message in thread
From: Mark Haverkamp @ 2005-02-22 18:34 UTC (permalink / raw)
To: lvm mailing list, Alasdair G Kergon; +Cc: Daniel McNeil, Dave Olien
We've been working with lvm and many iscsi disks (4142 disks). We tried
to create a volume group of 256 of these disks and ended up killing it
after 90 minutes. We added some printfs in the code and found that it
was taking about 45 seconds per disk to add it to the volume group and
that lvmcache_label_scan was the problem in this section of code in
_pv_read:
if (!memlock()) {
lvmcache_label_scan(fmt->cmd, 1);
if (info->vginfo && info->vginfo->vgname &&
*info->vginfo->vgname &&
_get_pv_from_vg(info->fmt, info->vginfo->vgname,
info->dev->pvid, pv)) {
return 1;
}
}
As an experiment, we changed the full_scan variable to 0 and now we can
create the volume group in about 1.5 minutes. What is the reason for
specifying the full scan at this point?
Thanks,
Mark.
--
Mark Haverkamp <markh@osdl.org>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-22 18:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-22 18:34 [linux-lvm] vgcreate with many disks Mark Haverkamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).