Get rid of files of a non existing volume group
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
Quoted 6 lines · Kai Weber
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:
Quoted 8 lines
$ vgcreate datavg /dev/hdb1 vgcreate -- directory /dev/datavg already existsAs you can see the old
/dev/datavgstill 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.
Quoted 1 line
vgscan does not find the VG datavg anymore.
Well...er... if it's a totally new disk it won't. :)
patrick
+ Patrick Caulfield <[email protected]>:
Quoted 4 lines
Quoted 1 line
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