Debian Bug report logs - #695309
lvm2: lvdisplay does not display 'raid1' mirror allocations

version graph

Package: lvm2; Maintainer for lvm2 is Debian LVM Team <[email protected]>; Source for lvm2 is src:lvm2 (PTS, buildd, popcon).

Reported by: Paul LeoNerd Evans <[email protected]>

Date: Thu, 6 Dec 2012 21:21:05 UTC

Severity: normal

Found in version lvm2/2.02.95-4

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian LVM Team <[email protected]>:
Bug#695309; Package lvm2. (Thu, 06 Dec 2012 21:21:08 GMT) (full text, mbox, link).


Acknowledgement sent to Paul LeoNerd Evans <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian LVM Team <[email protected]>. (Thu, 06 Dec 2012 21:21:08 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Paul LeoNerd Evans <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: lvm2: lvdisplay does not display 'raid1' mirror allocations
Date: Thu, 06 Dec 2012 21:18:42 +0000
Package: lvm2
Version: 2.02.95-4
Severity: normal

Using --type mirror LV mirroring, I could get information about which
physical disks that a given LV was on, by

 $ lvdisplay -m vgname/lvname

which would at least tell me the [hidden internal] LV names that the
mirror was distributed among; I could then

 $ lvdisplay -am vgname/lvname_mimage_{0,1}

to find them.

It seems that --type raid1 happens to use _rimage_$N as its image names,
but I only found that out by hunting around directly using

 $ dmsetup info | grep lvname

It would be good if similar information was displayed.

-----

That said, ideally it would be nice if such "cascaded" LVs would display
their component information, perhaps in a tree looking like this:



$ lvdisplay -avm vg_cel/root64
    Using logical volume(s) on command line
  --- Logical volume ---
  LV Path                /dev/vg_cel/root64
  LV Name                root64
  VG Name                vg_cel
  LV UUID                jcstwu-6f81-QcE8-dIl3-eSzo-VeQX-RRjU8D
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                1.86 GiB
  Current LE             476
  Mirrored volumes       2
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2
   
  --- Segments ---
  Logical extent 0 to 475:
    Type                 raid1

    --- Logical volume ---
    Internal LV Name       root64_rimage_0

    --- Segments ---
    Logical extent 0 to 475:
      Typelinear
      Physical volume      /dev/sdb2
      Physical extents     36224 to 36699
     
    --- Logical volume ---
    Internal LV Name       root64_rimage_1
     
    --- Segments ---
    Logical extent 0 to 475:
      Typelinear
      Physical volume      /dev/sdd2
      Physical extents     35841 to 36316

   


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmsetup                   2:1.02.74-4
ii  initscripts               2.88dsf-34
ii  libc6                     2.13-37
ii  libdevmapper-event1.02.1  2:1.02.74-4
ii  libdevmapper1.02.1        2:1.02.74-4
ii  libreadline5              5.2-12
ii  libudev0                  175-7
ii  lsb-base                  4.1+Debian8

lvm2 recommends no packages.

lvm2 suggests no packages.

-- no debconf information



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 13:05:04 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.