mkdir: Failed to make directory “oracle”; Operation not applicable : solaris

Cause:

While trying to create a new directory in /home directory path,you get this error in oracle solaris platform

This is because of the feature of auto filesystem managed by solaris itself

root@orsol:/home# mkdir oracle
mkdir: Failed to make directory "oracle"; Operation not applicable

Workaround:

Check if autofs is online or not

root@orsol:/home# svcs |grep auto
online         12:33:53 svc:/system/filesystem/autofs:default

Disable autofs using svcadm utility and verfiy the status of autofs again.It should not be visible this time

root@orsol:/home# svcadm disable svc:/system/filesystem/autofs:default
root@orsol:/home# svcs |grep auto
root@orsol:/home#

For permanent solution, change the configuration file similar to fstab for modification of filesystem settings

Comment out the directory where you need write permission and reboot your system to make change effective

root@orsol:/# cat /etc/auto_master
#
# Copyright (c) 1992, 2011, Oracle and/or its affiliates. All rights reserved.
#
# Master map for automounter
#
+auto_master
/net            -hosts          -nosuid,nobrowse
#/home          auto_home       -nobrowse
/nfs4           -fedfs          -ro,nosuid,nobrowse

Reboot the system

root@orsol:/# reboot

Now you can create directory independently

root@orsol:/# cd home/
root@orsol:/home# mkdir oracle
root@orsol:/home#

root@orsol:/home# ls -lrt
total 6
drwxr-xr-x   2 root     root           2 May 12 12:43 oracle

Leave a Reply