[CentOS] please help LVM totally messed up

Wed Sep 17 16:30:45 UTC 2008
Rudi Ahlers <rudiahlers at gmail.com>

Hi all

I accidentally deleted a LVM volume directly (rm /dev/System/newcpanel) and
now my LVM's are all messed up.

I have a snapshot from one of the other LVM's, as follows lvcreate -s -n
newcpanel /dev/System/wiseguy -L10G

But, instead of running lvremove /dev/System/newcpanel I ran rm
/dev/System/newcpanel ( I don't know why)

So, now I have waisted space on my server, and I can't remove the original
LVM either.

root at saturn /]# lvremove /dev/System/wiseguy_rootimg
  /dev/System/wiseguy_rootimg: read failed after 0 of 4096 at 0:
Input/output error
  /dev/mapper/wiseguy_rootimg1: read failed after 0 of 2048 at 0:
Input/output error
  /dev/mapper/wiseguy_rootimg2: read failed after 0 of 2048 at 0:
Input/output error
  /dev/mapper/wiseguy_rootimg3: read failed after 0 of 2048 at 0:
Input/output error
  Can't remove logical volume "wiseguy_rootimg" under snapshot


root at saturn /]# lvscan
  /dev/System/wiseguy_rootimg: read failed after 0 of 4096 at 0:
Input/output error
  /dev/mapper/wiseguy_rootimg1: read failed after 0 of 2048 at 0:
Input/output error
  /dev/mapper/wiseguy_rootimg2: read failed after 0 of 2048 at 0:
Input/output error
  /dev/mapper/wiseguy_rootimg3: read failed after 0 of 2048 at 0:
Input/output error
  ACTIVE            '/dev/System/root' [10.00 GB] inherit
  ACTIVE            '/dev/System/swap' [4.00 GB] inherit
  ACTIVE            '/dev/System/pluto' [50.00 GB] inherit
  ACTIVE            '/dev/System/home' [10.00 GB] inherit
  ACTIVE            '/dev/System/data' [20.00 GB] inherit
  ACTIVE            '/dev/System/andrew_vmswap' [1.00 GB] inherit
  ACTIVE            '/dev/System/andrew_rootimg' [5.00 GB] inherit
  ACTIVE            '/dev/System/keith_vmswap' [1.00 GB] inherit
  ACTIVE            '/dev/System/keith_rootimg' [5.00 GB] inherit
  ACTIVE            '/dev/System/12_vmswap' [1.00 GB] inherit
  ACTIVE            '/dev/System/12_rootimg' [5.00 GB] inherit
  ACTIVE   Original '/dev/System/wiseguy_rootimg' [10.00 GB] inherit
  ACTIVE   Snapshot '/dev/System/oldcpanel' [10.00 GB] inherit


-- 

Kind Regards
Rudi Ahlers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080917/f5124828/attachment-0004.html>