Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
32
rated 0 times [  32] [ 0]  / answers: 1 / hits: 49682  / 2 Years ago, mon, september 19, 2022, 1:55:02

I'm trying to mount zfs snapshot. It should to be so easy...but I can't do that.
I'm using Ubuntu Server 11.10 Oneric, kernel 3.0.0-15-server.



Installed ZFS from ppa also I'm using zfs-auto-snapshot.
With manually created snapshots the same situations.



How to mount zfs snapshot?



root@us1:/# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
tank/www@zfs-auto-snap_hourly-2012-02-11-1917 0 - 268K -

root@us1:/# zfs mount tank/www@zfs-auto-snap_hourly-2012-02-11-1917 /mnt/snapshot/tank/www
too many arguments
usage:
mount
mount [-vO] [-o opts] <-a | filesystem>

For the property list, run: zfs set|get

For the delegated permission list, run: zfs allow|unallow

root@us1:/# zfs mount tank/www@zfs-auto-snap_hourly-2012-02-11-1917
cannot open 'tank/www@zfs-auto-snap_hourly-2012-02-11-1917': operation not applicable to datasets of this type

More From » mount

 Answers
2

Running ZoL, just use the regular mount command like this:



mount -t zfs tank/www@zfs-auto-snap_hourly-2012-02-11-1917 /mnt/snapshot/tank/www


Dismount it like this:



umount /mnt/snapshot/tank/www


This is a bug that is being tracked at https://github.com/zfsonlinux/zfs/issues/173


[#40436] Monday, September 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rmodmi

Total Points: 390
Total Questions: 122
Total Answers: 111

Location: Venezuela
Member since Mon, Oct 18, 2021
3 Years ago
;