Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. $ cat /etc/fstab
  2. # <device> <dir> <type> <options> <dump> <fsck>
  3. UUID=c456dea4-e0c6-42f5-a206-d0ed2e94bc6a / ext4 rw,relatime,discard,data=ordered 0 1
  4. UUID=693dee2e-78bb-4d4d-84e4-082328488cfe /boot ext4 rw,relatime,discard,data=ordered 0 2
  5. UUID=843c20a9-258a-4078-bb78-0549217623e4 none swap defaults 0 0
  6. 192.168.200.20:/mnt/tank/share1 /mnt/share1 nfs4 nolock,noatime,context="system_u:object_r:httpd_sys_content_rw_t:s0" 0 0
  7. 192.168.200.20:/mnt/tank/share2 /mnt/sub/share2 nfs4 fsc,nolock,noatime 0 0
  8. 192.168.200.20:/mnt/tank/share3 /mnt/sub/share3 nfs4 nolock,noatime 0 0
  9. 192.168.200.20:/mnt/tank/share4 /mnt/sub/share4 nfs4 fsc,nolock,noatime 0 0
  10.  
  11. $ cat /proc/fs/nfsfs/volumes
  12. NV SERVER PORT DEV FSID FSC
  13. v4 c0a8c814 801 0:55 c7d8b1ef:bb64cbde no
  14. v4 c0a8c814 801 0:54 d9a63e22:cc9a3fde no
  15. v4 c0a8c814 801 0:57 5a567c31:75f052de no
  16. v4 c0a8c814 801 0:59 1673eeb4:b0583de no
  17. v4 c0a8c814 801 0:60 9acb69e2:fb267bde no
  18. v4 c0a8c814 801 0:58 a367662d:5b53a6de no
  19. v4 c0a8c814 801 0:61 69fdc16c:c38e18de no
  20. v4 c0a8c814 801 0:63 706408fe:60f412de no
  21. v4 c0a8c814 801 0:64 af123987:8f7131de no
  22.  
  23. $ nfsstat -m
  24. /mnt/sub/share4 from 192.168.200.20:/mnt/tank/share4
  25. Flags: rw,noatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.200.10,local_lock=none,addr=192.168.200.20
  26.  
  27. /mnt/sub/share3 from 192.168.200.20:/mnt/tank/share3
  28. Flags: rw,noatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.200.10,local_lock=none,addr=192.168.200.20
  29.  
  30. /mnt/share1 from 192.168.200.20:/mnt/tank/share1
  31. Flags: rw,noatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.200.10,local_lock=none,addr=192.168.200.20
  32.  
  33. /mnt/sub/share2 from 192.168.200.20:/mnt/tank/share2
  34. Flags: rw,noatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.200.10,local_lock=none,addr=192.168.200.20
  35.  
  36. $ sudo systemctl status cachefilesd.service
  37. ● cachefilesd.service - LSB: CacheFiles daemon
  38. Loaded: loaded (/etc/init.d/cachefilesd; generated)
  39. Active: active (running) since Tue 2019-04-30 04:05:28 UTC; 5min ago
  40. Docs: man:systemd-sysv-generator(8)
  41. Process: 21405 ExecStop=/etc/init.d/cachefilesd stop (code=exited, status=0/SUCCESS)
  42. Process: 22001 ExecStart=/etc/init.d/cachefilesd start (code=exited, status=0/SUCCESS)
  43. Tasks: 1 (limit: 4915)
  44. CGroup: /system.slice/cachefilesd.service
  45. └─22022 /sbin/cachefilesd
  46.  
  47. Apr 30 04:05:28 orochi systemd[1]: Starting LSB: CacheFiles daemon...
  48. Apr 30 04:05:28 orochi cachefilesd[22001]: * Starting FilesCache daemon cachefilesd
  49. Apr 30 04:05:28 orochi cachefilesd[22020]: About to bind cache
  50. Apr 30 04:05:28 orochi cachefilesd[22020]: Bound cache
  51. Apr 30 04:05:28 orochi cachefilesd[22022]: Daemon Started
  52. Apr 30 04:05:28 orochi cachefilesd[22001]: ...done.
  53. Apr 30 04:05:28 orochi systemd[1]: Started LSB: CacheFiles daemon.
  54.  
  55. $ cat /etc/default/cachefilesd
  56. # Defaults for cachefilesd initscript
  57. # sourced by /etc/init.d/cachefilesd
  58.  
  59. # You must uncomment the run=yes line below for cachefilesd to start.
  60. # Before doing so, please read /usr/share/doc/cachefilesd/howto.txt.gz as
  61. # extended user attributes need to be enabled on the cache filesystem.
  62. RUN=yes
  63.  
  64. # Additional options that are passed to the Daemon.
  65. DAEMON_OPTS=""
  66.  
  67. $ cat /etc/cachefilesd.conf
  68. ###############################################################################
  69. #
  70. # Copyright (C) 2006,2010 Red Hat, Inc. All Rights Reserved.
  71. # Written by David Howells (dhowells@redhat.com)
  72. #
  73. # This program is free software; you can redistribute it and/or
  74. # modify it under the terms of the GNU General Public License
  75. # as published by the Free Software Foundation; either version
  76. # 2 of the License, or (at your option) any later version.
  77. #
  78. ###############################################################################
  79.  
  80. dir /var/cache/fscache
  81. tag mycache
  82. brun 10%
  83. bcull 7%
  84. bstop 3%
  85. frun 10%
  86. fcull 7%
  87. fstop 3%
  88.  
  89. # Assuming you're using SELinux with the default security policy included in
  90. # this package
  91. secctx system_u:system_r:cachefiles_kernel_t:s0
  92.  
  93. $ lsmod | grep cachefiles
  94. cachefiles 45056 1
  95. fscache 61440 3 cachefiles,nfsv4,nfs
  96.  
  97. $ grep CONFIG_NFS_FSCACHE /boot/config-4.15.0-20-generic
  98. CONFIG_NFS_FSCACHE=y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement