[linux-lvm] safe to ru-run vgscan after mounting LV root?

Patrick Caulfield caulfield at sistina.com
Tue Mar 27 15:15:17 UTC 2001


On Wed, Mar 28, 2001 at 02:14:21AM +1200, Mark van Walraven wrote:
> Hi All,
> 
> First, let me say how impressed I am with LVM.  I've just set up a 2.4.2
> system with all filesystems in logical volumes, on an MD mirror.  I am
> an experienced (i.e., "jaded") sysadmin, so please take my enthusiasm
> as a truly singular occurrence.  Kudos to you.
> 
> Now for my question: The system above runs vgscan (and vgchange) from an
> initrd before mounting the root filesystem.  After that, the /etc/lvmtab*
> files and directories need to be refreshed from the initrd.  Instead of
> keeping the initrd hanging around until then, could vgscan simply be
> run again to recreate /etc/lvmtab*, even though PVs and LVs are active?

You can run vgscan as many times as you like. The main reason you wouldn't is
the time it can take. But even that is small compared to the initialisation time
of most SCSI cards so at bootup it shouldn't be a problem.

patrick




More information about the linux-lvm mailing list