Bug 2873 - build local search indices from an smf service on first boot
: build local search indices from an smf service on first boot
Status: ACCEPTED
Product: pkg
search
: unspecified
: Other OpenSolaris
: P4 enhancement (vote)
: future
Assigned To: pkg/search watcher
: pkg/search watcher
:
:
:
: 2806
:
  Show dependency treegraph
 
Reported: 2008-08-12 17:00 UTC by Karen Tung
Modified: 2009-11-12 21:55 UTC (History)
6 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Karen Tung 2008-08-12 17:00:17 UTC
The changes for bug 2810 removes the indices used by IPS since those are huge
files, and the indices are not required for pkg search to work on the live CD.

However, having the indices really help with speed up IPS searches.
So, we should rebuild them as part of the Installation Completion Tasks.
The command to rebuild them is "pkg rebuild-index"
Comment 1 JoeV 2008-08-13 06:08:11 UTC
Will work as part of the ICT project
Comment 2 Dave Miner 2008-10-15 15:18:20 UTC
I think we're going to want to skip doing this in ICT in at least some cases,
see my comments in bug 2863 on the indexing behavior when memory gets tight.
Comment 3 David Comay 2008-11-09 19:32:05 UTC
Recategorizing as this is an installer issue.
Comment 4 JoeV 2009-02-11 09:18:28 UTC
Although it is not invoked ICT rebuild_pkg_index() had already exists.

I had thought I closed this a while back. I must have missed it. I'm marking
this closed.
Comment 5 JoeV 2009-02-12 06:43:18 UTC
After communications with Dave Miner, Comay and Brock Pytlik I'm reopening this
as a pkg issue.

Suggestion from David Comay:
Have an smf(5) service rebuild the indices on first boot.
Comment 6 Brock Pytlik 2009-04-30 10:44:35 UTC
Lowering priority as it's unclear whether this is still something that's
desired, at least that we'd want to have on by default. We've noticed that on
at least one machine, building the index from scratch takes 6 minutes. Given
that remote search is now the default, I think this might be a nice thing to
have for advanced users who know about smf in detail and want to turn it on,
but if it's not on by default, I think it's low priority.
Comment 7 Dan Price 2009-11-12 21:55:02 UTC
Improve summary