[linux-lvm] catch-22

Erick Calder e at arix.com
Fri Dec 14 19:03:02 UTC 2001


a drive part of a volume crashed on me... I've looked through the man pages
and HOWTO but find no happiness... help!

the volume used to be called LVM (/dev/LVM) and had /dev/hda3 and
/dev/hdc... hdc crashed and I've replaced it with an identical drive.  I did
a "pvcreate /dev/hdc" after installation but cannot seem to add it to the
volume:

# vgextend LVM /dev/hdc
vgextend -- volume group "LVM" doesn't exist

and if I try to create it:

# vgcreate LVM /dev/hdc
vgcreate -- volume group directory or file already exists
vgcreate -- please choose a different name

I look in:

# ls /dev/LVM
total 104
dr-xr-xr-x    2 root     root         4096 Oct 26 12:54 ./
drwxr-xr-x   14 root     root        98304 Dec 13 17:46 ../
crw-r-----    1 root     disk     109,   0 Oct 26 12:54 group
brw-rw----    1 root     disk      58,   0 Oct 26 12:54 mp3z

# ls /proc/lvm/VGs
total 0
dr-xr-xr-x    2 root     root            0 Dec 14 17:52 ./
dr-xr-xr-x    3 root     root            0 Dec 14 17:52 ../

what is the correct procedure to follow? shall I just blow away the /dev/LVM
directory and do a "pvcreate -ff /dev/hda3"?

1k thx - e





More information about the linux-lvm mailing list