1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > linux挂载zfs文件系统 ZFS使用:挂载文件系统 更改挂载点

linux挂载zfs文件系统 ZFS使用:挂载文件系统 更改挂载点

时间:2021-02-11 16:44:42

相关推荐

linux挂载zfs文件系统 ZFS使用:挂载文件系统 更改挂载点

第一讲:mounting a File System

特性

a.创建文件系统也会在路径上创建一个具有相同文件系统名称的挂载点,文件系统会自动挂载在那里

b.可以通过更改挂载点属性的值来更改挂载点

c.挂载也可以通过传统的方式(UFS)完成遗留安装

附:查看目录权限是否继承了父级

zfs get -r compression upool,查看source字段

local:已为数据集显示设置了属性

inherited from data_name:继承了父的属性

default:属性未被设置

第二讲:更改挂载点(更改挂载点,或者使用legacy mount)

specify a mount point

zfs set mountpoint=/test upool/test

zfs set mountpoint=legacy upool/test

其中:Legacy mount method

example:mountrz2pool/data2 to /zfs/fs2

(1)Set the mountpoint property for legacy mount.

zfs set mountpoint=legacy upool/test 备注:可能是这个命令,我还没测试,等待测试

(2)Create a mount point

#mkdir /zfs/fs2

(3)Execute the mount command.

#mount -F zfs rz2pool/data2 /zfs/fs2

如果要设置开机自动挂载,需要添加参数到文件:/etc/vfstab

#devicedevice mount FS fsck mount mount

#to mount to fsck point type pass at boot options

rz2pool/data2 - /zfs/fs2 zfs -yes-

第三讲:更改配额quota

zfs set defaultuserquota=25gb upool/nfs

zfs set userquota@user1=50gbupool/nfs

来源:/zjpeng/p/12570750.html

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。