All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Get rid of files of a non existing volume group
@ 2002-07-05 15:53 Kai Weber
  2002-07-06  3:27 ` Patrick Caulfield
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Weber @ 2002-07-05 15:53 UTC (permalink / raw)
  To: linux-lvm

Hi,

I have lost a hard disk (died). I had a volume group on this disk. Now I
have replaced the disk with a new one and wanted to create the old scheme
on this disk:

$ vgcreate datavg /dev/hdb1
vgcreate -- directory /dev/datavg already exists

As you can see the old /dev/datavg still exists on my root-partition. How
do I get rid of the old files? There is no VG datavg anymore, but I want to
have the name back.

Can I 'rm -rf /dev/datavg' the files? Or should I do a vgextend?

vgscan does not find the VG datavg anymore.

Kai

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Get rid of files of a non existing volume group
  2002-07-05 15:53 [linux-lvm] Get rid of files of a non existing volume group Kai Weber
@ 2002-07-06  3:27 ` Patrick Caulfield
  2002-07-06  8:01   ` Kai Weber
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Caulfield @ 2002-07-06  3:27 UTC (permalink / raw)
  To: linux-lvm

On Fri, Jul 05, 2002 at 10:53:24PM +0200, Kai Weber wrote:
> Hi,
> 
> I have lost a hard disk (died). I had a volume group on this disk. Now I
> have replaced the disk with a new one and wanted to create the old scheme
> on this disk:
> 
> $ vgcreate datavg /dev/hdb1
> vgcreate -- directory /dev/datavg already exists
> 
> As you can see the old /dev/datavg still exists on my root-partition. How
> do I get rid of the old files? There is no VG datavg anymore, but I want to
> have the name back.
> 
> Can I 'rm -rf /dev/datavg' the files? Or should I do a vgextend?

You can safely delete the directory. When you re-created the VG and LVs then
nodes will be re-created.
 
> vgscan does not find the VG datavg anymore.

Well...er... if it's a totally new disk it won't. :)

patrick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Get rid of files of a non existing volume group
  2002-07-06  3:27 ` Patrick Caulfield
@ 2002-07-06  8:01   ` Kai Weber
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Weber @ 2002-07-06  8:01 UTC (permalink / raw)
  To: linux-lvm

+ Patrick Caulfield <caulfield@sistina.com>:

> > Can I 'rm -rf /dev/datavg' the files? Or should I do a vgextend?
> 
> You can safely delete the directory. When you re-created the VG and
> LVs then nodes will be re-created.

It worked. I ever thought the dev-files for LVM are created dynamicly.
So I feared removing the files would not be succesfull. And I am not a
friend of experiments... *g*

Thank you
Kai

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-06  8:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-05 15:53 [linux-lvm] Get rid of files of a non existing volume group Kai Weber
2002-07-06  3:27 ` Patrick Caulfield
2002-07-06  8:01   ` Kai Weber

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.