From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 27 Mar 2001 16:15:17 +0100 From: Patrick Caulfield Subject: Re: [linux-lvm] safe to ru-run vgscan after mounting LV root? Message-ID: <20010327161517.G993@tykepenguin.com> References: <20010328021421.B4557@mail.wave.co.nz> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <20010328021421.B4557@mail.wave.co.nz>; from markv@wave.co.nz on Wed, Mar 28, 2001 at 02:14:21AM +1200 Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-lvm@sistina.com 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