Skip to main content

Posts

Showing posts from March, 2010

EMC Celerra – NFS client’s view of disk space usage

While mounting NFS share from EMC celerra (NX80G v5.6) which has file system level quota on the NAS, the client sees the size of the entire file system on NAS and not the quota. This is very misleading on the client side where the users assume there are a lot space available on the system than it is (from the df command). To fix this issue, the following parameter on the NAS needs to be enabled to show the quota size instead of file system size: # server_param <server_name> -f quota –modify useQuotaInFsStat –value 1 Display current value: # server_param <server_name> -f quota –I useQuotaInFsStat  

Perl one liners

Check if a module is installed: perl -M<module name>-e 1 Check the version of the installed modules: perl -M<module name> -e 'print "$<module name>::VERSION \n"' Install a perl module using CPAN: perl -MCPAN -e 'install <module name>' ________________________________________________ References: http://www.perlhowto.com/perl_modules http://www.cpan.org/misc/cpan-faq.html#How_install_Perl_modules

Creating NFS mount points in AIX

/usr/sbin/mknfsmnt -f '[local directory] ' -d '[remote directory] ' -h ' ' -M 'sys' '-B' '-A' -t 'rw' -w 'bg' -b '32768' -c '32768' -K '3' -k 'tcp' '-Y' '-Z' '-X' '-S' '-j' -R '5' '-q' '-g' The values used are as per oracle database requirement [ FROM AIX INFO CENTER ] -A The /etc/filesystems entry for this file system specifies that it should be automatically mounted at system restart. -a The /etc/filesystems entry for this file system specifies that it should not be automatically mounted at system restart. This is the default flag. -B Adds an entry to the /etc/filesystems file and attempts to mount the file system. This is the default flag. -b ReadBufferSize Indicates the size of the read buffer in bytes specified by the ReadBufferSize variable. -c WriteBufferSize Indicates the size of the wri...