Print this page
8891 One unmountable dataset on rpool breaks a lot of things

@@ -19,10 +19,11 @@
 #
 # CDDL HEADER END
 #
 #
 # Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2017 RackTop Systems.
 #
 
 . /lib/svc/share/smf_include.sh
 
 result=$SMF_EXIT_OK

@@ -42,11 +43,11 @@
 elif [ $rc -ne 0 ]; then
         cat /var/run/fs-local >/dev/msglog
         msg="WARNING: /sbin/mountall -l failed: exit status $rc"
         echo $msg
         echo "$SMF_FMRI:" $msg >/dev/msglog
-        result=$SMF_EXIT_ERR_FATAL
+        result=$SMF_EXIT_MON_DEGRADE
 fi
 rm -f /var/run/fs-local
 
 #
 # If there are non-global UFS filesystems with quotas, check and enable them.

@@ -91,11 +92,11 @@
         rc=$?
         if [ $rc -ne 0 ]; then
                 msg="WARNING: /usr/sbin/zfs mount -a failed: exit status $rc"
                 echo $msg
                 echo "$SMF_FMRI:" $msg >/dev/msglog
-                result=$SMF_EXIT_ERR_FATAL
+                result=$SMF_EXIT_MON_DEGRADE
         fi
 fi
 
 if [ $result = $SMF_EXIT_OK -a $mntretry -eq 1 ]
 then

@@ -103,11 +104,11 @@
         rc=$?
         if [ $rc -ne 0 ]; then
                 msg="WARNING: /sbin/mountall -l failed: exit status $rc"
                 echo $msg
                 echo "$SMF_FMRI:" $msg >/dev/msglog
-                result=$SMF_EXIT_ERR_FATAL
+                result=$SMF_EXIT_MON_DEGRADE
         fi
 fi
 
 # Add swap filesystems
 /sbin/swapadd >/dev/null 2>&1