From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] vgscan errors
Date: Fri Mar 8 06:37:02 2002 [thread overview]
Message-ID: <20020308133510.A1267@sistina.com> (raw)
In-Reply-To: <20020308021214.I1566@turbolinux.com>; from adilger@clusterfs.com on Fri, Mar 08, 2002 at 02:12:14AM -0700
On Fri, Mar 08, 2002 at 02:12:14AM -0700, Andreas Dilger wrote:
> On Mar 08, 2002 09:44 +0100, Heinz J . Mauelshagen wrote:
> > On Thu, Mar 07, 2002 at 11:17:23AM -0600, Kelly Corbin wrote:
> > > OK, now I have another problem. I got vgscan to run fine now off of my
> > > boot CD, but now the system fails the vgscan on boot (/ is an LVM) with
> > > an 'ERROR 28 writing volume group backup file /etc/...'
> > >
> > > I'm assuming this is because the initrd created by lvmcreate_initrd is
> > > not big enough to accomodate the metadata backup.
> >
> > Exactly.
> >
> > > What size is this
> > > generally (lvmcreate_initrd says it calculates this automatically) and
> > > to what size should I set this manually to get this to work? How much
> > > space do I need for the backups during vgscan?
> >
> > Calculate your given initrd size plus your /etc/lvconf/* backup sizes
> > you need to store in the initrd once vgscan is run
> > and change the INITRDSIZE to that number in kilobytes + 1MB.
>
> I think a lot of people have this same problem (not enough free space in
> initrd). Can't we just disable backups somehow?
Andreas,
vgscan creates cache copies of the metadata in /etc/lvmtab.d/.
So if just vgscan and "vgchange -ay" run in the initrd, there's one copy
for every VG in /etc/lvmtab.d/ *and*
export LVM_VG_MAX_BACKUPS=no
disables automatic backup creation in /etc/lvmconf/.
vgchange needs little modification to read the data directly from the devices
rather than from the cache files.
Should I put that into LVM 1.0.4? ;-)
> It's the initrd after
> all, so it's not like the backups are useful. Alternately, it is better
> to just fix the script to have more leeway in the INITRDSIZE in the
> first place.
>
> Cheers, Andreas
> --
> Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
> \ would they cancel out, leaving him still hungry?"
> http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2002-03-08 6:37 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-04 11:22 [linux-lvm] vgscan errors Kelly Corbin
2002-03-04 17:26 ` Heinz J . Mauelshagen
2002-03-05 14:20 ` Kelly Corbin
2002-03-05 15:34 ` Heinz J . Mauelshagen
2002-03-05 16:49 ` Kelly Corbin
2002-03-05 18:00 ` [linux-lvm] PV-Move fails, now at 127 Pe's Denie Andriessen
2002-03-06 3:56 ` Heinz J . Mauelshagen
2002-03-06 5:02 ` Denie Andriessen
2002-03-06 5:13 ` Heinz J . Mauelshagen
2002-03-06 5:37 ` Heinz J . Mauelshagen
2002-03-06 19:07 ` Denie Andriessen
2002-03-08 14:19 ` Denie Andriessen
2002-03-06 5:04 ` Denie Andriessen
2002-03-06 9:01 ` Denie Andriessen
2002-03-07 11:17 ` [linux-lvm] vgscan errors Kelly Corbin
2002-03-08 2:47 ` Heinz J . Mauelshagen
2002-03-08 3:12 ` Andreas Dilger
2002-03-08 6:37 ` Heinz J . Mauelshagen [this message]
2002-03-08 16:50 ` Goetz Bock
2002-03-09 11:47 ` [linux-lvm] Mounting Reiserfs errors Laurentiu Simion
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020308133510.A1267@sistina.com \
--to=mauelshagen@sistina.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox