Linux LVM users
 help / color / mirror / Atom feed
From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Error on vgscan & lvremove
Date: Sat May 25 05:53:01 2002	[thread overview]
Message-ID: <20020525124928.A19221@sistina.com> (raw)
In-Reply-To: <002701c2036a$7ba96170$6501a8c0@bomoon>; from bo@sosnetwork.net on Fri, May 24, 2002 at 02:32:19PM -0700

On Fri, May 24, 2002 at 02:32:19PM -0700, bo wrote:
> Heinz,
> 
> I verified these two issues as commented below;
> 
> > >
> > > > A 'workaround' for non-devfs configurations is
> > > >
> > > > ls /dev/*/group | sed 's!/group!!' | xargs rm -r ; vgmknodes
> > > >
> > >
> > > ??Something wrong on "sed 's!/group!!' ", it did not work.
> >
> > Works fine here. Maybe your sed doesn't like the delimiter?
> >
> > Try '/' rather than '!' with sed like "sed 's/\/group//'".
> >
> 
> worked w/o delimiters like
> 
>         ls /dev/*/group | sed 's/group//' | xargs rm -r ; vgmknodes

Yes, trailing / doesn't matter in the rm args :)

> 
> > >
> > > >
> > > > link the single executable statically by running
> > > > "./configure --enable-static_link" (which doesn't use the shared
> libs).
> > > >
> > >
> > > It did not work. I rebuilt LINUX kernel & LVM after
> > > "./configure --enable-static_link".
> > > I got the same result.
> >
> > Did you start with a fresh source tree or run "make distclean"
> > before "./configure --enable-static_link"?
> >
> > >
> 
> Yes, worked with "make distclean".

Good.

> 
> For the backward compatibilty I will try later.

OK.

> 
> One more question related with activating PV,
> 
> Of course I could make them active after removing the volume and recreating
> it.
> As you can notice on the attached log VG is ok,  How could I make these PVs
> active
> w/o removing the volume?
> 
> Did it corrupt the VGDA? any way to recover it?

See below.

> (PS: you can notice TWO "volDisk" group in the following "vgdisplay", should
> be
>         volDisk  & volDisk2 ???)

You still seem to have wrong /dev/ entries :-(
Maybe because of earlier problems, 2 VGs (volDisk and volDisk2) now
have the same internal number?
Please send the output of
"pvdata -a /dev/hd[cd]9 /dev/hda15 /dev/hd[cd]10 /dev/hda16 ; ls -lR /dev"
directly to me (mge@sistina.com).

If volDisk and VolDisk2 have the same internal numbers, we can try "vgscan -f"
which comes with LVM >= 1.0.3.

Regards,
Heinz    -- The LVM Guy --


> 
> Thanks again,
> 
> Bo
> ----------------------------------------------------------------------------
> -----------------
> [root@localhost /root]# pvscan
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- ACTIVE   PV "/dev/md0"   of VG "volRaid0" [1.95 GB / 0 free]
> pvscan -- ACTIVE   PV "/dev/md1"   of VG "volRaid0" [1.95 GB / 0 free]
> pvscan -- ACTIVE   PV "/dev/md2"   of VG "volRaid0" [1.95 GB / 0 free]
> pvscan -- ACTIVE   PV "/dev/md3"   of VG "volRaid1" [992 MB / 0 free]
> pvscan -- ACTIVE   PV "/dev/md4"   of VG "volRaid1" [992 MB / 484 MB free]
> pvscan -- ACTIVE   PV "/dev/md5"   of VG "volRaid5" [1.95 GB / 992 MB free]
> pvscan -- ACTIVE   PV "/dev/md6"   of VG "volRaid5" [1.95 GB / 1.95 GB free]
> pvscan -- ACTIVE   PV "/dev/hdc9"  of VG "volDisk"  [992 MB / 992 MB free]
> pvscan -- inactive PV "/dev/hdc10" of VG "volDisk2" [992 MB / 788 MB free]
> pvscan -- ACTIVE   PV "/dev/hdd9"  of VG "volDisk"  [992 MB / 992 MB free]
> pvscan -- inactive PV "/dev/hdd10" of VG "volDisk2" [992 MB / 792 MB free]
> pvscan -- ACTIVE   PV "/dev/hda15" of VG "volDisk"  [996 MB / 996 MB free]
> pvscan -- inactive PV "/dev/hda16" of VG "volDisk2" [996 MB / 0 free]
> pvscan -- total: 13 [17.59 GB] / in use: 13 [17.59 GB] / in no VG: 0 [0]
> 
> [root@localhost /root]# pvdisplay /dev/hdc10
> --- Physical volume ---
> PV Name               /dev/hdc10
> VG Name               volDisk2
> PV Size               1000.09 MB [2048193 secs] / NOT usable 4.19 MB [LVM:
> 128 KB]
> PV#                   2
> PV Status             available
> Allocatable           yes
> Cur LV                2
> PE Size (KByte)       4096
> Total PE              248
> Free PE               197
> Allocated PE          51
> PV UUID               b5ybET-1zOq-HPnP-QQda-zjgQ-5avz-aGFMav
> 
> [root@localhost /root]# vgdisplay
> --- Volume group ---
> VG Name               volDisk
> VG Access             read/write
> VG Status             available/resizable
> VG #                  1
> MAX LV                256
> Cur LV                0
> Open LV               0
> MAX LV Size           255.99 GB
> Max PV                256
> Cur PV                3
> Act PV                3
> VG Size               2.91 GB
> PE Size               4 MB
> Total PE              745
> Alloc PE / Size       0 / 0
> Free  PE / Size       745 / 2.91 GB
> VG UUID               7RhXUS-Pw5B-EBYN-GKIM-PO1d-4uD7-4apSvp
> 
> --- Volume group ---
> VG Name               volDisk
> VG Access             read/write
> VG Status             available/resizable
> VG #                  1
> MAX LV                256
> Cur LV                0
> Open LV               0
> MAX LV Size           255.99 GB
> Max PV                256
> Cur PV                3
> Act PV                3
> VG Size               2.91 GB
> PE Size               4 MB
> Total PE              745
> Alloc PE / Size       0 / 0
> Free  PE / Size       745 / 2.91 GB
> VG UUID               7RhXUS-Pw5B-EBYN-GKIM-PO1d-4uD7-4apSvp
> 
> 
> 
> 
> 
> _______________________________________________
> 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

*** 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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

      reply	other threads:[~2002-05-25  5:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-21 16:48 [linux-lvm] Error on lvcreate or lvremove! bo
2002-05-22  7:50 ` Heinz J . Mauelshagen
2002-05-22 21:51   ` bo
2002-05-23 12:04     ` Heinz J . Mauelshagen
2002-05-23 22:14       ` [linux-lvm] Error on vgscan & lvremove bo
2002-05-24  4:01         ` Heinz J . Mauelshagen
2002-05-24 16:34           ` bo
2002-05-25  5:53             ` Heinz J . Mauelshagen [this message]

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=20020525124928.A19221@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