[SOLVED] How can I get my storage data back?

BigBulb

New Member
Jul 26, 2026
16
1
3
I had my Proxmox machine use a pair of HDDs in RAID1 to use for storing media files and it was set up as storage for Proxmox so my containers could use it. I had 4TB to use for storing media and I would have a container mount that drive. I wanted to update PVE from 8 to 9, so I backed up containers and copied the files from /etc/ that the wiki mentioned for upgrading. I tried to do the in-place upgrade, but I think it broke things, so I did a new installation. When I upgraded, I restored my container and it's like before, but I don't know where my files are that were on the HDDs. I mounted them to try to look for the files, but I can't find them, I can only see
Code:
dump  images  lost+found  private  snippets  template

Where are the files I saved? Why can't I just see files like I would with any disk drive?
 
I don*t understand:
a) you use raid1 on 2x HDD with what file- and Raid-Ssystem, mdadm, ext4, xfs?
b) And you have a other 4 TB HDD?
c) Where are your backup are saved? Can you tell us that?
d) on with device where and is now your Proxmox VE System is installed?
e) Do you know of the file in the tree of /var/lib/vz/ ?
 
b) And you have a other 4 TB HDD?
No, I only have one pair of HDDs that I was using to store media files and they're 4TB. I saved backups on flash drives and the PVE system is on a SSD that I use for system stuff and ISO images
Do you know of the file in the tree of /var/lib/vz/
I don't understand
 
Last edited:
Code:
dir: local
        path /var/lib/vz
        content backup,vztmpl,iso

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

dir: library
        path /mnt/pve/library
        content snippets,images,rootdir,backup
        is_mountpoint 1
        nodes bigbulb
        shared 0

This is the old file I saved on USB. The "library" directory is what I used for the media disk drives on HDDs.
 
but I don't know where my files are that were on the HDDs. I mounted them to try to look for the files, but I can't find them, I can only see
dump images lost+found private snippets template
Another question: where have you mounted them? That is, in which directory on the PVE host?
 
Please share
Bash:
lsblk -o+FSTYPE,LABEL,MODEL
zpool status -vtLP
zfs list
df -hT
 
Last edited:
Have you checked what is in these directories?
Yeah, they're all empty, except for images, which has some container backups: 100, 101, 102.

The 4TB drive is mounted in /etc/pve/library
 
Last edited:
Please share
Bash:
lsblk -o+FSTYPE,LABEL,MODEL
zpool list -vtLP
zfs list
df -hT

Code:
NAME                MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS   FSTYPE      LABEL MODEL
loop0                 7:0    0   2.9T  0 loop               ext4            
sda                   8:0    0   3.6T  0 disk                                 WDC WD4002FFWX-68TZ4N0
└─sda1                8:1    0   3.6T  0 part /mnt/pve/library
                                                            ext4            
sdb                   8:16   0 111.8G  0 disk                                 KINGSTON SA400S37120G
├─sdb1                8:17   0  1007K  0 part                                
├─sdb2                8:18   0     1G  0 part /boot/efi     vfat            
└─sdb3                8:19   0 110.8G  0 part               LVM2_member      
  ├─pve-swap        252:0    0     8G  0 lvm  [SWAP]        swap            
  ├─pve-root        252:1    0  37.7G  0 lvm  /             ext4            
  ├─pve-data_tmeta  252:2    0     1G  0 lvm                                
  │ └─pve-data-tpool
  │   │             252:4    0  49.3G  0 lvm                                
  │   ├─pve-data    252:5    0  49.3G  1 lvm                                
  │   └─pve-vm--100--disk--0
  │                 252:6    0    12G  0 lvm                ext4            
  └─pve-data_tdata  252:3    0  49.3G  0 lvm                                
    └─pve-data-tpool
      │             252:4    0  49.3G  0 lvm                                
      ├─pve-data    252:5    0  49.3G  1 lvm                                
      └─pve-vm--100--disk--0
                    252:6    0    12G  0 lvm                ext4            
sdc                   8:32   1     0B  0 disk                                 Compact Flash
sdd                   8:48   1     0B  0 disk                                 SD/MMC
sde                   8:64   1     0B  0 disk                                 MS/MS-PRO
sdf                   8:80   1     0B  0 disk                                 xD-Picture

When I tried the second command it gave me an error

Code:
# zpool list -vtLP
invalid option 't'
usage:
        list [-gHLpPv] [-o property[,...]] [-j [--json-int, --json-pool-key-guid]] ...
            [-T d|u] [pool] [interval [count]]

the following properties are supported:

        PROPERTY             EDIT   VALUES

        allocated              NO   <size>
        bcloneratio            NO   <1.00x or higher if cloned>
        bclonesaved            NO   <size>
        bcloneused             NO   <size>
        capacity               NO   <percent>
        checkpoint             NO   <size>
        dedup_table_size       NO   <size>
        dedupratio             NO   <1.00x or higher if deduped>
        expandsize             NO   <size>
        fragmentation          NO   <percent>
        free                   NO   <size>
        freeing                NO   <size>
        guid                   NO   <guid>
        health                 NO   <state>
        last_scrubbed_txg      NO   <txg>
        leaked                 NO   <size>
        load_guid              NO   <load_guid>
        size                   NO   <size>
        altroot               YES   <path>
        ashift                YES   <ashift, 9-16, or 0=default>
        autoexpand            YES   on | off
        autoreplace           YES   on | off
        autotrim              YES   on | off
        bootfs                YES   <filesystem>
        cachefile             YES   <file> | none
        comment               YES   <comment-string>
        compatibility         YES   <file[,file...]> | off | legacy
        dedup_table_quota     YES   <size>
        delegation            YES   on | off
        failmode              YES   wait | continue | panic
        listsnapshots         YES   on | off
        multihost             YES   on | off
        readonly              YES   on | off
        version               YES   <version>
        feature@...           YES   disabled | enabled | active

The feature@ properties must be appended with a feature name.
See zpool-features(7).

Code:
# df -hT
Filesystem           Type      Size  Used Avail Use% Mounted on
udev                 devtmpfs  6.9G     0  6.9G   0% /dev
tmpfs                tmpfs     1.6G  1.8M  1.6G   1% /run
/dev/mapper/pve-root ext4       37G  4.0G   31G  12% /
tmpfs                tmpfs     7.8G   49M  7.8G   1% /dev/shm
efivarfs             efivarfs  128K   34K   90K  27% /sys/firmware/efi/efivars
tmpfs                tmpfs     5.0M     0  5.0M   0% /run/lock
tmpfs                tmpfs     1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
tmpfs                tmpfs     7.8G     0  7.8G   0% /tmp
/dev/sdb2            vfat     1022M  9.1M 1013M   1% /boot/efi
/dev/fuse            fuse      128M   16K  128M   1% /etc/pve
tmpfs                tmpfs     1.0M     0  1.0M   0% /run/credentials/getty@tty1.service
/dev/sda1            ext4      3.6T  230G  3.2T   7% /mnt/pve/library
tmpfs                tmpfs     1.6G  4.0K  1.6G   1% /run/user/0
 
Last edited:
Sorry, that was supposed to be zpool status. Since the HDD is already mounted I guess we can check its contents
Bash:
apt -yU install gdu
gdu /mnt/pve/library
Can you also share the CT config via pct config CTIDHERE?
 
gdu /mnt/pve/library
Can you also share the CT config via pct config CTIDHERE?
I got
Code:
Warning: Some index files failed to download. They have been ignored, or old ones used instead.
Error: Unable to locate package gdu
 
Last edited:
Did you configure the repos properly? What's apt update say?
Code:
Ign:1 http://deb.debian.org/debian trixie InRelease
Ign:2 http://security.debian.org/debian-security trixie-security InRelease
Ign:3 http://download.proxmox.com/debian/pve trixie InRelease
Ign:4 http://deb.debian.org/debian trixie-updates InRelease
Ign:4 http://deb.debian.org/debian trixie-updates InRelease
Ign:2 http://security.debian.org/debian-security trixie-security InRelease
Ign:3 http://download.proxmox.com/debian/pve trixie InRelease
Ign:1 http://deb.debian.org/debian trixie InRelease
Ign:1 http://deb.debian.org/debian trixie InRelease
Ign:2 http://security.debian.org/debian-security trixie-security InRelease
Ign:3 http://download.proxmox.com/debian/pve trixie InRelease
Ign:4 http://deb.debian.org/debian trixie-updates InRelease
Err:4 http://deb.debian.org/debian trixie-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Err:2 http://security.debian.org/debian-security trixie-security InRelease
  Temporary failure resolving 'security.debian.org'
Err:3 http://download.proxmox.com/debian/pve trixie InRelease
  Temporary failure resolving 'download.proxmox.com'
Err:1 http://deb.debian.org/debian trixie InRelease
  Temporary failure resolving 'deb.debian.org'
All packages are up to date.   
Warning: Failed to fetch http://deb.debian.org/debian/dists/trixie/InRelease  Temporary failure resolving 'deb.debian.org'
Warning: Failed to fetch http://deb.debian.org/debian/dists/trixie-updates/InRelease  Temporary failure resolving 'deb.debian.org'
Warning: Failed to fetch http://security.debian.org/debian-security/dists/trixie-security/InRelease  Temporary failure resolving 'security.debian.org'
Warning: Failed to fetch http://download.proxmox.com/debian/pve/dists/trixie/InRelease  Temporary failure resolving 'download.proxmox.com'
Warning: Some index files failed to download. They have been ignored, or old ones used instead.
 
Last edited:
Well, let's go on a tangent then and fix your DNS first. Share
Bash:
cat /etc/network/interfaces
cat /etc/resolv.conf
Code:
cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface nic0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.19/24
        gateway 192.168.1.254
        bridge-ports nic0
        bridge-stp off
        bridge-fd 0

iface nic1 inet manual

Code:
cat /etc/resolv.conf
search lan
nameserver 192.168.1.19
 
No need to quote each of my messages.
Try to replace
Bash:
nameserver 192.168.1.19
with
Bash:
nameserver 192.168.1.254
You can also set this in the GUI via node > System > DNS. If that doesn't work either use 1.1.1.1. Then continue with the gdu stuff from earlier.
 
  • Like
Reactions: BigBulb
That worked and I installed gdu. This is what returns from the pct command

Code:
arch: amd64
cmode: shell
cores: 3
features: nesting=1
hostname: Media
memory: 4768
mp1: library:100/vm-100-disk-2.raw,mp=/media,backup=1,size=3000G
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=BC:24:11:B2:CA:AF,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-100-disk-0,size=12G
swap: 1024
unprivileged: 1
unused0: local-lvm:vm-100-disk-1

I navigated with gdu and inside the images directory, there's 3 files with the largest being in the CT100 directory containing vm-100-disk-0.raw
 
Last edited:
So the images are there. Try pct rescan and check pvesm list library.
 
Last edited:
First command gives
Code:
rescan volumes...
CT 100: add unreferenced volume 'library:100/vm-100-disk-0.raw' as 'unused1' to config.
CT 100: add unreferenced volume 'library:100/vm-100-disk-1.raw' as 'unused2' to config.

The second one gives
Code:
Volid                           Format  Type               Size VMID
library:100/vm-100-disk-0.raw   raw     rootdir   3221225472000 100
library:100/vm-100-disk-1.raw   raw     rootdir   3221225472000 100
library:100/vm-100-disk-2.raw   raw     rootdir   3221225472000 100
library:101/vm-101-disk-0.raw   raw     images    4398046511104 101
library:102/base-102-disk-0.raw raw     images       2147483648 102