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

*** 19,28 **** --- 19,29 ---- # # 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,52 **** 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 fi rm -f /var/run/fs-local # # If there are non-global UFS filesystems with quotas, check and enable them. --- 43,53 ---- 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_MON_DEGRADE fi rm -f /var/run/fs-local # # If there are non-global UFS filesystems with quotas, check and enable them.
*** 91,101 **** 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 fi fi if [ $result = $SMF_EXIT_OK -a $mntretry -eq 1 ] then --- 92,102 ---- 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_MON_DEGRADE fi fi if [ $result = $SMF_EXIT_OK -a $mntretry -eq 1 ] then
*** 103,113 **** 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 fi fi # Add swap filesystems /sbin/swapadd >/dev/null 2>&1 --- 104,114 ---- 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_MON_DEGRADE fi fi # Add swap filesystems /sbin/swapadd >/dev/null 2>&1