I'm still fairly new to running a proxmox server and just hit a major issue. Recently my proxmox server suffered a sudden power loss and when it came back online, all data in a directory was lost. Strangely, not all directories were affected because my VMs and containers were unaffected and booted fine, but backups, ISO images, and other data were lost. I have a 3.63TiB zpool, but the GUI is reporting about 1TiB available and ~600GiB used (after backing up VMs and containers).
MountainPool is the zpool containing (2) 1.8TiB drives and I created the filesystem MountainPool/share (backups, music, ISOs, etc) and MountainPool/vmstorage (VMs and Containers).
Nothing was lost from MountainPool/vmstorage, but MountainPool/share data was lost and I'm getting weird usage data output. Somehow most of the data is in the MountainPool/share zfs directory (2.58T), but I only see empty folders and no data.
Is there any way to recover the lost data?
MountainPool is the zpool containing (2) 1.8TiB drives and I created the filesystem MountainPool/share (backups, music, ISOs, etc) and MountainPool/vmstorage (VMs and Containers).
Bash:
zpool create -f -o ashift=12 MountainPool /dev/sdb /dev/sdc cache /dev/sda5 log /dev/sda4
zfs create MountainPool/share
zfs create MountainPool/share/iso
zfs create MountainPool/vmstorage
mkdir /MountainPool/share/Backups
mkdir /MountainPool/share/Music
Bash:
# zpool status
pool: MountainPool
state: ONLINE
scan: scrub repaired 0B in 0 days 02:54:18 with 0 errors on Sun Feb 13 03:18:19 2022
config:
NAME STATE READ WRITE CKSUM
MountainPool ONLINE 0 0 0
wwn-0x5000c50064d9de46 ONLINE 0 0 0
wwn-0x5000c5007a38e0eb ONLINE 0 0 0
logs
wwn-0x5001b44ec37ed49e-part4 ONLINE 0 0 0
cache
wwn-0x5001b44ec37ed49e-part5 ONLINE 0 0 0
errors: No known data errors
Nothing was lost from MountainPool/vmstorage, but MountainPool/share data was lost and I'm getting weird usage data output. Somehow most of the data is in the MountainPool/share zfs directory (2.58T), but I only see empty folders and no data.
Bash:
# zfs list -ro space -t all MountainPool
NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD
MountainPool 365G 3.16T 0B 558G 0B 2.61T
MountainPool/share 365G 2.58T 0B 2.58T 0B 2.15G
MountainPool/share/iso 365G 2.15G 0B 2.15G 0B 0B
MountainPool/share/subvol-100-disk-0 365G 112K 0B 112K 0B 0B
MountainPool/vmstorage 365G 33.5G 0B 104K 0B 33.5G
MountainPool/vmstorage/containers 365G 7.77G 0B 104K 0B 7.77G
MountainPool/vmstorage/containers/subvol-100-disk-0 7.18G 835M 0B 835M 0B 0B
MountainPool/vmstorage/containers/subvol-102-disk-0 5.32G 2.68G 0B 2.68G 0B 0B
MountainPool/vmstorage/containers/subvol-103-disk-0 7.04G 978M 0B 978M 0B 0B
MountainPool/vmstorage/containers/subvol-105-disk-0 4.68G 3.32G 0B 3.32G 0B 0B
MountainPool/vmstorage/subvol-100-disk-0 8.00G 120K 0B 120K 0B 0B
MountainPool/vmstorage/vm-101-disk-0 365G 13.4G 0B 13.4G 0B 0B
MountainPool/vmstorage/vm-104-disk-0 365G 12.3G 0B 12.3G 0B 0B
# ls -la /MountainPool/share/iso
total 12
drwxr-xr-x 3 root root 4096 Feb 20 08:18 .
drwxr-xr-x 8 root root 4096 Feb 20 08:18 ..
drwxr-xr-x 4 root root 4096 Feb 20 08:18 template
# ls -la /MountainPool/share/iso/template/
total 16
drwxr-xr-x 4 root root 4096 Feb 20 08:18 .
drwxr-xr-x 3 root root 4096 Feb 20 08:18 ..
drwxr-xr-x 2 root root 4096 Feb 20 08:18 cache
drwxr-xr-x 2 root root 4096 Feb 20 08:18 iso
# ls -la /MountainPool/share/iso/template/cache/
total 8
drwxr-xr-x 2 root root 4096 Feb 20 08:18 .
drwxr-xr-x 4 root root 4096 Feb 20 08:18 ..
# ls -la /MountainPool/share/iso/template/iso/
total 8
drwxr-xr-x 2 root root 4096 Feb 20 08:18 .
drwxr-xr-x 4 root root 4096 Feb 20 08:18 ..
/MountainPool/share# du -sh *
8.0K Backups
4.0K dump
4.0K images
16K iso
4.0K private
12K template
Is there any way to recover the lost data?