11-05-2014
Quote:
Originally Posted by
achenle
You can also drop non-ZFS file system caches for a file system by unmounting that file system.
Yes, but that's more intrusive than using lockfs.
Quote:
I haven't tested that for a ZFS file system, but I think there's a good chance that it will work.
That likely won't work. Unlike with traditional file systems, data can be shared between ZFS file systems belonging to the same pool so the cache is working at the pool level. Outside exporting importing the pool containing the file system which I already suggested but that is not achievable with the root pool, another way might be to dynamically reduce the ARC max size and perhaps allocate some RAM for the OS to release pages. This will affect all ZFS datasets though.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi I have 2 Solaris boxes A and B, A running solaris 9, and B running solaris 6.
when i try to use rcp on A like this:-
A> rcp file.txt B:/path/file.txt
I get into standard input and nothing happens!!
Then On the target machine B, if i try,
B> rcp otherfile.txt B:/path/otherfile.txt... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies
2. Shell Programming and Scripting
Hello, the ls -d command to only list directories in a directory doesn't seem to work on Solaris and the man command says to use that combination: ls -d
Anyone have the same problem and find a resolve?
Thanks
BobK (9 Replies)
Discussion started by: bobk544
9 Replies
3. UNIX for Dummies Questions & Answers
Hi again everyone.
I have recently installed Solaris 10 on a server. Everything seems to work fine (users can be added and can log in, internet connectivity works, etc). However I'm struggling to get mail or mailx to work.
Say there are two users on my server, Bob and Mary. Server hostname... (3 Replies)
Discussion started by: EugeneG
3 Replies
4. Solaris
Hi to all!
I want to learn step by step easily how to configure my Solaris for network. I know alot about Solaris Network configuration. But I have some problems.
When I install Solaris, and I plug-in my network cable to Solaris. Then I run:
ifconfig -a plumb
then I do
ifconfig bge0 dhcp... (7 Replies)
Discussion started by: SecureXCode
7 Replies
5. Solaris
grep -e doesn't work in Soalris.
Same script with grep -e worked on AIX/HP/LINUX..
I would like to search a list of patterns on "log.txt" like ...
grep -e FATAL -e ERROR log.txt
I get the error message as
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . . (3 Replies)
Discussion started by: jmkraja
3 Replies
6. Solaris
Hi Forum,
I updated my Solaris 10 (10/09) with the current Oracle patch file and moved the smb.conf to /etc/samba/smb.conf.
Anyway, since patching, no Windows client is able to connect the share. It says password is wrong, but its the right pw.
My smb.conf:
bash-3.00# cat... (4 Replies)
Discussion started by: borsti007
4 Replies
7. Shell Programming and Scripting
Hi, I have a question.
I define a function using sed command:
replace()
{
searchterm=$1
replaceterm=$2
sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp'
mv $WORK'tempfile.tmp' $3
}
Then I call
replace 'test = 0' 'test = 1' $myfileThis code works well in... (1 Reply)
Discussion started by: Dark2Bright
1 Replies
8. Shell Programming and Scripting
Hi, I have a question.
I define a function using sed command:
replace()
{
searchterm=$1
replaceterm=$2
sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp'
mv $WORK'tempfile.tmp' $3
}
Then I call
replace 'test = 0' 'test = 1' $myfile
This code... (1 Reply)
Discussion started by: Dark2Bright
1 Replies
9. Solaris
Hi All,
I am using a solaris Sun-Fire-V440 server.
The OS is solaris.
My problem is whenever I run the command
mount | grep "^/ " | sed -e 's,^.*dsk/\(*\).*$,\1,'
it should return a disk value as "d30" as it does on each of my other servers.But on this server I am not getting any o/p from... (3 Replies)
Discussion started by: vivek.goel.piet
3 Replies
10. AIX
root@PRD /> rsh DR
KFAFH_DR: protocol failure due to unexpected closure from server end
root@PRD /> telnet DR
Trying...
Connected to DR.
Escape character is '^]'.
Connection closed.
root@PRD /> ftp DR
Connected to KFAFH_DR.
421 Service not available, remote server has closed connection... (2 Replies)
Discussion started by: filosophizer
2 Replies
LEARN ABOUT DEBIAN
zfs-fuse
ZFS-FUSE(8) [FIXME: manual] ZFS-FUSE(8)
NAME
zfs-fuse - ZFS filesystem daemon
SYNOPSIS
zfs-fuse [--pidfile filename] [--no-daemon] [--no-kstat-mount] [--disable-block-cache] [--disable-page-cache] [--fuse-attr-timeout SECONDS]
[--fuse-entry-timeout SECONDS] [--log-uberblocks] [--max-arc-size MB] [--fuse-mount-options OPT,OPT,OPT...]
[--min-uberblock-txg MIN] [--stack-size=size] [--enable-xattr] [--help]
DESCRIPTION
This manual page documents briefly the zfs-fuse command.
zfs-fuse is a daemon which provides support for the ZFS filesystem, via fuse. Ordinarily this daemon will be invoked from system boot
scripts.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below. For a complete description, see the Info files.
-h --help
Show summary of options.
-p filename --pidfile filename
Write the daemon's PID to filename after daemonizing. Ignored if --no-daemon is passed. filename should be a fully-qualified path.
-n --no-daemon
Stay in foreground, don't daemonize.
--no-kstat-mount
Do not mount kstats in /zfs-kstat
--disable-block-cache
Enable direct I/O for disk operations. Completely disables caching reads and writes in the kernel block cache. Breaks mmap() in ZFS
datasets too.
--disable-page-cache
Disable the page cache for files residing within ZFS filesystems. Not recommended as it slows down I/O operations considerably.
-a SECONDS --fuse-attr-timeout SECONDS
Sets timeout for caching FUSE attributes in kernel. Defaults to 0.0. Higher values give a 40% performance boost.
-e SECONDS --fuse-entry-timeout SECONDS
Sets timeout for caching FUSE entries in kernel. Defaults to 0.0. Higher values give a 10000% performance boost but cause file
permission checking security issues.
--log-uberblocks
Logs uberblocks of any mounted filesystem to syslog
-m MB --max-arc-size MB
Forces the maximum ARC size (in megabytes). Range: 16 to 16384.
-o OPT... --fuse-mount-options OPT,OPT,OPT...
Sets FUSE mount options for all filesystems. Format: comma-separated string of characters.
-u MIN --min-uberblock-txg MIN
Skips uberblocks with a TXG < MIN when mounting any fs
-v MB --vdev-cache-size MB
adjust the size of the vdev cache. Default : 10
--zfs-prefetch-disable
Disable the high level prefetch cache in zfs. This thing can eat up to 150 Mb of ram, maybe more
--stack-size=size
Limit the stack size of threads (in kb). default : no limit (8 Mb for linux)
-x --enable-xattr
Enable support for extended attributes. Not generally recommended because it currently has a significant performance penalty for many
small IOPS
-h --help
Show this usage summary.
REMARKS ON PRECEDENCE
Note that the parameters passed on the command line take precedence over those supplied through /etc/zfs/zfsrc.
BUGS
/CAVEATS
The path to the configuration file (/etc/zfs/zfsrc) cannot at this time be configured.
Most existing packages suggest settings can be set at the top of their init script. These get frequently overridden by a (distribution
specific) /etc/default/zfs-fuse file, if it exists. Be sure to look at these places if you want your changes to options to take effect.
The /etc/zfs/zfsrc is going to be the recommended approach in the future. So, packagers, please refrain from passing commandline parameters
within the initscript (except for --pid-file).
SEE ALSO
zfs (8), zpool (8), zdb(8), zstreamdump(8), /etc/zfs/zfsrc
AUTHOR
This manual page was written by Bryan Donlan bdonlan@gmail.com for the Debian(TM) system (but may be used by others). Permission is granted
to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation, or the Common Development and Distribution License.
Revised by Seth Heeren zfs-fuse@sehe.nl
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. The text of the
Common Development and Distribution Licence may be found at /usr/share/doc/zfs-fuse/copyright
COPYRIGHT
Copyright (C) 2010 Bryan Donlan
[FIXME: source] 2010-06-09 ZFS-FUSE(8)