[CentOS] please help LVM totally messed up

Wed Sep 17 21:41:50 UTC 2008
Rudi Ahlers <rudiahlers at gmail.com>

On Wed, Sep 17, 2008 at 8:06 PM, Stephen Harris <lists at spuddy.org> wrote:

> On Wed, Sep 17, 2008 at 06:30:45PM +0200, Rudi Ahlers wrote:
> > Hi all
> >
> > I accidentally deleted a LVM volume directly (rm /dev/System/newcpanel)
> and
> > now my LVM's are all messed up.
>
> You might find that /dev/System/newcpanel was merely a symlink to
> /dev/mapper/System-newcpanel
>
> If the /dev/mapper entries exists, you can try recreating the symlink.
>
> Otherwise you could try deactivation and reactiving the System volume
> group ("vgchange -a n System", "vgchange -a y System").
>
> --
>
> rgds
> Stephen
> _______________________________________________
>


Both the symlink, and the actual file / device was missing, but I've been
able to rename newcpanel to oldcpanel - yet I still can't remove it.


[root at saturn ~]# pvscan
  PV /dev/md1   VG System   lvm2 [148.94 GB / 21.91 GB free]
  Total: 1 [148.94 GB] / in use: 1 [148.94 GB] / in no VG: 0 [0   ]
[root at saturn ~]# lvscan
  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            '/dev/System/wiseguy' [5.00 GB] inherit
  ACTIVE   Snapshot '/dev/System/oldcpanel' [32.00 MB] inherit
[root at saturn ~]# lvre
lvreduce  lvremove  lvrename  lvresize
[root at saturn ~]# lvremove /dev/System/oldcpanel
  Can't remove open logical volume "oldcpanel"
[root at saturn ~]# lvremove /dev/System/wiseguy_rootimg
  Can't remove logical volume "wiseguy_rootimg" under snapshot
[root at saturn ~]#


As you can see the System Volume Group is the main VG with root as well -
so, what will happen when I deactive & reactive System while the server is
running?


-- 

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