On both.Where does --maxsnap keeps snapshots (local or remote node?) and how to use/restore them?
zfs send -v rpool/home@bla1 | ssh otherhost "/usr/sbin/zfs receive otherpool/home@bla1"
mount -t zfs v-machines/home@rep_home_2017-07-05_00:36:48 /mnt/zfsmountsnap
zfs set snapdir=visible v-machines/home
.zfs / snapshot / rep_home_2017-07-16_00: 01: 25
If you use pve-zsyn for zvols, you can not see anything in the .zfs folder. The best way to see any snapshot is like I said:I'm working on mounting snapshots myself. I've been following the above suggestions, but I can never seem to find the snapshot. It's not listed in the .zfs folder nor does using snapdir=visible show it. The snapshots directory is totally empty. These snapshots are being created by pve-zsync.
mount -t zfs dpool/vmdata/vm-150-disk-1@rep_150-15min_2017-12-21_10:34:18 /mnt/zfsmountsnap
unable to fetch ZFS version for filesystem 'dpool/vmdata/vm-150-disk-1@rep_150-15min_2017-12-21_10:34:18'
Strange, works here on pve 4.x and 5.x normaly. What say "zpool status"?Code:
mount -t zfs dpool/vmdata/vm-150-disk-1@rep_150-15min_2017-12-21_10:34:18 /mnt/zfsmountsnap
zpool status bpool
pool: bpool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
bpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
wwn-0x5000xxxxxxxxf04c ONLINE 0 0 0
wwn-0x5000xxxxxxxxacf8 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
wwn-0x5000xxxxxxxx24e4 ONLINE 0 0 0
wwn-0x5000xxxxxxxx3f28 ONLINE 0 0 0
errors: No known data errors
bpool/vmback/15min/vm-150-disk-1 2.13G 6.54T 2.08G -
bpool/vmback/15min/vm-150-disk-1@rep_150-15min_2017-12-25_12:00:17 224K - 1.89G -
A Zvol.But I don't know what Proxmox creates, when you add a harddrive through it's VM Creation Wizard.
unable to fetch ZFS version for filesystem 'dpool/vmdata/vm-150-disk-1@rep_150-15min_2017-12-21_10:34:18'
zfs clone dpool/vmdata/vm-150-disk-1@rep_150-15min_2017-12-21_10:34:18 dpool/vmdata/vm-150-disk-1-clone
fdisk -l /dev/zvol/dpool/vmdata/vm-150-disk-1-clone
You say to use fdisk to see the partitions, will this work with an LVM managed disk?
Separately will fdisk recognize partitions with NTFS?
And thus allow mount to mount an NTFS partition?
root@proxmox:/mnt# fdisk -l /dev/zvol/dpool/vmdata/vm-150-disk-1-clone
Disk /dev/zvol/dpool/vmdata/vm-150-disk-1-clone: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 131072 bytes
I/O size (minimum/optimal): 131072 bytes / 131072 bytes
Disklabel type: dos
Disk identifier: 0x5006970f
Device Boot Start End Sectors Size Id Type
/dev/zvol/dpool/vmdata/vm-150-disk-1-clone1 * 2048 999423 997376 487M 83 Linux
/dev/zvol/dpool/vmdata/vm-150-disk-1-clone2 1001470 67106815 66105346 31.5G 5 Extended
/dev/zvol/dpool/vmdata/vm-150-disk-1-clone5 1001472 67106815 66105344 31.5G 8e Linux LVM
Partition 2 does not start on physical sector boundary.
root@proxmox:/mnt# mount -t zfs /dev/zvol/dpool/vmdata/vm-150-disk-1-clone2 /mnt/test
filesystem '/dev/zvol/dpool/vmdata/vm-150-disk-1-clone2' cannot be mounted, unable to open the dataset
root@proxmox:/mnt#
root@proxmox:/mnt# mount /dev/zvol/dpool/vmdata/vm-150-disk-1-clone2 /mnt/test
mount: special device /dev/zvol/dpool/vmdata/vm-150-disk-1-clone2 does not exist
root@themis:/mnt#