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

Re: LVM and mdadm



On Sat, 4 Apr 2015 13:56:33 +0300
Reco <recoverym4n@gmail.com> wrote:

>  Hi.
> 
> On Sat, 4 Apr 2015 12:48:32 +0200
> Petter Adsen <petter@synth.no> wrote:
> 
> > I've just finished setting up Jessie with mdadm and LVM, the latter
> > of which I have never used before.
> > 
> > /dev/md0 is a 1G mirror for /boot, no LVM there. /dev/md1 is a
> > mirror, than consists of the major part of /dev/sda and /dev/sdb -
> > both 250G. There are also 4G swap partitions on sda and sdb, no
> > RAID there.
> > 
> > The installation went smoothly, and I think I got everything right.
> > However, when I run "pvdisplay -v", it says:
> >     DEGRADED MODE. Incomplete RAID LVs will be processed.
> >     Scanning for physical volume names
> >   --- Physical volume ---
> >   PV Name               /dev/md1
> >   VG Name               ROOTVG
> >   PV Size               227.90 GiB / not usable 2.00 MiB
> >   Allocatable           yes 
> >   PE Size               4.00 MiB
> >   Total PE              58342
> >   Free PE               17812
> >   Allocated PE          40530
> >   PV UUID               bpoMmU-Z9w0-arNA-Q6Je-jdyl-P2nH-JiPtJY
> > 
> > Does that mean there is something wrong with the mirror under LVM?
> 
> It's possible that you have logical volumes created with --mirrors
> option, for example. It's not bad, just redundant (i.e. mirroring over
> mirroring).

Yeah, that would be redundant. I wouldn't really know, as I just
created the RAID mirror with the installer, and also used the installer
to create a PV filling md1, with a single VG, and a few LV's inside
that.

> Please post the output of vgdisplay -v.

Here goes. "freshinstall" is just a snapshot of the system right after
the first boot.

root@fenris:~# vgdisplay -v
    DEGRADED MODE. Incomplete RAID LVs will be processed.
    Finding all volume groups
    Finding volume group "ROOTVG"
  --- Volume group ---
  VG Name               ROOTVG
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                4
  Open LV               3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               227.90 GiB
  PE Size               4.00 MiB
  Total PE              58342
  Alloc PE / Size       42924 / 167.67 GiB
  Free  PE / Size       15418 / 60.23 GiB
  VG UUID               XviEb0-4Xq7-4aJO-4m8c-LtxI-aVGj-8CUIoN
   
  --- Logical volume ---
  LV Path                /dev/ROOTVG/LV_ROOT
  LV Name                LV_ROOT
  VG Name                ROOTVG
  LV UUID                ec5Fg4-OF3y-yB1S-dsXi-v2Nv-TqTJ-cwbEBg
  LV Write Access        read/write
  LV Creation host, time fenris, 2015-04-04 11:23:03 +0200
  LV snapshot status     source of
                         freshinstall [active]
  LV Status              available
  # open                 1
  LV Size                9.31 GiB
  Current LE             2384
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Path                /dev/ROOTVG/LV_VAR
  LV Name                LV_VAR
  VG Name                ROOTVG
  LV UUID                8JVtGt-kZtM-P0bv-wFJe-MAse-u1MO-6SenQJ
  LV Write Access        read/write
  LV Creation host, time fenris, 2015-04-04 11:23:43 +0200
  LV Status              available
  # open                 1
  LV Size                55.88 GiB
  Current LE             14305
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Path                /dev/ROOTVG/LV_HOME
  LV Name                LV_HOME
  VG Name                ROOTVG
  LV UUID                IenPg1-9gY1-n4At-rC3v-6auK-X2Vd-tJ2ldf
  LV Write Access        read/write
  LV Creation host, time fenris, 2015-04-04 11:24:13 +0200
  LV Status              available
  # open                 1
  LV Size                93.13 GiB
  Current LE             23841
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
   
  --- Logical volume ---
  LV Path                /dev/ROOTVG/freshinstall
  LV Name                freshinstall
  VG Name                ROOTVG
  LV UUID                n835Yc-gPq8-asVg-1yDV-1dgL-5eBU-sSV9db
  LV Write Access        read/write
  LV Creation host, time fenris, 2015-04-04 12:55:44 +0200
  LV snapshot status     active destination for LV_ROOT
  LV Status              available
  # open                 0
  LV Size                9.31 GiB
  Current LE             2384
  COW-table size         9.35 GiB
  COW-table LE           2394
  Allocated to snapshot  0.00%
  Snapshot chunk size    4.00 KiB
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3
   
  --- Physical volumes ---
  PV Name               /dev/md1     
  PV UUID               bpoMmU-Z9w0-arNA-Q6Je-jdyl-P2nH-JiPtJY
  PV Status             allocatable
  Total PE / Free PE    58342 / 15418
   
Petter

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."

Attachment: pgpwOglLDhUMJ.pgp
Description: OpenPGP digital signature


Reply to: