13.5. zfs mount/umount

简介:

Legacy mount points must be managed through legacy tools. An attempt to use ZFS tools result in an error.

# zfs mount pool/home/billm
cannot mount 'pool/home/billm': legacy mountpoint
use mount(1M) to mount this filesystem
# mount -F zfs tank/home/billm
		

13.5.1. Temporary Mount Properties

# zfs mount -o ro tank/home/perrin
# zfs mount -o remount,noatime tank/home/perrin
# zfs get atime tank/home/perrin
NAME             PROPERTY      VALUE                      SOURCE
tank/home/perrin atime         off                        temporary
			

13.5.2. Mounting File Systems

mount

freebsd# zfs mount zfs/www
freebsd# mount
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, soft-updates)
/dev/ad0s1d on /var (ufs, local, soft-updates)
zfs on /zfs (zfs, local)
zfs/www on /zfs/www (zfs, local)
			

The -a option can be used to mount all ZFS managed filesystems. Legacy managed filesystems are not mounted.

# zfs mount -a
			

13.5.3. Unmounting File Systems

umount

freebsd# zfs umount /zfs/www
freebsd# mount
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, soft-updates)
/dev/ad0s1d on /var (ufs, local, soft-updates)
zfs on /zfs (zfs, local)
			

13.5.4. Legacy Mount Points

freebsd# zfs set mountpoint=/tank  tank
freebsd# zfs mount -a
freebsd# mount
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, soft-updates)
/dev/ad0s1d on /var (ufs, local, soft-updates)
tank on /tank (zfs, local)

			




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
umount: /dev/xvdb1: not mounted 磁盘卸载出现异常
【问题现象】 服务器中执行umount卸载命令时提示磁盘没有挂载 [root@zxj ~]# umount /dev/xvdb1 umount: /dev/xvdb1: not mounted 【问题描述】 最开始接到用户反馈问题描述如下 1)新添加了一块数据盘,把数据盘挂载到了/home 目录下 2)/home 目录下原本是有文件的,导致原本的文件查看不到 【处理过程】 刚开始接到这个反馈,以为只是简单的同一个目录挂载了两个设备导致原本的文件被遮盖,只需要简单的进行umount卸载后挂载的数据盘分区即可。
14667 0
|
6月前
|
Linux Windows
mount/umount 挂载/卸载
mount/umount 挂载/卸载。
76 9
|
6月前
|
存储 Linux
BTRFS - what makes BTRFS different?
BTRFS - what makes BTRFS different?
31 1
|
6月前
|
存储 算法 Linux
BTRFS Defragmentation
BTRFS Defragmentation
37 1
|
存储 缓存 文件存储
NFS Hard Mount Vs Soft Mount
本章节将详细分析和对比NFS挂载参数的优劣,在使用NFS可根据业务情况做出最佳选择。
6269 0
|
开发工具 git 固态存储
|
关系型数据库 MySQL 开发工具