NFS Mount Issue: chown can’t change membership of nfs filesystem shared from OpenFiler

The problem is the following: I created an NFS share from OpenFiler, and when I tried to mount it using the NFS client on other server, it mounted successfully, but I couldn’t change ownership of the NFS share, as follows:

[root@egohstest04 ~]# chown -R siebel:siebel /ttslab2/siebel/siebelfs
chown: changing ownership of `/ttslab2/siebel/siebelfs’: Operation not permitted

The solution to this is to edit the NFS share options, and change the UID/GID Mapping to “no_root_squash”, and there you go 🙂

Enjoy!

Source: http://www.linuxquestions.org/questions/linux-server-73/nfs-and-chown-wtf-552879/

Posted in Linux | Tagged , | Leave a comment

How to Mount NFS

mount -t nfs -o options host:/remote/export /local/directory


Source: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/s1-nfs-client-config.html
Posted in Linux | Tagged , | Leave a comment

How to change hostname in Redhat & Oracle Linux

As user “root”

“vi /etc/sysconfig/network”, change HOSTNAME value to the new hostname

“hostname NEW_HOST_NAME” to change it for the current sessions

“vi /etc/hosts”, change the old value to point to the new hostname

“service network restart” to restart the networking service and apply all the new changes

Posted in Linux | Tagged , , , , | 2 Comments

Get List of ASM Disks in an 11gR2 Database

select * from v$asm_disk

Posted in Oracle | Tagged , , , | Leave a comment

How to compile all Oracle DB 11gR2 Invalid Objects

Login to SQLPlus
Run the following statement: “@?/rdbms/admin/utlrp.sql”

Posted in Oracle | Tagged , , , , , , | Leave a comment