It turns out that Oracle has a little bug in Solaris 10 (6941744) which basically says that libsharecore.c has some incorrect code that improperly affects Solaris 10 systems.
Based on this thread it doesn't sound like a fix is here yet, so I put this together quickly to get past the issue. While I have no reason to suspect this script will cause issues, I provide it to you with the understanding that you will ensure it is the right solution for your environment. I placed this script at /etc/init.d/local, and linked it to rc2.d and rc3.d as necessary.
#!/usr/bin/bash
#
# This is a cleanup script due to an issue in Solaris 10 update 9 and previous
# SUN/Oracle bug 6941744
#
# From /etc/dfs/dfstab
# --------------------
# Use the sharemgr(1m) command for all share management
# This file is reconstructed and only maintained for backward
# compatibility. Configuration lines could be lost.
# --------------------
#
# created by Justin Richards, Lumenate
# Version 1.0 Date 02202011
#
CAT="/usr/bin/cat"
SED="/usr/bin/sed"
CP="/usr/bin/cp"
SHARE="/usr/sbin/shareall"
case "$1" in
start|restart)
$CAT /etc/dfs/dfstab | $SED '/^# Error: Syntax: /s/# Error: Syntax: //' > /etc/dfs/dfstab.tmp ;\
$CP /etc/dfs/dfstab.tmp /etc/dfs/dfstab ; $SHARE
;;
*)
echo "Usage: $0 {start|restart}"
exit 1
;;
esac
No comments:
Post a Comment