Ключи ремонтной утилиты DSREPAIR

Новости раздела "Грабли". Здесь можно задать вопрос авторам статей.

Ключи ремонтной утилиты DSREPAIR

Сообщение Музалёв Николай » 08 апр 2008, 15:27

Соратники!
Есть предложение: помогите собрать формально-неформальное руководство по ключам модуля DSREPAIR.
Потому как в официальных бумагах как то не очень много, а главное - главных то ключей и нет: даже про ключик сказано вскользь...

Предполагается, что будет полезно собрать наши знания в некую табличку:
- ключик
- чего про него говорят официально
- ваши комментарии на русском: когда ключик нужен, когда вреден, когда просто запрещен.

Кому томно написать, хоть номера тидов укажите.

Спасибо.

Итак:

Ключи
D, L, M, N, P, U, RC, RD, RI, RL, RM, RN, RR, RV, RVT
описаны в документе List of DSREPAIR Switches (ТИД 10017477)

Switches can be escaped with the following three identifiers ?/'
?\' or ?-?. DIB refers to database.

D <DIB> - Repair the DIB with extension <DIB>. Defaults to 'NDS' if not specified. The 'NDS' DIB is always closed and locked regardless of the DIB being repaired.

L <log> - Specify an alternate location/name for the log file. Default is 'sys:system\dsrepair.log'. The path can be any NetWare volume or dos drive, as in 'a:temp.lg'. Path and filename specified MUST be DOS 8.3 format.

M - Report move inhibit obituaries, this is used to discover if a move has completed or if a partition is reported as BUSY because there are move inhibit obituaries in a replica that have either not completed processing or that are broken.
(A better way of finding obituaries is to use DSREPAIR -A, "Advanced Menu", "Check External References"; See the Solutions on error -637)

N [number of days] - Specifies the number of days old that a net-address property is allowed to be on a user class object. It the net-address property is older than the number of days specified, then it is deleted. This resolves a problem where the net-address is never deleted when a connection is terminated, and results in a reduction of allowed connections to the server. The default is 60 days.

P - Mark all unknown class objects as referenced ( a referenced object is not synchronized ).

U - Unattended mode, repair runs the main menu unattended mode operations without user intervention, and unloads when completed. The following options are only available in DSRepair 4.26c or later. They also create a status file called '<log>.DSM' by default that contains status information for the DSManager tool. All are short cuts to operations found in the DSRepair command menus.

RC - Create a database dump file (sys:system\dsrepair.dib)

RD - Repair local database

RI - Repair remote server ID's

RL - Specify an alternate log file. Unlike the L option, the existing file is deleted first instead of appended to.

RM <partition> - Set this server as the master in the replica ring of the specified replica.

RN - Repair network addresses.

RR <partition> - Repair the specified partition root, check remote ID's in the ring.

RV - Volume object repair

RVT - Volume object repair followed by trustee check of all trustees on the volume


ВНИМАНИЕ! Далее следует описание ключей, которые существенно расширяют возможности утилиты DSREPAIR, однако их применение может повлечь за собой серьезные последствия для вашего Дерева!
Перед использованием таких ключей обратитесь за дополнительными сведениями к документации или к опытным коллегам!


-OT
DSREPAIR have the -OT switch that is used for troubleshooting obituaries.

-XK3
Removing External Reference Links and Recreating them

-A
????

Продолжайте....
Последний раз редактировалось Музалёв Николай 08 апр 2008, 19:25, всего редактировалось 1 раз.
armoracia rusticana (lat.), "блины" и "фиги" всех видов, а также смайлики - крайне не желательны !
Музалёв Николай
 
Сообщения: 3034
Зарегистрирован: 04 июн 2002, 19:58
Откуда: Беларусь. МИНСК.

Re: DSREPAIR и все-все-все

Сообщение Сергей Дубров » 08 апр 2008, 16:31

Музалёв Николай писал(а):Соратники!
Есть предложение: помогите собрать формально-неформальное руководство по ключам модуля DSREPAIR.
Потому как в официальных бумагах как то не очень много, а главное - главных то ключей и нет: даже про ключик сказано вскользь...

Предполагается, что будет полезно собрать наши знания в некую табличку:
- ключик
- чего про него говорят официально
- ваши комментарии на русском: когда ключик нужен, когда вреден, когда просто запрещен.

Кому томно написать, хоть номера тидов укажите.

Спасибо.

Итак:

Ключи
D, L, M, N, P, U, RC, RD, RI, RL, RM, RN, RR, RV, RVT
описаны в документе List of DSREPAIR Switches (ТИД 10017477)

-OT
DSREPAIR have the -OT switch that is used for troubleshooting obituaries.

-XK3
Removing External Reference Links and Recreating them

-A
????

Продолжайте....

-$DU - в 'Advanced Options' -> 'NDS Archive Options' появляются два дополнительных пункта 'Restore NDS from archive (with verification)' и 'Restore NDS from archive (without verification)', которые позволяют ресторить забэкапленную базу NDS/eDir (созданную по 'Create NDS archive'). Ключ "секретный", публичных ТИДов про него не встречал.

-XK2
Manually Removing All Replicas From a Server. http://support.novell.com/cgi-bin/searc ... 026822.htm
Аватара пользователя
Сергей Дубров
 
Сообщения: 2096
Зарегистрирован: 05 июн 2002, 06:07
Откуда: Новосибирск, ин-т ядерной физики СО РАН

Сообщение Al.mcne » 08 апр 2008, 17:57

-a
Loads DSRepair in Advanced mode. Advanced mode enables the following options:

Allows a subordinate replica to be designated a master replica. Warning: All objects within the partition will be lost!

Enables the removal of a server from the replica ring when viewing a server in the replica ring. Warning: This does not remove the replica from the server!

Enables the "Destroy Selected Replica" option on the Replica Options menu. Warning: This operation will attempt to remove the replica in question from the server. To be successful, this operation requires communication with the master replica holder.

Enables the "Declare a new epoch" option on the Global Schema Operations menu. Warning: This operation can propagate invalid schema throughout the entire eDirectory tree. Do not use this unless absolutely necessary.

lEnables the "Reset Local Schema" option on the Global Schema Operations menu. This operation should request schema from another server higher up in the eDirectory tree.

Enables MOVE_INHIBIT and OLD_RDN obituaries to be visible in an External Reference Check operation.

-xk6 -rvt -rd Purge Trustees

Changes the operation of the main menu option 'Check Volumes and Trustees.' Instead of checking the trustee IDs, you are prompted for each volume mounted, and asked if you want to purge ALL trustees from the volume. This includes the ID for the volume object that the volume is attached to. This is useful if you are moving a volume from one server to another. After the volume is moved to the new server, you can restore trustee IDs using an SMS restore. This is a NetWare-only switch and DOES NOT work on NSS volumes.

-xk8 -rd Purge the backlink attribute

Marks the first backlink attribute non-present and purges the rest. This is done ONLY on a master replica.

Warning: This is a very dangerous switch. The backlink attributes keep track of all objects that have external reference objects. This information is important for processing obituaries. This switch could break the obituary process if not used correctly.

-xki -rd Remove bindery type 258

Removes bindery type 258 from eDirectory.

Intel boxes used to have a bug that would corrupt this dynamic object. This is an old problem that has not been reported for several years.

-wm -rd Clear WM:RegisteredWorkstation Attributes

Causes DSRepair to automatically purge all WM:RegisteredWorkstation attributes from all objects in the tree. This option can be useful in resolving ZENWorks configuration problems.

-v -rd Ignore API Version checks

Causes DSRepair to ignore API versions during DSRepair checks.

Warning: This is a potentially dangerous switch. The API version is used to determine what to repair on the database. This functionality allows DSREPAIR to run against several different versions of the database. If the API version is ignored, incorrect fixes can occur to the database.

info from LogicSource for eDirectory
Аватара пользователя
Al.mcne
 
Сообщения: 27
Зарегистрирован: 08 апр 2008, 17:40

Сообщение Музалёв Николай » 08 апр 2008, 19:36

2 Сергей Дубров, Al.mcne
Коллеги! Большое спасибо за такое участие в теме.
Вернулся и вставил собствено ТИД с основными ключами - для законченой картины.

Сергей, не сочтите за труд передернуть тему в ГРАБЛИ, я думаю, она уже того заслуживает и будет полезна многим.
Только замените назв. на что-нибудь более академическое, пжлст.

А если кто из коллег пожелает дополнить тему ещё чем интересным - то не стесняйтесь.
armoracia rusticana (lat.), "блины" и "фиги" всех видов, а также смайлики - крайне не желательны !
Музалёв Николай
 
Сообщения: 3034
Зарегистрирован: 04 июн 2002, 19:58
Откуда: Беларусь. МИНСК.

Сообщение Владимир Горяев » 08 апр 2008, 20:48

Сергей Дубров
Ты, ета, так просто секретные ключи не раздавай, хотя сам грешен :) Не приведи... кто-либо понадеется, а после - кирдЫк.
Коллеги! будьте бдительны и внимательны! прежде чем, делайте бекапы традиционными способами!

Ключики и к dstrace заодно не помешало бы б. В граблях кое-что ессь.
Бардак автоматизировать невозможно!!!
_________________
Аватара пользователя
Владимир Горяев
 
Сообщения: 3473
Зарегистрирован: 05 июн 2002, 13:37
Откуда: Смоленск

Сообщение Сергей Дубров » 11 май 2008, 16:03

Владимир Горяев писал(а):Сергей Дубров
Ты, ета, так просто секретные ключи не раздавай, хотя сам грешен :) Не приведи... кто-либо понадеется, а после - кирдЫк.
Коллеги! будьте бдительны и внимательны! прежде чем, делайте бекапы традиционными способами!

Что-то Новел пробило на откровение - в кулсолюшенах выложили статью, описывающую секретный ключик -$DU :):

Restoring eDirectory with Dsrepair -rc and Dsrepair -$du

Понравилось вот это, особенно фраза, выделенная цветом:

"To restore the files backed up with Dsrepair -rc, you need to load DSRepair with the -$DU switch. (That was obvious, right? Gotta love hidden command line options. Years ago I saw a list of all the hidden commands, at that time for Dsrepair. I imagine there are many more now. Anyone have an up to date copy of that, that is allowed to be shared? That would be very useful to have in the public!)"
Аватара пользователя
Сергей Дубров
 
Сообщения: 2096
Зарегистрирован: 05 июн 2002, 06:07
Откуда: Новосибирск, ин-т ядерной физики СО РАН


Вернуться в Грабли

Кто сейчас на конференции

Сейчас этот форум просматривают: Bing [Bot] и гости: 1