From: Subosu Guruju <guruju@erols.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Problem deleteing PV's
Date: Thu, 24 May 2001 13:47:56 -0400 [thread overview]
Message-ID: <3B0D494C.8312242@erols.com> (raw)
In-Reply-To: 004901c0e478$a3c85ec0$5300000a@cavecreek.net
Un-subscribe
Justin Booth wrote:
> Tried doing the "dd if of bs count" stuff and now I'm recieving a
> pvscan -- ERROR "pv_reaad(): PV identifier invalid" reading physical volumes
>
> any ideas ???
>
> Thanks,
> Justin Both
> ----- Original Message -----
> From: "Kevin M Corry" <corryk@us.ibm.com>
> To: <linux-lvm@sistina.com>
> Cc: <jbooth@ccbill.com>
> Sent: Thursday, May 24, 2001 7:13 AM
> Subject: Re: [linux-lvm] Problem deleteing PV's
>
> > Justin,
> >
> > Do you have any active volumes using any space on /dev/sdb or /dev/sdc?
> > (You said below that you are trying to get rid of those entries to start
> > over)? When you tried recreating the partition table for those disks,
> > did you create everything with the same size/location? If so, then the
> > LVM metadata will still be in the same place that pvscan and vgscan
> > expect to find it. So, if you don't have any data on those disks to
> > worry about, you should be able to just clear out the metadata sectors.
> >
> > dd if=/dev/zero of=/dev/sdb1 bs=1k count=10
> > dd if=/dev/zero of=/dev/sdc1 bs=1k count=10
> > dd if=/dev/zero of=/dev/sdb bs=1k count=10
> > dd if=/dev/zero of=/dev/sdc bs=1k count=10
> >
> > There are actually 240+ sectors of metadata at the beginning of each
> > PV, but these commands should wipe away the information about the PVs
> > and VGs. After this you should repartition the disks again, run
> > pvcreate on the appropriate partitions, and run pvscan and vgscan.
> >
> > I hope I've understood your problem correctly. If you do in fact have
> > data on those disks, and vgscan/pvscan isn't finding the volumes, then
> > obviously don't run the above commands. :)
> >
> > Kevin
> >
> > > vgscan seems to only update /etc/lvmtab and /etc/lvmtagb.d
> > > a pvchange -x n /dev/sdxx
> > > results in a
> > > pvchange -- unable to find volume group "/dev/xxxx" (VG not active?)
> > > pvchange -- 0 physical volumes changed / 0 physical volumes already o.k.
> > >
> > > on all PV's
> > >
> > > > Have you tried a vgscan to see if there are VG's that you don't need?
> > What
> > > > about pvchange -x n /dev/sdxx?
> > > >
> > > >
> > > > > Hello,
> > > > >
> > > > > I have a problem deleteing 4 PV's that I managed to create None of
> > the
> > > > > PV's are in a VG, and I can't figure out how to get rid of them
> > > > >
> > > > > when I do a pvscan It returns something like this:
> > > > >
> > > > > pvscan -- reading all physical volumes (this may take a while)
> > > > > pvscan -- inactive PV "/dev/sdb" is in no VG [12.16] MB
> > > > > pvscan -- inactive PV "/dev/sdb1" is in no VG [8.54] GB
> > > > > pvscan -- inactive PV "/dev/sdc" is in no VG [12.16] MB
> > > > > pvscan -- inactive PV "/dev/sdc1" is in no VG [8.54] GB
> > > > > pvscan -- total: 4 [17.11 GB] / in use 0 [0] / in no VG: 4 [17.11
> > GB]
> > > > >
> > > > >
> > > > > How do I get rid of these entries to start over again?
> > > > > I've tried deleteing the partition table and recreating them but a
> > > > > subsequent vgscan always brings them back into pvscan
> > > > >
> > > > >
> > > > > Thanks much,
> > > > > Justin Booth
> >
> > _______________________________________________
> > 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
> >
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2001-05-24 17:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-24 14:13 [linux-lvm] Problem deleteing PV's Kevin M Corry
2001-05-24 17:40 ` Justin Booth
2001-05-24 17:47 ` Subosu Guruju [this message]
2001-05-25 7:43 ` Patrick Caulfield
-- strict thread matches above, loose matches on Subject: below --
2001-05-24 18:35 Kevin M Corry
2001-05-24 18:56 ` Justin Booth
2001-05-24 19:19 ` Justin Booth
[not found] <200105231825.tgoooa.cef.37tiu8v@emu>
2001-05-24 14:18 ` Steve Cranage
2001-05-24 0:35 Justin Booth
2001-05-24 0:53 ` Austin Gonyou
2001-05-24 1:19 ` Justin Booth
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=3B0D494C.8312242@erols.com \
--to=guruju@erols.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.