[HELP] Access to the LVM pve/data

Aymen

New Member
Apr 27, 2021
1
0
1
32
I was trying to do some changes in my OS, and now my proxmox is unaccessible (mistakenly ran an rm -rf /)
No big deal, I was thinking of reinstalling the whole thing anyway.

But I am on a Live USB trying to recover some of the files first.
Disks seems healthy, I am able to list the LVM content (I think it was an XFS format)

I am able to mount into /dev/pve/root
But I am trying to access the /data one (which contains my backups), its a thin LVM, and whenever I try to access I get an error :

Code:
root@ubuntu:/mnt# mount /dev/mapper/pve-data  /mnt/data
mount: /mnt/data: wrong fs type, bad option, bad superblock on /dev/mapper/pve-data, missing codepage or helper program, or other error.

Here is the lvdisplay output :

Code:
root@ubuntu:/mnt# lvdisplay
  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                sDLN83-2U3Q-buwW-iprU-RXwL-1k3R-OsOi3w
  LV Write Access        read/write
  LV Creation host, time proxmox, 2019-09-10 07:04:28 +0000
  LV Status              NOT available
  LV Size                8.00 GiB
  Current LE             2048
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                PRz4xZ-PYFM-fJDC-fG2Q-Q2y7-ldxk-L81Snt
  LV Write Access        read/write
  LV Creation host, time proxmox, 2019-09-10 07:04:28 +0000
  LV Status              NOT available
  LV Size                96.00 GiB
  Current LE             24576
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                i3SHDd-Q52k-o0u4-Muot-aGsx-E49i-siQOlB
  LV Write Access        read/write (activated read only)
  LV Creation host, time proxmox, 2019-09-10 07:04:29 +0000
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 0
  LV Size                <1.22 TiB
  Allocated pool data    0.00%
  Allocated metadata     0.17%
  Current LE             319574
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

I am not very familiar with LVM, any tips on how to mount the data volume or access the files ?
 
/dev/mapper/pve-data is a thin LVM pool. It contains other logical volumes and not a file system. Try to run lvs. It should give you a list of volumes which might also be exposed in /dev/mapper/. You can then use dd to copy the volumes to a file (raw format).

But I am trying to access the /data one (which contains my backups), its a thin LVM, and whenever I try to access I get an error :
Did you create a logical volume and formatted it? Then try to see what other volumes are shown and try to mount that. VM disks are usually in the format vm-<vmid>-disk-<number>. If you have a logical volume that is named differently, it might be the one you used to store backups in.