MacCentre
Форум: Mac и Mac OS X
Тема: Spotlight и индексирование
Страницы: [1] 2
[Ответить]
JanM [26.07.2007 10:41] Spotlight и индексирование:
Бэкаплю систему SuperDuper'ом. Пользовал 250 гб и SmartUpdate. Стало не хватать. Поставил 1 Тб. Все работает, но если раньше после бэкапа комп почти не жил собственной половой жизнью, то теперь после каждого бэкапа (в 3 часа ночи) индексирование тома длится еще по 6-8 часов... К чему бы это? И сколько это будет продолжаться? :). Если я правильно понимаю, то индексирование проходит этапов 10, потом успокаивается, видя что меняется мало, и начинает индексировать только обновившиеся объемы. Или я ошибаюсь, и время зависит напрямую от объема диска. Т.е. 250 Гб - полчаса-час, соответственно 1Тб - в четыре раза больше. И если первое я не замечал по причине малого времени, то второй вариан явен и очевиден? Странно, если объем информации для бэкапа не изменился, он что, пустое место индексирует? Наверное, это и есть ключевой вопрос..
JanM [27.07.2007 07:45] :
Я задал насколько глупый вопрос? :(
Resh [28.07.2007 02:06] :
Нет. Просто ты выложил очень много информации. Помочь ничем не могу, но могу точно скачать, что индексирование моего встроенного жесткого диска (120 Гб) длится около 5 минут, не заполнен он процентов на 10.
JanM [29.07.2007 07:13] :
Угу. Тут вся фишка в том, что диск внешний. Через FW800. Ввиду того, что индексация подразумевает обмен информацией с "базой", имею 8 часов ежедневно шуршания внешнего RAID и все тут. 10 этапов индексирования прошло. Ничего не изменилось. Судя по всему, несмотря на глупые надежды, индексация (и ее время) зависит не от количества информации на диске, а от его собственного объема, что несколько странно, но тем не менее является фактом. Странно это.
Буду признателен за подсказку, как этого процесса можно избежать. Ну там отключить ее нафиг хотя бы (ведь том для бэкапа только лишь, индексация - дело 86).
Neo [29.07.2007 12:07] :
Управлять индексированием можно из командной строки Terminal'а.
http://www.macworld.com/2005/07/secrets/augustgeekfactor/
JanM [29.07.2007 20:46] :
Force Spotlight to Index Files
By default, Spotlight ignores many directories, such as your Classic System Folder. Sure, that makes results easier to comb through if you never need to look for OS 9 fonts; but if you do need to search these directories, it can be a real pain.
Use the mdimport command to add files to your Spotlight indexes. When you do, you’ll be able to search for much more than the default selection of files and folders. (When you add to your indexes this way, Spotlight won’t continue to index the new files automatically. You’ll have to run the command again.)
The mdimport command forces Spotlight to index a folder. When you run the command, you’ll index all the contents of the directory and its subdirectories. The basic command structure looks like this: mdimport -f directory name.
So if you want to index your Classic System Folder, you’d type mdimport -f /"System Folder" (assuming that the System Folder is at the root level of your startup volume).
If you want to index other folders, or if Spotlight is not finding certain files, use the same command with the appropriate paths to index or reindex specific directories or volumes. Note: Spotlight doesn’t index text files that lack the .txt extension. That means you won’t be able to improve its ability to find, for example, configuration (.config) files and preference (.plist) files.
Stop Spotlight Indexing
If you peruse the Spotlight preference pane, you’ll see that you can prevent Spotlight from indexing certain volumes or folders. Click on the Privacy tab and add the areas you don’t want indexed to the list. That’s handy if you don’t want your Mac grinding away every time you connect your backup drive to archive files, or if you don’t want it to provide duplicate search results (the same files on both your main drive and your backup) when the backup is connected.
The mdutil command gives Mac administrators similar powers. (You must preface it with sudo , which tells Terminal to run it as the superuser after you authenticate with your administrator password.) Using this command, you can specify which volumes to index and you can also make Spotlight reindex volumes by erasing the current indexes.
The On-Off Switch To turn indexing on or off for a volume, run sudo mdutil -i on volume name or sudo mdutil -i off volume name, respectively. For example, if you want to turn off indexing for a volume called Backup, the command would be sudo mdutil -i off /Volumes/Backup .
To delete the index for a volume, run the command sudo mdutil -E volume name. If indexing is on for the volume, Spotlight will reindex it immediately. If indexing is off, it will remain so (until you turn it on again). That means you’ll reclaim the disk space that the index used.
Спасибо, этого вполне достаточно. sudo mdutil -i off /Volumes/Backup
Zlobin [05.06.2008 17:48] :
Почему то перестал вестись поиск в Spotlight. Точнее он ищет и находит документы до какой-то определенной даты (условно до 29 апреля). Все новые документы, после этого числа, он уже не находит. Что могло слететь и можно это как-то поправить?
Tartuga [05.06.2008 17:51] :
Zlobin
Точнее он ищет и находит документы до какой-то определенной даты (условно до 29 апреля)
ОФФ. Разрывы были? ;)
AntonLitvin [05.06.2008 17:52] :
Tartuga
http://www.adme.ru/viral/2008/06/02/22929/
Tartuga [05.06.2008 17:59] :
AntonLitvin
ОФФ. А mp3 есть в наличие? Нигде по ссылкам нету ((
[Ответить]
[Вперед >]