I have encrypted LVM2_member partition I want to mount and access the data on but I cannot












0














TLDR; I have a encrypted luks partition which is a VG member I cant access, I have the password for the volume. I just want to mount it so I can get some data off of it. All of this is running on CentOS 7.



Full Story



I was adding another disk to a VG with encrypted disks. I added the partition, the VG saw the disk and added it to the VG size but I'm pretty sure I needed to expand the partition to use up the new space. I rebooted to test if perhaps that is why it wasn't seeing it. The host now boots into Emergency with the message /dev/centos/00 not found. I have moved the disks to a working machine in the hopes a full Linux system will give me more resources to fix this than a rescue volume. I have looked all over the interwebs. Most suggestions tell me to activate the vg and just mount it which fails. I usually get unknown partition type "LVM2_member"



Host: Linux netmon01 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux



blkid shows;




/dev/xvdb1: UUID="fa1fb4d3-c3cb-4b15-8fda-8e876f20db59" TYPE="swap"
/dev/xvdb2: UUID="6267702e-b278-488d-a67f-a4c638648274" TYPE="ext4"
/dev/xvda1: UUID="37005f62-f061-4517-b89c-844fd8907481" TYPE="xfs"
/dev/xvda2: UUID="ffOdMt-MJ6L-gs7r-VsYk-g18F-ggTy-jP8119" TYPE="LVM2_member"
/dev/xvdc1: UUID="e18f78eb-4192-4c6c-ba39-b4ab03e61ffb" TYPE="xfs"
/dev/xvdc2: UUID="DMaI1C-Dz8l-QrHu-Vb8v-OSbD-5OWh-xZg1NM" TYPE="LVM2_member"
/dev/xvde1: UUID="67639b4e-62c8-4774-97db-a95f0e7c89d5" TYPE="crypto_LUKS"
/dev/mapper/netmon01-root: UUID="320c2648-2b46-4553-954b-6d664266fd25" TYPE="xfs"
/dev/mapper/netmon01-swap: UUID="2bf3687a-7e16-4fa1-8102-f07cdb5f0372" TYPE="swap"
/dev/mapper/centos-01: UUID="9880703d-7ace-4146-98bc-d4b08f920d87" TYPE="swap"



The volume is question is /dev/xvdc2.




[root@netmon01 /]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 67.8M 0 rom
xvda 202:0 0 22G 0 disk
├─xvda1 202:1 0 500M 0 part /boot
└─xvda2 202:2 0 21.5G 0 part
├─netmon01-root 253:0 0 19.3G 0 lvm /
└─netmon01-swap 253:1 0 2.2G 0 lvm [SWAP]
xvdb 202:16 0 10G 0 disk
├─xvdb1 202:17 0 1G 0 part
└─xvdb2 202:18 0 9G 0 part
xvdc 202:32 0 285G 0 disk
├─xvdc1 202:33 0 476M 0 part
└─xvdc2 202:34 0 284.5G 0 part
└─centos-01 253:2 0 4G 0 lvm
xvde 202:64 0 60G 0 disk
└─xvde1 202:65 0 60G 0 part



You can see the disk is 284.5G which is the proper size.

[root@netmon01 /]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 1 1 0 wz--n- 284.53g 280.53g
netmon01 1 2 0 wz--n- <21.51g 44.00m



vgs shows "centos" which is the proper volume group for that disk.

[root@netmon01 /]# vgscan
Reading volume groups from cache.
Found volume group "centos" using metadata type lvm2
Found volume group "netmon01" using metadata type lvm2



A listing of the devices under /dev/mapper

[root@netmon01 /]# ls -l /dev/mapper
total 0
lrwxrwxrwx. 1 root root 7 Dec 16 23:41 centos-01 -> ../dm-2
crw-------. 1 root root 10, 236 Jul 5 04:57 control
lrwxrwxrwx. 1 root root 7 Dec 17 00:10 netmon01-root -> ../dm-0
lrwxrwxrwx. 1 root root 7 Dec 17 00:10 netmon01-swap -> ../dm-1

lvs output




[root@netmon01 /]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
01 centos -wi-a----- 4.00g
root netmon01 -wi-ao---- <19.27g
swap netmon01 -wi-ao---- <2.20g



lvdisplay output

[root@netmon01 /]# lvdisplay
--- Logical volume ---
LV Path /dev/centos/01
LV Name 01
VG Name centos
LV UUID 6OAB5a-GxcI-eMrC-wCk3-CuiR-uOE7-YqyJfK
LV Write Access read/write
LV Creation host, time <removed>, 2017-11-02 14:39:41 -0400
LV Status available
# open 0
LV Size 4.00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:2



--- Logical volume ---
LV Path /dev/netmon01/swap
LV Name swap
VG Name netmon01
LV UUID Lj3fuN-BbPI-MnNv-eoRC-jE4x-yi3v-x92vUg
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2017-10-02 10:39:28 -0400
LV Status available
# open 2
LV Size <2.20 GiB
Current LE 563
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:1



--- Logical volume ---
LV Path /dev/netmon01/root
LV Name root
VG Name netmon01
LV UUID KVDE80-5oak-KAwu-Wyth-gOzt-i9CI-TAB3UK
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2017-10-02 10:39:28 -0400
LV Status available
# open 1
LV Size <19.27 GiB
Current LE 4932
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:0



vgdisplay output

[root@netmon01 /]# vgdisplay
--- Volume group ---
VG Name centos
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 284.53 GiB
PE Size 4.00 MiB
Total PE 72840
Alloc PE / Size 1024 / 4.00 GiB
Free PE / Size 71816 / 280.53 GiB
VG UUID KFVSlE-dqqH-aF1y-NVTS-n0JM-PnQO-5QLd4S



--- Volume group ---
VG Name netmon01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size <21.51 GiB
PE Size 4.00 MiB
Total PE 5506
Alloc PE / Size 5495 / 21.46 GiB
Free PE / Size 11 / 44.00 MiB
VG UUID TdwEhb-ufE4-sJXd-IiZo-soO6-ODxw-B92mEw



Any assistance would be greatly appreciated. Thanks in advance!










share|improve this question



























    0














    TLDR; I have a encrypted luks partition which is a VG member I cant access, I have the password for the volume. I just want to mount it so I can get some data off of it. All of this is running on CentOS 7.



    Full Story



    I was adding another disk to a VG with encrypted disks. I added the partition, the VG saw the disk and added it to the VG size but I'm pretty sure I needed to expand the partition to use up the new space. I rebooted to test if perhaps that is why it wasn't seeing it. The host now boots into Emergency with the message /dev/centos/00 not found. I have moved the disks to a working machine in the hopes a full Linux system will give me more resources to fix this than a rescue volume. I have looked all over the interwebs. Most suggestions tell me to activate the vg and just mount it which fails. I usually get unknown partition type "LVM2_member"



    Host: Linux netmon01 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux



    blkid shows;




    /dev/xvdb1: UUID="fa1fb4d3-c3cb-4b15-8fda-8e876f20db59" TYPE="swap"
    /dev/xvdb2: UUID="6267702e-b278-488d-a67f-a4c638648274" TYPE="ext4"
    /dev/xvda1: UUID="37005f62-f061-4517-b89c-844fd8907481" TYPE="xfs"
    /dev/xvda2: UUID="ffOdMt-MJ6L-gs7r-VsYk-g18F-ggTy-jP8119" TYPE="LVM2_member"
    /dev/xvdc1: UUID="e18f78eb-4192-4c6c-ba39-b4ab03e61ffb" TYPE="xfs"
    /dev/xvdc2: UUID="DMaI1C-Dz8l-QrHu-Vb8v-OSbD-5OWh-xZg1NM" TYPE="LVM2_member"
    /dev/xvde1: UUID="67639b4e-62c8-4774-97db-a95f0e7c89d5" TYPE="crypto_LUKS"
    /dev/mapper/netmon01-root: UUID="320c2648-2b46-4553-954b-6d664266fd25" TYPE="xfs"
    /dev/mapper/netmon01-swap: UUID="2bf3687a-7e16-4fa1-8102-f07cdb5f0372" TYPE="swap"
    /dev/mapper/centos-01: UUID="9880703d-7ace-4146-98bc-d4b08f920d87" TYPE="swap"



    The volume is question is /dev/xvdc2.




    [root@netmon01 /]# lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sr0 11:0 1 67.8M 0 rom
    xvda 202:0 0 22G 0 disk
    ├─xvda1 202:1 0 500M 0 part /boot
    └─xvda2 202:2 0 21.5G 0 part
    ├─netmon01-root 253:0 0 19.3G 0 lvm /
    └─netmon01-swap 253:1 0 2.2G 0 lvm [SWAP]
    xvdb 202:16 0 10G 0 disk
    ├─xvdb1 202:17 0 1G 0 part
    └─xvdb2 202:18 0 9G 0 part
    xvdc 202:32 0 285G 0 disk
    ├─xvdc1 202:33 0 476M 0 part
    └─xvdc2 202:34 0 284.5G 0 part
    └─centos-01 253:2 0 4G 0 lvm
    xvde 202:64 0 60G 0 disk
    └─xvde1 202:65 0 60G 0 part



    You can see the disk is 284.5G which is the proper size.

    [root@netmon01 /]# vgs
    VG #PV #LV #SN Attr VSize VFree
    centos 1 1 0 wz--n- 284.53g 280.53g
    netmon01 1 2 0 wz--n- <21.51g 44.00m



    vgs shows "centos" which is the proper volume group for that disk.

    [root@netmon01 /]# vgscan
    Reading volume groups from cache.
    Found volume group "centos" using metadata type lvm2
    Found volume group "netmon01" using metadata type lvm2



    A listing of the devices under /dev/mapper

    [root@netmon01 /]# ls -l /dev/mapper
    total 0
    lrwxrwxrwx. 1 root root 7 Dec 16 23:41 centos-01 -> ../dm-2
    crw-------. 1 root root 10, 236 Jul 5 04:57 control
    lrwxrwxrwx. 1 root root 7 Dec 17 00:10 netmon01-root -> ../dm-0
    lrwxrwxrwx. 1 root root 7 Dec 17 00:10 netmon01-swap -> ../dm-1

    lvs output




    [root@netmon01 /]# lvs
    LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
    01 centos -wi-a----- 4.00g
    root netmon01 -wi-ao---- <19.27g
    swap netmon01 -wi-ao---- <2.20g



    lvdisplay output

    [root@netmon01 /]# lvdisplay
    --- Logical volume ---
    LV Path /dev/centos/01
    LV Name 01
    VG Name centos
    LV UUID 6OAB5a-GxcI-eMrC-wCk3-CuiR-uOE7-YqyJfK
    LV Write Access read/write
    LV Creation host, time <removed>, 2017-11-02 14:39:41 -0400
    LV Status available
    # open 0
    LV Size 4.00 GiB
    Current LE 1024
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 8192
    Block device 253:2



    --- Logical volume ---
    LV Path /dev/netmon01/swap
    LV Name swap
    VG Name netmon01
    LV UUID Lj3fuN-BbPI-MnNv-eoRC-jE4x-yi3v-x92vUg
    LV Write Access read/write
    LV Creation host, time localhost.localdomain, 2017-10-02 10:39:28 -0400
    LV Status available
    # open 2
    LV Size <2.20 GiB
    Current LE 563
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 8192
    Block device 253:1



    --- Logical volume ---
    LV Path /dev/netmon01/root
    LV Name root
    VG Name netmon01
    LV UUID KVDE80-5oak-KAwu-Wyth-gOzt-i9CI-TAB3UK
    LV Write Access read/write
    LV Creation host, time localhost.localdomain, 2017-10-02 10:39:28 -0400
    LV Status available
    # open 1
    LV Size <19.27 GiB
    Current LE 4932
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 8192
    Block device 253:0



    vgdisplay output

    [root@netmon01 /]# vgdisplay
    --- Volume group ---
    VG Name centos
    System ID
    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 9
    VG Access read/write
    VG Status resizable
    MAX LV 0
    Cur LV 1
    Open LV 0
    Max PV 0
    Cur PV 1
    Act PV 1
    VG Size 284.53 GiB
    PE Size 4.00 MiB
    Total PE 72840
    Alloc PE / Size 1024 / 4.00 GiB
    Free PE / Size 71816 / 280.53 GiB
    VG UUID KFVSlE-dqqH-aF1y-NVTS-n0JM-PnQO-5QLd4S



    --- Volume group ---
    VG Name netmon01
    System ID
    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 5
    VG Access read/write
    VG Status resizable
    MAX LV 0
    Cur LV 2
    Open LV 2
    Max PV 0
    Cur PV 1
    Act PV 1
    VG Size <21.51 GiB
    PE Size 4.00 MiB
    Total PE 5506
    Alloc PE / Size 5495 / 21.46 GiB
    Free PE / Size 11 / 44.00 MiB
    VG UUID TdwEhb-ufE4-sJXd-IiZo-soO6-ODxw-B92mEw



    Any assistance would be greatly appreciated. Thanks in advance!










    share|improve this question

























      0












      0








      0







      TLDR; I have a encrypted luks partition which is a VG member I cant access, I have the password for the volume. I just want to mount it so I can get some data off of it. All of this is running on CentOS 7.



      Full Story



      I was adding another disk to a VG with encrypted disks. I added the partition, the VG saw the disk and added it to the VG size but I'm pretty sure I needed to expand the partition to use up the new space. I rebooted to test if perhaps that is why it wasn't seeing it. The host now boots into Emergency with the message /dev/centos/00 not found. I have moved the disks to a working machine in the hopes a full Linux system will give me more resources to fix this than a rescue volume. I have looked all over the interwebs. Most suggestions tell me to activate the vg and just mount it which fails. I usually get unknown partition type "LVM2_member"



      Host: Linux netmon01 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux



      blkid shows;




      /dev/xvdb1: UUID="fa1fb4d3-c3cb-4b15-8fda-8e876f20db59" TYPE="swap"
      /dev/xvdb2: UUID="6267702e-b278-488d-a67f-a4c638648274" TYPE="ext4"
      /dev/xvda1: UUID="37005f62-f061-4517-b89c-844fd8907481" TYPE="xfs"
      /dev/xvda2: UUID="ffOdMt-MJ6L-gs7r-VsYk-g18F-ggTy-jP8119" TYPE="LVM2_member"
      /dev/xvdc1: UUID="e18f78eb-4192-4c6c-ba39-b4ab03e61ffb" TYPE="xfs"
      /dev/xvdc2: UUID="DMaI1C-Dz8l-QrHu-Vb8v-OSbD-5OWh-xZg1NM" TYPE="LVM2_member"
      /dev/xvde1: UUID="67639b4e-62c8-4774-97db-a95f0e7c89d5" TYPE="crypto_LUKS"
      /dev/mapper/netmon01-root: UUID="320c2648-2b46-4553-954b-6d664266fd25" TYPE="xfs"
      /dev/mapper/netmon01-swap: UUID="2bf3687a-7e16-4fa1-8102-f07cdb5f0372" TYPE="swap"
      /dev/mapper/centos-01: UUID="9880703d-7ace-4146-98bc-d4b08f920d87" TYPE="swap"



      The volume is question is /dev/xvdc2.




      [root@netmon01 /]# lsblk
      NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
      sr0 11:0 1 67.8M 0 rom
      xvda 202:0 0 22G 0 disk
      ├─xvda1 202:1 0 500M 0 part /boot
      └─xvda2 202:2 0 21.5G 0 part
      ├─netmon01-root 253:0 0 19.3G 0 lvm /
      └─netmon01-swap 253:1 0 2.2G 0 lvm [SWAP]
      xvdb 202:16 0 10G 0 disk
      ├─xvdb1 202:17 0 1G 0 part
      └─xvdb2 202:18 0 9G 0 part
      xvdc 202:32 0 285G 0 disk
      ├─xvdc1 202:33 0 476M 0 part
      └─xvdc2 202:34 0 284.5G 0 part
      └─centos-01 253:2 0 4G 0 lvm
      xvde 202:64 0 60G 0 disk
      └─xvde1 202:65 0 60G 0 part



      You can see the disk is 284.5G which is the proper size.

      [root@netmon01 /]# vgs
      VG #PV #LV #SN Attr VSize VFree
      centos 1 1 0 wz--n- 284.53g 280.53g
      netmon01 1 2 0 wz--n- <21.51g 44.00m



      vgs shows "centos" which is the proper volume group for that disk.

      [root@netmon01 /]# vgscan
      Reading volume groups from cache.
      Found volume group "centos" using metadata type lvm2
      Found volume group "netmon01" using metadata type lvm2



      A listing of the devices under /dev/mapper

      [root@netmon01 /]# ls -l /dev/mapper
      total 0
      lrwxrwxrwx. 1 root root 7 Dec 16 23:41 centos-01 -> ../dm-2
      crw-------. 1 root root 10, 236 Jul 5 04:57 control
      lrwxrwxrwx. 1 root root 7 Dec 17 00:10 netmon01-root -> ../dm-0
      lrwxrwxrwx. 1 root root 7 Dec 17 00:10 netmon01-swap -> ../dm-1

      lvs output




      [root@netmon01 /]# lvs
      LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
      01 centos -wi-a----- 4.00g
      root netmon01 -wi-ao---- <19.27g
      swap netmon01 -wi-ao---- <2.20g



      lvdisplay output

      [root@netmon01 /]# lvdisplay
      --- Logical volume ---
      LV Path /dev/centos/01
      LV Name 01
      VG Name centos
      LV UUID 6OAB5a-GxcI-eMrC-wCk3-CuiR-uOE7-YqyJfK
      LV Write Access read/write
      LV Creation host, time <removed>, 2017-11-02 14:39:41 -0400
      LV Status available
      # open 0
      LV Size 4.00 GiB
      Current LE 1024
      Segments 1
      Allocation inherit
      Read ahead sectors auto
      - currently set to 8192
      Block device 253:2



      --- Logical volume ---
      LV Path /dev/netmon01/swap
      LV Name swap
      VG Name netmon01
      LV UUID Lj3fuN-BbPI-MnNv-eoRC-jE4x-yi3v-x92vUg
      LV Write Access read/write
      LV Creation host, time localhost.localdomain, 2017-10-02 10:39:28 -0400
      LV Status available
      # open 2
      LV Size <2.20 GiB
      Current LE 563
      Segments 1
      Allocation inherit
      Read ahead sectors auto
      - currently set to 8192
      Block device 253:1



      --- Logical volume ---
      LV Path /dev/netmon01/root
      LV Name root
      VG Name netmon01
      LV UUID KVDE80-5oak-KAwu-Wyth-gOzt-i9CI-TAB3UK
      LV Write Access read/write
      LV Creation host, time localhost.localdomain, 2017-10-02 10:39:28 -0400
      LV Status available
      # open 1
      LV Size <19.27 GiB
      Current LE 4932
      Segments 1
      Allocation inherit
      Read ahead sectors auto
      - currently set to 8192
      Block device 253:0



      vgdisplay output

      [root@netmon01 /]# vgdisplay
      --- Volume group ---
      VG Name centos
      System ID
      Format lvm2
      Metadata Areas 1
      Metadata Sequence No 9
      VG Access read/write
      VG Status resizable
      MAX LV 0
      Cur LV 1
      Open LV 0
      Max PV 0
      Cur PV 1
      Act PV 1
      VG Size 284.53 GiB
      PE Size 4.00 MiB
      Total PE 72840
      Alloc PE / Size 1024 / 4.00 GiB
      Free PE / Size 71816 / 280.53 GiB
      VG UUID KFVSlE-dqqH-aF1y-NVTS-n0JM-PnQO-5QLd4S



      --- Volume group ---
      VG Name netmon01
      System ID
      Format lvm2
      Metadata Areas 1
      Metadata Sequence No 5
      VG Access read/write
      VG Status resizable
      MAX LV 0
      Cur LV 2
      Open LV 2
      Max PV 0
      Cur PV 1
      Act PV 1
      VG Size <21.51 GiB
      PE Size 4.00 MiB
      Total PE 5506
      Alloc PE / Size 5495 / 21.46 GiB
      Free PE / Size 11 / 44.00 MiB
      VG UUID TdwEhb-ufE4-sJXd-IiZo-soO6-ODxw-B92mEw



      Any assistance would be greatly appreciated. Thanks in advance!










      share|improve this question













      TLDR; I have a encrypted luks partition which is a VG member I cant access, I have the password for the volume. I just want to mount it so I can get some data off of it. All of this is running on CentOS 7.



      Full Story



      I was adding another disk to a VG with encrypted disks. I added the partition, the VG saw the disk and added it to the VG size but I'm pretty sure I needed to expand the partition to use up the new space. I rebooted to test if perhaps that is why it wasn't seeing it. The host now boots into Emergency with the message /dev/centos/00 not found. I have moved the disks to a working machine in the hopes a full Linux system will give me more resources to fix this than a rescue volume. I have looked all over the interwebs. Most suggestions tell me to activate the vg and just mount it which fails. I usually get unknown partition type "LVM2_member"



      Host: Linux netmon01 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux



      blkid shows;




      /dev/xvdb1: UUID="fa1fb4d3-c3cb-4b15-8fda-8e876f20db59" TYPE="swap"
      /dev/xvdb2: UUID="6267702e-b278-488d-a67f-a4c638648274" TYPE="ext4"
      /dev/xvda1: UUID="37005f62-f061-4517-b89c-844fd8907481" TYPE="xfs"
      /dev/xvda2: UUID="ffOdMt-MJ6L-gs7r-VsYk-g18F-ggTy-jP8119" TYPE="LVM2_member"
      /dev/xvdc1: UUID="e18f78eb-4192-4c6c-ba39-b4ab03e61ffb" TYPE="xfs"
      /dev/xvdc2: UUID="DMaI1C-Dz8l-QrHu-Vb8v-OSbD-5OWh-xZg1NM" TYPE="LVM2_member"
      /dev/xvde1: UUID="67639b4e-62c8-4774-97db-a95f0e7c89d5" TYPE="crypto_LUKS"
      /dev/mapper/netmon01-root: UUID="320c2648-2b46-4553-954b-6d664266fd25" TYPE="xfs"
      /dev/mapper/netmon01-swap: UUID="2bf3687a-7e16-4fa1-8102-f07cdb5f0372" TYPE="swap"
      /dev/mapper/centos-01: UUID="9880703d-7ace-4146-98bc-d4b08f920d87" TYPE="swap"



      The volume is question is /dev/xvdc2.




      [root@netmon01 /]# lsblk
      NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
      sr0 11:0 1 67.8M 0 rom
      xvda 202:0 0 22G 0 disk
      ├─xvda1 202:1 0 500M 0 part /boot
      └─xvda2 202:2 0 21.5G 0 part
      ├─netmon01-root 253:0 0 19.3G 0 lvm /
      └─netmon01-swap 253:1 0 2.2G 0 lvm [SWAP]
      xvdb 202:16 0 10G 0 disk
      ├─xvdb1 202:17 0 1G 0 part
      └─xvdb2 202:18 0 9G 0 part
      xvdc 202:32 0 285G 0 disk
      ├─xvdc1 202:33 0 476M 0 part
      └─xvdc2 202:34 0 284.5G 0 part
      └─centos-01 253:2 0 4G 0 lvm
      xvde 202:64 0 60G 0 disk
      └─xvde1 202:65 0 60G 0 part



      You can see the disk is 284.5G which is the proper size.

      [root@netmon01 /]# vgs
      VG #PV #LV #SN Attr VSize VFree
      centos 1 1 0 wz--n- 284.53g 280.53g
      netmon01 1 2 0 wz--n- <21.51g 44.00m



      vgs shows "centos" which is the proper volume group for that disk.

      [root@netmon01 /]# vgscan
      Reading volume groups from cache.
      Found volume group "centos" using metadata type lvm2
      Found volume group "netmon01" using metadata type lvm2



      A listing of the devices under /dev/mapper

      [root@netmon01 /]# ls -l /dev/mapper
      total 0
      lrwxrwxrwx. 1 root root 7 Dec 16 23:41 centos-01 -> ../dm-2
      crw-------. 1 root root 10, 236 Jul 5 04:57 control
      lrwxrwxrwx. 1 root root 7 Dec 17 00:10 netmon01-root -> ../dm-0
      lrwxrwxrwx. 1 root root 7 Dec 17 00:10 netmon01-swap -> ../dm-1

      lvs output




      [root@netmon01 /]# lvs
      LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
      01 centos -wi-a----- 4.00g
      root netmon01 -wi-ao---- <19.27g
      swap netmon01 -wi-ao---- <2.20g



      lvdisplay output

      [root@netmon01 /]# lvdisplay
      --- Logical volume ---
      LV Path /dev/centos/01
      LV Name 01
      VG Name centos
      LV UUID 6OAB5a-GxcI-eMrC-wCk3-CuiR-uOE7-YqyJfK
      LV Write Access read/write
      LV Creation host, time <removed>, 2017-11-02 14:39:41 -0400
      LV Status available
      # open 0
      LV Size 4.00 GiB
      Current LE 1024
      Segments 1
      Allocation inherit
      Read ahead sectors auto
      - currently set to 8192
      Block device 253:2



      --- Logical volume ---
      LV Path /dev/netmon01/swap
      LV Name swap
      VG Name netmon01
      LV UUID Lj3fuN-BbPI-MnNv-eoRC-jE4x-yi3v-x92vUg
      LV Write Access read/write
      LV Creation host, time localhost.localdomain, 2017-10-02 10:39:28 -0400
      LV Status available
      # open 2
      LV Size <2.20 GiB
      Current LE 563
      Segments 1
      Allocation inherit
      Read ahead sectors auto
      - currently set to 8192
      Block device 253:1



      --- Logical volume ---
      LV Path /dev/netmon01/root
      LV Name root
      VG Name netmon01
      LV UUID KVDE80-5oak-KAwu-Wyth-gOzt-i9CI-TAB3UK
      LV Write Access read/write
      LV Creation host, time localhost.localdomain, 2017-10-02 10:39:28 -0400
      LV Status available
      # open 1
      LV Size <19.27 GiB
      Current LE 4932
      Segments 1
      Allocation inherit
      Read ahead sectors auto
      - currently set to 8192
      Block device 253:0



      vgdisplay output

      [root@netmon01 /]# vgdisplay
      --- Volume group ---
      VG Name centos
      System ID
      Format lvm2
      Metadata Areas 1
      Metadata Sequence No 9
      VG Access read/write
      VG Status resizable
      MAX LV 0
      Cur LV 1
      Open LV 0
      Max PV 0
      Cur PV 1
      Act PV 1
      VG Size 284.53 GiB
      PE Size 4.00 MiB
      Total PE 72840
      Alloc PE / Size 1024 / 4.00 GiB
      Free PE / Size 71816 / 280.53 GiB
      VG UUID KFVSlE-dqqH-aF1y-NVTS-n0JM-PnQO-5QLd4S



      --- Volume group ---
      VG Name netmon01
      System ID
      Format lvm2
      Metadata Areas 1
      Metadata Sequence No 5
      VG Access read/write
      VG Status resizable
      MAX LV 0
      Cur LV 2
      Open LV 2
      Max PV 0
      Cur PV 1
      Act PV 1
      VG Size <21.51 GiB
      PE Size 4.00 MiB
      Total PE 5506
      Alloc PE / Size 5495 / 21.46 GiB
      Free PE / Size 11 / 44.00 MiB
      VG UUID TdwEhb-ufE4-sJXd-IiZo-soO6-ODxw-B92mEw



      Any assistance would be greatly appreciated. Thanks in advance!







      linux centos-7 lvm partition-recovery luks






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 17 '18 at 20:57









      Rick StewartRick Stewart

      11




      11






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385356%2fi-have-encrypted-lvm2-member-partition-i-want-to-mount-and-access-the-data-on-bu%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385356%2fi-have-encrypted-lvm2-member-partition-i-want-to-mount-and-access-the-data-on-bu%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy