Recovering config files from root of ZFS install

sapphiron

Well-Known Member
Nov 2, 2012
30
0
46
Hi All

I am recovering data from a lab server that got borked due to power loss and now kernel panics on boot

I did a new 7.2 install on a separate SSD. Old version was 7.1

I connected the old boot SSD to the system and ran an
zpool import -f rpool rpool_old
to get the disk imported

I then noticed that the disk is mounted on /rpool_old and it contains a ROOT/pve-1 folder. However the folder is blank.

I assume there is some other way that I should be mounting the dataset to make the data accessible?

Here is some additional info about the pool
root@proxmox:/rpool_old/ROOT/pve-1# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 1.94G 106G 96K /rpool
rpool/ROOT 1.94G 106G 96K /rpool/ROOT
rpool/ROOT/pve-1 1.94G 106G 1.94G /
rpool/data 96K 106G 96K /rpool/data
rpool_old 56.4G 1.22G 96K /rpool_old
rpool_old/ROOT 48.6G 1.22G 96K /rpool_old/ROOT
rpool_old/ROOT/pve-1 48.6G 1.22G 48.6G /
rpool_old/data 96K 1.22G 96K /rpool_old/data
rpool_old/swap 7.84G 2.98G 6.08G -

root@proxmox:/rpool_old/ROOT/pve-1# zpool status -v rpool_old
pool: rpool_old
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
scan: scrub repaired 0B in 00:03:29 with 2 errors on Sun Apr 10 00:27:32 2022
config:

NAME STATE READ WRITE CKSUM
rpool_old ONLINE 0 0 0
sdb2 ONLINE 1 0 0

errors: Permanent errors have been detected in the following files:

//usr/share/doc/libglusterd0/changelog.gz
//var/cache/apt/archives/pve-kernel-4.13.4-1-pve_4.13.4-25_amd64.deb
//lib/x86_64-linux-gnu/libc-2.31.so
root@proxmox:/rpool_old/ROOT/pve-1#

Thanks in advance!
 
I assume you can zpool import the rpool_old but you'll have to choose a different mountpoint because / (root) is already taken by the new rpool.
You will find the ${mountpoint of rpool_old}/etc/pve/ directory empty because the Proxmox configuration is stored in a database.
 

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!