Cache fs : NFS
par
popularité : 1%

Creation d’un cache pour NFS :
cfsadmin -c /export/nfs_cache
mkdir /nfs
ls -la /export/nfs_cache
total 30048 d--------- 4 root other 512 Jul 30 18:51 . drwxr-xr-x 6 root root 512 Jul 30 18:51 ..rw------- 1 root other 48 Jul 30 18:51 .cfs_label
rw------- 1 root other 48 Jul 30 18:51 .cfs_label.dup
rwx------ 1 root other 0 Jul 30 18:51 .cfs_lock drwx------ 2 root other 512 Jul 30 18:51 .cfs_mnt_points
rw------- 1 root other 15368192 Jul 30 18:51 .cfs_resource
rw-r—r— 1 root other 4 Jul 30 18:51 .cfs_unmnt
rw-r—r— 1 root other 22 Jul 30 18:51 .nsr drwx------ 2 root other 512 Jul 30 18:51 lost+foundmount -F
cachefs -o
backfstype=nfs,rw,cachedir=/export/cdrom_cache,cacheid=_nfs_
192.168.2.5 :/export/home/pierre /nfs
ls -la /export/nfs_cache total 30048 d--------- 4 root other 512 Jul 30 18:51 . drwxr-xr-x 6 root root 512 Jul 30 18:51 ..rw------- 1 root other 48 Jul 30 18:51 .cfs_label
rw------- 1 root other 48 Jul 30 18:51 .cfs_label.dup
rwx------ 1 root other 0 Jul 30 18:51 .cfs_lock drwx------ 2 root other 512 Jul 30 18:51 .cfs_mnt_points
rw------- 1 root other 15368192 Jul 30 18:51 .cfs_resource
rw-r—r— 1 root other 4 Jul 30 18:51 .cfs_unmnt
rw-r—r— 1 root other 22 Jul 30 18:51 .nsr drwx------ 2 root other 512 Jul 30 18:51 lost+found
ls -Lla /export/nfs_cache/_nfs_/
total 24
drwxrwxrwx 3 root root 512 Jul 30 18:57 .
d--------- 5 root other 512 Jul 30 18:57 ..
drwxrwxrwx 2 root root 512 Jul 30 18:57 .cfs_attrcacherw-rw-rw- 1 root root 8192 Jul 30 18:57 .cfs_fsinfo
rw-r—r— 1 root other 310 Jul 30 18:57 .cfs_mnt
cat /export/nfs_cache/_nfs_/.cfs_mnt
cachedir : /export/nfs_cache
mnt_point : /nfs
special : 192.168.2.5 :/export/home/pierre
backpath : /export/nfs_cache/.cfs_mnt_points/192.168.2.5:_export_home_pierre
backfstype : nfs
cacheid : _nfs_
cachefs_options : backfstype=nfs,rw,cachedir=/export/nfs_cache,cacheid=_nfs_
backfs_options : rw
mount_time : 1028048233
Commentaires Forum fermé