Problem with pve-data: It doesn´t show its content

Marcos Ortiz

New Member
Nov 24, 2017
2
0
1
38
Greeting to all Proxmox´s community.
I have a tricky problem here with one of our proxmox servers. We had installed in this server the version 3.1, but it seems that for a problem with the disc, the Operating system failed and we had to reinstalled the server, now with the version 5.1.
The problem is that now, pve-data doesn´t show its content. We tried to add the LVM volumen using the Proxmox GUI on the website, but it doesn´t show anything inside, but when we select the volumen, it shows that there is used space: almost 87% actually.
So, we believe that the data is present there.
This is the outputs of pvscan, pvdisplay, lvdisplay, vgdisplay and lvscan:
1. pvscan
Code:
pvscan
PV /dev/sdb1   VG Almacen         lvm2 [74.53 GiB / 74.53 GiB free]
  PV /dev/sda3   VG pve             lvm2 [74.28 GiB / 9.16 GiB free]
  Total: 2 [148.80 GiB] / in use: 2 [148.80 GiB] / in no VG: 0 [0   ]

2. pvdisplay
Code:
--- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               Almacen
  PV Size               74.53 GiB / not usable 0
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              19079
  Free PE               19079
  Allocated PE          0
  PV UUID               Qu2pKn-EAk3-0bJs-ZsuJ-VS7I-ye13-yn60cB

  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               pve
  PV Size               74.28 GiB / not usable 1.07 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              19015
  Free PE               2345
  Allocated PE          16670
  PV UUID               tbynAt-ToCg-ubkd-1Q0W-3pDc-Xcdi-P7wlAV

3. lvdisplay
Code:
  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                6msMgV-ckpQ-zC0t-XnXC-3GAV-0t7e-VQbUvN
  LV Write Access        read/write
  LV Creation host, time proxmox, 2017-11-22 20:42:38 -0500
  LV Status              available
  # open                 2
  LV Size                4.00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                fEu36n-xxon-L7Ly-mnjf-ckmj-p77P-WWXJh1
  LV Write Access        read/write
  LV Creation host, time proxmox, 2017-11-22 20:42:39 -0500
  LV Status              available
  # open                 1
  LV Size                18.50 GiB
  Current LE             4736
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                M0e7WV-KvsK-hQ29-eqlM-GYDP-4tZe-XBDXWy
  LV Write Access        read/write
  LV Creation host, time proxmox, 2017-11-22 20:42:39 -0500
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 0
  LV Size                42.53 GiB
  Allocated pool data    0.00%
  Allocated metadata     0.45%
  Current LE             10888
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4

4. vgdisplay
Code:
--- Volume group ---
  VG Name               Almacen
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               74.53 GiB
  PE Size               4.00 MiB
  Total PE              19079
  Alloc PE / Size       0 / 0
  Free  PE / Size       19079 / 74.53 GiB
  VG UUID               DLrBwQ-9YC5-kHCV-3JR3-TNeQ-Ryof-RGA0q6

  --- Volume group ---
  VG Name               pve
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  7
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               74.28 GiB
  PE Size               4.00 MiB
  Total PE              19015
  Alloc PE / Size       16670 / 65.12 GiB
  Free  PE / Size       2345 / 9.16 GiB
  VG UUID               2ByWDe-CDJv-cU8o-KGZa-aka6-L0bg-CQwyaP

5. lvscan
Code:
ACTIVE            '/dev/pve/swap' [4.00 GiB] inherit
ACTIVE            '/dev/pve/root' [18.50 GiB] inherit
ACTIVE            '/dev/pve/data' [42.53 GiB] inherit

0 logical volume(s) in volume group "Almacen" now active
  3 logical volume(s) in volume group "pve" now active

We tried to see what´s happen inside /dev/mapper too with this:
Code:
root@proxmox2:/mnt# ls -al /dev/mapper/
total 0
drwxr-xr-x  2 root root     160 Nov 24 08:45 .
drwxr-xr-x 21 root root    4540 Nov 24 10:41 ..
crw-------  1 root root 10, 236 Nov 24 08:45 control
lrwxrwxrwx  1 root root       7 Nov 24 08:45 pve-data -> ../dm-4
lrwxrwxrwx  1 root root       7 Nov 24 08:45 pve-data_tdata -> ../dm-3
lrwxrwxrwx  1 root root       7 Nov 24 08:45 pve-data_tmeta -> ../dm-2
lrwxrwxrwx  1 root root       7 Nov 24 08:45 pve-root -> ../dm-1
lrwxrwxrwx  1 root root       7 Nov 24 08:45 pve-swap -> ../dm-0

Any suggestion or recommendation is more than welcome. Thanks
 
lvs shows the output in a condensed format

but your lvdisplay already shows the content:
LV Size 42.53 GiB
Allocated pool data 0.00%
Allocated metadata 0.45%

so there is no data in the data lv

I have a tricky problem here with one of our proxmox servers. We had installed in this server the version 3.1, but it seems that for a problem with the disc, the Operating system failed and we had to reinstalled the server, now with the version 5.1.
did you just install over the already existing installation ? if yes, the data on the selected disk is gone, and you should restore from backup
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!