Mount point permission problems after LU

I've upgraded 3 6800 domains from Solaris 9 12/02 to 12/03 in the past few days. I'm seeing a problem on each one after the upgrades. If a normal user enters a filesystem, /var for example, and runs pwd, they get back:

pwd: cannot determine current directory!

If they df -k they get: df: cannot canonicalize .: Permission denied

The problem seems to be based on the permissions of the underlying directories for those mount points. I was able to boot single-user, umount -f /var and ls showed the permissions to be 700. I changed them to 755 and everything works fine.

Has anyone run into this before? I'd like to know how to prevent it. Now I'm going to have to boot cdrom in order to change the permissions of /usr and others, it kind of defeats the purpose of live upgrades if you just have to take it down again to change the permissions.

[982 byte] By [cdlair] at [2007-11-25 22:36:52]
# 1

I'm experiencing a similar issue on a few of our servers that were recently Live Upgraded from Solaris 8 to Solaris 9.

MmmK $ ls -l / | grep var

drwxr-xr-x 44 rootsys 1024 Jul 25 17:24 var

MmmK $

MmmK $ cd /var ; pwd

/var

MmmK $

MmmK $ cd /var ; df -k .

df: cannot canonicalize .: Permission denied

MmmK $

MmmK $ cd /var ; sudo df -k .

Filesystemkbytesusedavail capacity Mounted on

/dev/dsk/c0t0d0s42054529 1432220 56067472%/var

MmmK $

I haven't been able to procure a maintenance window yet to try bringing up the server in maintenance mode and verifying the mount point permissions.

This is just another example of why I dislike upgrades..

Cheers,

Mark

mdhmi at 2007-7-5 14:03:58 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
What was your umask setting prior to doing LU? Maybe it was inherit? I have done quite a few LU without any issues. As a precaution, you can always lumount the new BE to verify the perms prior to activating it.
n0b0dy at 2007-7-5 14:03:58 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
Hi, Sun knows about this problem, but there is no patch available. The only thing you can do, is mounting the Filesystem which contains the mountpoint and fix the permissions manually. Hans-J rgen
eiben at 2007-7-5 14:03:58 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
This is bug #4697677, "permissions of underlying directory affect permissions of mount point". Feel free to call in a case to Sun, the more visibility a bug has, the more likely it is to be fixed.
BrianExcarnate at 2007-7-5 14:03:58 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...