Gopi Desaboyina Solaris Blogs

Just another WordPress.com weblog

df: failed to open /etc/mnttab: Permission denied

User’s can’t run df -k and gets below error.

non-root-user@system$ df -k
df: failed to open /etc/mnttab: Permission denied

non-root-user@system$ ls -l /etc/mnttab
-r–r—–   6 root     root        3584 Jul 17 06:07 /etc/mnttab

Try to change the permissions using root id. will get below error.
root# id
uid=0(root) gid=0(root)

root# chmod 444 /etc/mnttab
chmod: WARNING: can’t change /etc/mnttab

Cause for the Problem :
   This problem happens when at one point of time when users booted of CD-ROM or failsafe changed the permissions on /etc/mnttab inadvertently.

Fix :
1. Boot of CDROM. mount the root slice on /a & do chmod 444 /a/etc/mnttab
  (Or)
2.  On Running system.
    # mkdir -m 755 /alt-root
    # mount -F lofs -o nosub / /alt-root #lofs as / as /alt-root
    # chmod 444 /alt-root/etc/mnttab
    # umount /alt-root
    # ls -l /etc/mnttab
    -r–r–r– 4 root root 2485 Jul 7 08:53 /etc/mnttab
    # rmdir /alt-root

There you go.

August 29, 2011 Posted by | Solaris | Leave a comment

Mounting root on rpool/ROOT/<BE NAME> with filesystem type zfs is not supported

root device: disk1:a  File and args:
SunOS Release 5.10 Version Generic_144488-17 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
\
SC Alert: Failed to send email alert for recent event.
Mounting root on rpool/ROOT/20110809 with filesystem type zfs is not supported

panic[cpu0]/thread=180e000: vfs_mountroot: cannot remount root

000000000180b950 genunix:vfs_mountroot+398 (60031d00080, 18ea700, 190e150, 1934800, 193cc00, 18e5470)
  %l0-3: 0000060031d00080 000000000129a800 00000000018e4f28 0000060031d00080
  %l4-7: 000000000190e150 0000000000002420 0000000000000420 0000000000002000
000000000180ba10 genunix:main+100 (183fa20, 183f800, 1888740, 10b5800, 0, 1)
  %l0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
  %l4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000

syncing file systems… done
skipping system dump – no dump device configured
rebooting…

SC Alert: Host System has Reset

Normally this problem happens when /etc/system has svm root dev & vfstab has entries for root with md. it supposed to have rpool entries.
1. Boot from Alternative/CD. import the rpool & mount it on /a
2. vi /a/etc/system and make sure you don’t have any SVM md as root dev. rootdev:xxxxxxx . Delete this line
3. check /a/etc/vfstab and make necessary changes to reflect the correct device.

August 29, 2011 Posted by | Solaris | 3 Comments