From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Caulfield Subject: Re: [linux-lvm] vgcfgrestore ouput Message-ID: <20021021071750.GA838@tykepenguin.com> References: <1035163216.1245.4.camel@localhost.localdomain> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <1035163216.1245.4.camel@localhost.localdomain> 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: Date: Mon Oct 21 02:18:01 2002 List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-lvm@sistina.com On Sun, Oct 20, 2002 at 08:20:16PM -0500, Austin Gonyou wrote: > > I tarred up the /etc/lvm* stuff from one box that has a similar > configuration (two whole disks, /dev/sdb and /dev/sdc, in one vg), and > then put it on my target host and attempted to restore the > configuration. > > Below is the output I get. I guess, all I need to know right now, is are > the first 512 bytes of each disk all that is used for the pv > information, or is it more than that? > > Also, can pvcreate be used without destroying the underlying > filesystems? TIA!!! > > > [root@localhost root]# vgcfgrestore -n data /dev/sdb > vgcfgrestore -- INFO: using backup file "/etc/lvmconf/data.conf" > vgcfgrestore -- ERROR "pv_read(): PV identifier invalid" reading > physical volume "/dev/sdb" > > [root@localhost root]# vgcfgrestore -n data /dev/sdc > vgcfgrestore -- INFO: using backup file "/etc/lvmconf/data.conf" > vgcfgrestore -- ERROR "pv_read(): PV identifier invalid" reading > physical volume "/dev/sdc" > > It'll be fine :-) just # pvcreate /dev/sdb # pvcreate /dev/sdc and then issue the vgcfgrestore commands you have above. then vgscan && vgchange -ay -- patrick