Archive for category solaris
contain holes – can’t swap on it.
root@home# mkfile 512m /var/swapfile
root@home# swap -a /var/swapfile
“/var/swapfile” may contain holes – can’t swap on it.
the above is ok for UFS, but not work in ZFS.
Solution:
root@home# zfs create -V 1gb rpool/swapfile
root@home# swap -a /dev/zvol/dsk/rpool/swapfile
Good articles on Swap
http://blogs.sun.com/jimlaurent/entry/solaris_faq_myths_and_facts
mount: /mnt/nfs: Not owner
nfs mount: mount: /mnt/nfs: Not owner
When you get this error from a Solaris Host, because you are trying to mount an nfsV3 share with an nfsV4 client.
This occurs when you want to share an nfs from a linux host to a solaris host.
Just use the option vers=3 to avoid this problem or configure nfsV4 on the linux host.
mount -o vers=3 linux_nfs_01:/htdocs /htdocs
Nagios/NRPE Issue: Unable to read output
On Solaris you may met the following problem
“nagios – NRPE: Unable to read output”, may caused by the plugin, check the permission and libs
ldd /usr/local/nagios/libexec/check_disk , if it tell you “not found” , try to get the lib from www.sunfreeware.com
libintl.so.8 => /usr/local/lib/libintl.so.8
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libsec.so.1 => /usr/lib/libsec.so.1
libc.so.1 => /usr/lib/libc.so.1
libpthread.so.1 => /usr/lib/libpthread.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libavl.so.1 => /lib/libavl.so.1
libm.so.2 => /lib/libm.so.2