On Thu, Jan 28, 2010 at 7:48 PM, Rodney <rodn...@bigpond.net.au> wrote: > Tried pkg fix on SUNWcsd and that didn't help either. > If you have missing /dev/msglog (that wasn't the problem I had or the > original poster) there's a useful post here (just including here for the > record in case it helps a future googler): > http://www.eall.com.br/blog/?p=1152 > > Ultimate fix that worked was to re-build the SMF repository from the default > global.db: > > # pfexec cp /lib/svc/seed/global.db /etc/svc/repository.db > # pfexec chmod 0600 /etc/svc/repository.db > # pfexec chown root:sys /etc/svc/repository.db > # pfexec reboot > > Then after a longer than normal reboot to rebuild the SMF repo like after an > initial install, the /dev/msglog problem disappeared and dozens of affected > services resumed working. > > Is there an easier or recommended way to accomplish the above?
Errm, there is a /lib/svc/bin/restore_repository script that will do this, and safer. Did you not try this or did you know know about this? At this point, as you have done the overwrite already, I would run this script and restore to the repo to "-seed-", since that's what you've effectively done. I recommend you do this as a safety measure, to iron out whatever problems may have been introduced from you just copying over the db and restarting the box. You may find the result just the same just as if you didn't do this, but ... you don't know. CT _______________________________________________ sysadmin-discuss mailing list sysadmin-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss