Saturday, November 21, 2009

How to increase the Logging Level of NFSD

NFS Server logging is by default very good, but in case you need more logging for deeper inspection you can use :
echo 32767 > /proc/sys/sunrpc/nfsd_debug 
echo 32767 > /proc/sys/sunrpc/rpc_debug 
And for the client side use :
echo 32767 > /proc/sys/sunrpc/nfs_debug
In order to return back to old debugging level use :
echo 0 > /proc/sys/sunrpc/nfsd_debug
echo 0 > /proc/sys/sunrpc/rpc_debug
echo 0 > /proc/sys/sunrpc/nfs_debug 

Sunday, November 15, 2009

Master Certificate in Experts-Exchange

I really find Experts-Exchange a great way of challenging yourself for different problems then you have in your daily job. As I contribute in various areas, I could finally got enough points to get Master Certificate. Next target is Guru ;-)

How to Rescan SCSI Bus in Linux

I have a RHEL5 lab on my laptop, that's hosted on Vmware 7. For my RHCE prep I usually add/remove disks while the VM is up and running (hot swap). In order to make Redhat recognize the new disk you need to trigger the rescan of the SCSI bus :
echo “- - -” > /sys/class/scsi_host/hostX/scan
instead of hostX use the HBA ID. It's host0 in my case. Immediately after you can see the new disk on "fdisk -l"


NOTE : This works on 2.6 kernel only.