Re: recover lvm from pv

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



On Fri, Mar 8, 2013 at 11:17 AM, Harold Pritchett <harold@xxxxxxx> wrote:

>
> [root@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@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@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@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@mickey ~]# ls /dev/rvg
> lv00  lv01  lv02  lv03  lv04  lv05  lv06  lv07  lv08  lv09
>
> [root@mickey ~]# mount /dev/rvg/lv00 /mnt
>
> [root@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@mickey ~]#
>
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>


-- 
---~~.~~---
Mike
//  SilverTip257  //
_______________________________________________
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