我正在尝试挂载zfs快照。应该是这样的easy...but我不能那样做。我正在使用UbuntuServer11.10Oneric,内核3.0.0-15-服务器.
从ppa安装了ZFS,我也使用zfs-自动快照。使用手动创建的快照实现相同的情况。
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发布于 2012-02-11 21:02:47
运行ZoL,只需使用常规挂载命令,如下所示:
mount -t zfs tank/www@zfs-auto-snap_hourly-2012-02-11-1917 /mnt/snapshot/tank/www像这样卸下它:
umount /mnt/snapshot/tank/www这是https://github.com/zfsonlinux/zfs/issues/173正在跟踪的一个bug
发布于 2014-12-15 16:02:24
从今天起,Linux上的ZFS (ZoL)现在还支持通过dataset根目录中的不可见(而非隐藏)目录对快照进行只读访问。
# ls -a /tank/test
./ ../ boot.tar text.tar text.tar.2
# cd /tank/test/.zfs/
# ls -a
./ ../ shares/ snapshot/在snapshot目录中,您将找到所有快照的只读副本。
您可以通过.zfs通过zfs set snapdir=visible tank/test使其可见。
来源:https://pthree.org/2012/12/19/zfs-administration-part-xii-snapshots-and-clones/
https://askubuntu.com/questions/103369
复制相似问题