[CentOS] recover lvm from pv

Fri Mar 8 18:42:55 UTC 2013
SilverTip257 <silvertip257 at gmail.com>

On Fri, Mar 8, 2013 at 11:17 AM, Harold Pritchett <harold at uga.edu> wrote:

>
> [root at mickey ~]# vgscan
>    Reading all physical volumes.  This may take a while...
>    Found volume group "rvg" using metadata type lvm2
>    Found volume group "VolGroup00" using metadata type lvm2
>
> [root at mickey ~]# vgchange -a y
>    10 logical volume(s) in volume group "rvg" now active
>    2 logical volume(s) in volume group "VolGroup00" now active
>

Try "vgchange -a y vg0" since you already know the name of the volume group.


>
> [root at mickey ~]# pvscan
>    PV /dev/md125   VG rvg          lvm2 [2.72 TB / 1.66 TB free]
>    PV /dev/sda2    VG VolGroup00   lvm2 [465.66 GB / 0 free]
>    PV /dev/sdb1    VG VolGroup00   lvm2 [465.75 GB / 0 free]
>    Total: 3 [3.63 TB] / in use: 3 [3.63 TB] / in no VG: 0 [0   ]
>
> [root at mickey ~]# lvscan
>    inactive          '/dev/rvg/lv00' [1.00 GB] inherit
>    inactive          '/dev/rvg/lv08' [10.00 GB] inherit
>    inactive          '/dev/rvg/lv09' [1000.00 GB] inherit
>    inactive          '/dev/rvg/lv04' [20.00 GB] inherit
>    inactive          '/dev/rvg/lv03' [2.00 GB] inherit
>    inactive          '/dev/rvg/lv02' [4.00 GB] inherit
>    inactive          '/dev/rvg/lv06' [40.00 GB] inherit
>    inactive          '/dev/rvg/lv07' [10.00 GB] inherit
>    inactive          '/dev/rvg/lv01' [5.00 GB] inherit
>    inactive          '/dev/rvg/lv05' [512.00 MB] inherit
>    ACTIVE            '/dev/VolGroup00/LogVol00' [925.75 GB] inherit
>    ACTIVE            '/dev/VolGroup00/LogVol01' [5.66 GB] inherit
>
> [root at mickey ~]# ls /dev/rvg
> lv00  lv01  lv02  lv03  lv04  lv05  lv06  lv07  lv08  lv09
>
> [root at mickey ~]# mount /dev/rvg/lv00 /mnt
>
> [root at mickey ~]# ls /mnt
> big   dev   lib         media  opt   sbin     sys       usr
> bin   etc   lib64       misc   proc  selinux  tftpboot  var
> boot  home  lost+found  mnt    root  srv      tmp
>
> [root at mickey ~]#
>
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


-- 
---~~.~~---
Mike
//  SilverTip257  //