Results 1 to 7 of 7

Thread: lvscan unable to scan LVM1_member

  1. #1
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,009

    Default lvscan unable to scan LVM1_member

    Mounted a disk image:

    Code:
    erlangen:~ # lsblk -f /dev/loop0
    NAME       FSTYPE      LABEL UUID                                   MOUNTPOINT
    loop0                                                               
    ├─loop0p1  vfat              3C75-2871                              
    ├─loop0p4                                                           
    ├─loop0p5  LVM1_member       8JZp38-1vPC-wDBt-5vmG-GgFM-JgUC-svTTEu 
    ├─loop0p6  ext2              d0983396-23a5-425b-a799-066487dbd42a   
    ├─loop0p7  reiserfs                                                 
    ├─loop0p8  ext2              d88dd453-aac4-4dcf-b236-2b14e206195d   
    ├─loop0p9  swap                                                     
    ├─loop0p10 reiserfs          db177cec-75d9-43e1-be10-f0722340422f   
    └─loop0p11 ext2              03389ef7-b48c-4954-b56d-2a2b05e77f45   
    erlangen:~ #
    lvscan and vgscan won't find anything. Any idea?
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,306
    Blog Entries
    2

    Default Re: lvscan unable to scan LVM1_member

    Try mounting your image file using losetup

    https://en.opensuse.org/User:Tsu2/loop_devices

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,009

    Default Re: lvscan unable to scan LVM1_member

    Quote Originally Posted by tsu2 View Post
    Try mounting your image file using losetup

    https://en.opensuse.org/User:Tsu2/loop_devices

    TSU
    I have:
    Code:
    erlangen:~ # losetup -P -f /run/media/karl/Home-2009/ST380020.iso
    erlangen:~ # fdisk -l /dev/loop0
    Disk /dev/loop0: 74.5 GiB, 80026361856 bytes, 156301488 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x00000000
    
    Device        Boot    Start       End   Sectors   Size Id Type
    /dev/loop0p1  *          63   8389583   8389521     4G  b W95 FAT32
    /dev/loop0p4        8389584 156301487 147911904  70.5G  f W95 Ext'd (LBA)
    /dev/loop0p5       24837120 156301487 131464368  62.7G 8e Linux LVM
    /dev/loop0p6        8389647   8492399    102753  50.2M 83 Linux
    /dev/loop0p7        8492463   9311903    819441 400.1M 83 Linux
    /dev/loop0p8  *     9311967   9414719    102753  50.2M 83 Linux
    /dev/loop0p9        9414783  10438847   1024065   500M 82 Linux swap / Solaris
    /dev/loop0p10      10438911  18828431   8389521     4G 83 Linux
    /dev/loop0p11      18828495  24837119   6008625   2.9G 83 Linux
    
    Partition table entries are not in disk order.
    erlangen:~ #
    Tried to mount each partition and succeeded for all of them but /dev/loop0p5.

    Code:
    erlangen:~ # mount /dev/loop0p5 /mnt
    mount: /mnt: unknown filesystem type 'LVM1_member'.
    erlangen:~ # vgscan -v
      Reading volume groups from cache.
        No volume groups found.
    erlangen:~ # lvscan -v
        No volume groups found.
    erlangen:~ #
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,306
    Blog Entries
    2

    Default Re: lvscan unable to scan LVM1_member

    I actually meant to mount your diskfile on a single loop device, not a partition on its own loop device,
    If you're trying to only inspect the contents of your image file it probably won't make a difference but If you're trying to boot a system using the diskfile, then you'll probably need to mount on a single loop device.
    If you're trying to run a system using the image file, then you'd probably have to be more descriptive what you're trying to do.

    Also,
    If you're trying to make your image file available to your system on boot, there is documentation elsewhere how to use GRuB2 to create and mount loop devices.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,009

    Default Re: lvscan unable to scan LVM1_member

    Quote Originally Posted by tsu2 View Post
    I actually meant to mount your diskfile on a single loop device, not a partition on its own loop device,
    If you're trying to only inspect the contents of your image file it probably won't make a difference but If you're trying to boot a system using the diskfile, then you'll probably need to mount on a single loop device.
    I want to inspect the contents of /dev/loop0p5 and convert it to some p5.sqsh. Found /mnt/etc/lvmconf/system.conf Can that be used to restore the volume group?
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

  6. #6
    Join Date
    Sep 2012
    Posts
    5,141

    Default Re: lvscan unable to scan LVM1_member

    Code:
    commit c1cd18f21ef233fa19e948cf130e97c005a349ad
    Author: David Teigland <teigland@redhat.com>
    Date:   Fri Apr 27 16:22:46 2018 -0500
    
    
        Remove lvm1 and pool disk formats
    Happened in 2.02.178, TW is on 2.02.180 now.

  7. #7
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,009

    Default Re: lvscan unable to scan LVM1_member

    Quote Originally Posted by arvidjaar View Post
    Code:
    commit c1cd18f21ef233fa19e948cf130e97c005a349ad
    Author: David Teigland <teigland@redhat.com>
    Date:   Fri Apr 27 16:22:46 2018 -0500
    
    
        Remove lvm1 and pool disk formats
    Happened in 2.02.178, TW is on 2.02.180 now.
    Tried the AMD Athlon 4850e (2009), openSUSE 13.1:

    Code:
    erlangen:~ # cat /run/media/karl/Home-2009/lsblk.out.txt 
    NAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda                  8:0    0  55.9G  0 disk 
    ├─sda1               8:1    0    28G  0 part /var/run/media/karl/Ubuntu-18.04.1
    └─sda2               8:2    0  27.9G  0 part /
    sdb                  8:16   0 931.5G  0 disk 
    ├─sdb1               8:17   0    32G  0 part 
    ├─sdb2               8:18   0     2G  0 part [SWAP]
    ├─sdb3               8:19   0    50G  0 part /var/run/media/karl/openSUSE-13.1
    ├─sdb5               8:21   0    20G  0 part /openSUSE-11.4
    └─sdb6               8:22   0 827.5G  0 part /home
    sdc                  8:32   0 931.5G  0 disk 
    └─sdc2               8:34   0 931.5G  0 part /var/run/media/karl/Home-2009
    loop0                7:0    0  74.5G  0 loop 
    ├─loop0p1          259:0    0     4G  0 loop 
    ├─loop0p4          259:1    0     1K  0 loop 
    ├─loop0p5          259:2    0  62.7G  0 loop 
    │ ├─system-usr     253:0    0     2G  0 lvm  
    │ ├─system-var     253:1    0   200M  0 lvm  
    │ ├─system-opt     253:2    0     1G  0 lvm  
    │ ├─system-home    253:3    0     2G  0 lvm  
    │ ├─system-sm    253:4    0  46.3G  0 lvm  
    │ ├─system-swap    253:5    0     1G  0 lvm  
    │ └─system-scratch 253:6    0    10G  0 lvm  
    ├─loop0p6          259:3    0  50.2M  0 loop 
    ├─loop0p7          259:4    0 400.1M  0 loop /var/run/media/karl/disk
    ├─loop0p8          259:5    0  50.2M  0 loop 
    ├─loop0p9          259:6    0   500M  0 loop 
    ├─loop0p10         259:7    0     4G  0 loop /var/run/media/karl/db177cec-75d9-43e1-be10-f0722340422f
    └─loop0p11         259:8    0   2.9G  0 loop /var/run/media/karl/03389ef7-b48c-4954-b56d-2a2b05e77f45
    erlangen:~ #
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •