mount命令

mount命令

mount -t xfs -o noatime -o inode64 /dev/disk/by-partlabel/85-osd-1-data /data/osd.6 
strace mount -t cifs -o user=,password=  //192.168.8.202/test /mnt/bean
#cifs的帐号,linux下挂载cifs,

如果/etc/fstab 中已经设置好挂载点,可以用 mount //目标路径的方式,省略源路径
比如有 挂载到 /data/osd.1的设置,可以直接用 mount /data/osd.1 去挂载

 umount -f -l /var/share/ezfs   #-f表示强制

runtime mount参数

mount 和 cat /proc/mounts 区别

root@BEAN-1:~/wsg/github/perf-tools-master/perf-tools-master# mount
/dev/sda3 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sdb2 on /data/osd.0 type ext4 (rw,noatime,user_xattr)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
none on /sys/kernel/config type configfs (rw)
10.11.12.1,10.11.12.2,10.11.12.3:/ on /var/share/ezfs type ceph (wsize=4194304,mount_timeout=15,norbytes)
nfsd on /proc/fs/nfsd type nfsd (rw)
ceph-fuse on /mnt/ezfs_fuse type fuse.ceph-fuse (ro,nosuid,nodev,allow_other,default_permissions)
/var/share/ezfs/shareroot/default-folder on /vol/default-folder type none (rw,bind)
/var/share/ezfs/shareroot/xxx on /vol/xxx type none (rw,bind)

root@BEAN-1:~/wsg/github/perf-tools-master/perf-tools-master# cat /proc/mounts 
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=2014744k,nr_inodes=503686,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=809564k,mode=755 0 0
/dev/disk/by-uuid/bb9fa6ec-458e-48e0-aaca-af9dbd0bc402 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0
/dev/sdb2 /data/osd.0 ext4 rw,noatime,data=ordered 0 0
rpc_pipefs /run/rpc_pipefs rpc_pipefs rw,relatime 0 0
none /sys/kernel/config configfs rw,relatime 0 0
10.11.12.1,10.11.12.2,10.11.12.3:/ /var/share/ezfs ceph rw,relatime,mount_timeout=15,norbytes,acl,wsize=4194304 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
ceph-fuse /mnt/ezfs_fuse fuse.ceph-fuse ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other 0 0
10.11.12.1,10.11.12.2,10.11.12.3:/ /vol/default-folder ceph rw,relatime,mount_timeout=15,norbytes,acl,wsize=4194304 0 0
10.11.12.1,10.11.12.2,10.11.12.3:/ /vol/xxx ceph rw,relatime,mount_timeout=15,norbytes,acl,wsize=4194304 0 0
tracefs /sys/kernel/debug/tracing tracefs rw,relatime 0 0
root@BEAN-1:~/wsg/github/perf-tools-master/perf-tools-master# 

nfs不同的挂载参数

soft hard retry 缓存大小

    原文作者:shengguo
    原文地址: https://segmentfault.com/a/1190000008705085
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞