Linux tmpfs 文件系统(基础概念)
发布时间:2020-12-13 23:37:08 所属栏目:Linux 来源:网络整理
导读:个人博客首页(点击查看 详情) -- https://blog.51cto.com/11495268 个人微信公众号(点击查看详情) -- https://blog.51cto.com/11495268/2401194 ???? 1、简介 ????ceph bluestore 挂载的 就是 tmpfs 文件系统,所以 学习 下 tmpfs 文件系统;本文 描述 t
个人博客首页(点击查看 详情) -- https://blog.51cto.com/11495268
个人微信公众号(点击查看详情) -- https://blog.51cto.com/11495268/2401194 ???? 1、简介 2、tmpfs 基础知识
# free -h total used free shared buff/cache available Mem: 31G 8.5G 22G 33M 654M 22G Swap: 15G 4.0M 15G # df -h Filesystem Size Used Avail Use% Mounted on tmpfs 16G 24K 16G 1% /var/lib/ceph/osd/ceph-4 tmpfs 16G 24K 16G 1% /var/lib/ceph/osd/ceph-2 tmpfs 16G 24K 16G 1% /var/lib/ceph/osd/ceph-0 ... ... ???? 2.2 tmpfs 特点 3、tmpfs 挂载 # mount -t tmpfs -o size={size} tmpfs {mount_point} ???? 3.1.2 重新 挂载 # mount -t tmpfs -o remount tmpfs {mount_point} ???? 3.2 开机 自启 # cat /etc/fstab # /etc/fstab: static file system information. ???? # Use ‘blkid‘ to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # <file system> <mount point> <type> <options> <dump> <pass> # /was on /dev/sda3 during installation tmpfs /tmp tmpfs defaults,size=25M 0 0 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容