Re: please help LVM totally messed up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Sep 17, 2008 at 8:06 PM, Stephen Harris <lists@xxxxxxxxxx> 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@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@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@saturn ~]# lvre
lvreduce  lvremove  lvrename  lvresize
[root@saturn ~]# lvremove /dev/System/oldcpanel
  Can't remove open logical volume "oldcpanel"
[root@saturn ~]# lvremove /dev/System/wiseguy_rootimg
  Can't remove logical volume "wiseguy_rootimg" under snapshot
[root@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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux