* [linux-lvm] LVM and mounting
@ 2002-11-19 14:55 Kenny Gorman
2002-11-19 15:56 ` [linux-lvm] " Kenny Gorman
2002-11-20 7:29 ` [linux-lvm] " Alasdair G Kergon
0 siblings, 2 replies; 3+ messages in thread
From: Kenny Gorman @ 2002-11-19 14:55 UTC (permalink / raw)
To: linux-lvm
I am having a problem where when I boot up the machine, the machine says
I need to fsck one of my logical volumes. This volume I just added a
new filesystem to, but it hung on mount, so I rebooted. Then I tried to
lvremove the volume, and it says it successfully removed it, then I am
running vgchange -a n <grp> and vgremove <grp>. But it says I can't
remove the group.. because it belongs to a volume.
I think my lvmtab or someting is all messed up because the some messages
seem to indicate that the volume is there, and some say it's not.
lvdisplay says it does not exist.
I would just like to remove the entire volume and group and start over
so I can get my machine to boot. Is there some option to just 'ignore'
or 'force' destroy the volume? If I fdisk the disk will I still get
this error?
Any help would be great!!
thx
-kg
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linux-lvm] Re: LVM and mounting
2002-11-19 14:55 [linux-lvm] LVM and mounting Kenny Gorman
@ 2002-11-19 15:56 ` Kenny Gorman
2002-11-20 7:29 ` [linux-lvm] " Alasdair G Kergon
1 sibling, 0 replies; 3+ messages in thread
From: Kenny Gorman @ 2002-11-19 15:56 UTC (permalink / raw)
To: linux-lvm
Just to add to this (I am not sure if this hit the list anyways, I just
subscribed).
I am running SuSE 2.4.16-64GB, and lvm 1.0.<something, can't get on the
box to verify@this point...>
-kg
Kenny Gorman wrote:
> I am having a problem where when I boot up the machine, the machine says
> I need to fsck one of my logical volumes. This volume I just added a
> new filesystem to, but it hung on mount, so I rebooted. Then I tried to
> lvremove the volume, and it says it successfully removed it, then I am
> running vgchange -a n <grp> and vgremove <grp>. But it says I can't
> remove the group.. because it belongs to a volume.
>
> I think my lvmtab or someting is all messed up because the some messages
> seem to indicate that the volume is there, and some say it's not.
> lvdisplay says it does not exist.
>
> I would just like to remove the entire volume and group and start over
> so I can get my machine to boot. Is there some option to just 'ignore'
> or 'force' destroy the volume? If I fdisk the disk will I still get
> this error?
>
> Any help would be great!!
>
> thx
> -kg
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] LVM and mounting
2002-11-19 14:55 [linux-lvm] LVM and mounting Kenny Gorman
2002-11-19 15:56 ` [linux-lvm] " Kenny Gorman
@ 2002-11-20 7:29 ` Alasdair G Kergon
1 sibling, 0 replies; 3+ messages in thread
From: Alasdair G Kergon @ 2002-11-20 7:29 UTC (permalink / raw)
To: linux-lvm
On Tue, Nov 19, 2002 at 12:55:17PM -0800, Kenny Gorman wrote:
> I would just like to remove the entire volume and group and start over
You'll need to wipe the LVM label at the start of each PV.
LVM2 has a tool which will do this for you called pvremove:
e.g. if the PV to wipe is /dev/sdb4: pvremove -ff /dev/sdb4
(works for both old and new metadata formats)
Or you can just use "dd" - example for the old (LVM1) metadata format:
dd if=/dev/zero of=/dev/sdb4 count=1
Alasdair
--
agk@uk.sistina.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-20 7:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-19 14:55 [linux-lvm] LVM and mounting Kenny Gorman
2002-11-19 15:56 ` [linux-lvm] " Kenny Gorman
2002-11-20 7:29 ` [linux-lvm] " Alasdair G Kergon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).