ZFS Datasets not included in backups

Integral

Renowned Member
Oct 19, 2015
14
1
68
Hello i have

Code:
pve-manager/4.0-50/d3a6b7e5 (running kernel: 4.2.2-1-pve)

running some mysql instance and ive began modifying the ZFS underneath it to get this result

Code:
NAME                                        RECSIZE     LOGBIAS  PRIMARYCACHE
rpool                                          128K     latency           all
rpool/ROOT                                     128K     latency           all
rpool/ROOT/pve-1                               128K     latency           all
rpool/subvol-1000-disk-1                       128K     latency           all
rpool/subvol-1000-disk-1/mysql                 128K     latency      metadata
rpool/subvol-1000-disk-1/mysql/innodb-data      16K  throughput      metadata
rpool/subvol-1000-disk-1/mysql/innodb-logs     128K     latency      metadata
rpool/swap                                        -     latency           all

But when i backup data using the backup in client or using console and restore the backup back i get the following disk layout
Code:
NAME                      RECSIZE     LOGBIAS  PRIMARYCACHE
backup                       128K     latency           all
rpool                        128K     latency           all
rpool/ROOT                   128K     latency           all
rpool/ROOT/pve-1             128K     latency           all
rpool/subvol-1000-disk-1     128K     latency           all
rpool/swap                      -     latency           all

All modifications to the metadata and recordsize are gone... is there some way around that eq. to restore backup back with appropriate recordsizes etc??
 
No. All the sub-datasets are gone, not the modifications. I assume that the backup is not recursive ZFS based.
Anyway, you will loose dataset customizations on backup/restore even if Proxmox will do ZFS snapshot + send because I don't think the send stream has this information (compression, dedup, logbias, cache and so on).