Solved

DSRepair Aborted

Posted on 1998-11-24
28
1,905 Views
Last Modified: 2008-03-17
Greetings,

I am not able to connect to my reserve NetWare 4.11 server from my production NetWare 4.11 server ever since there was a power failure last week.

When I run the "Unattended Full Repair" in DSREPAIR on the reserve server (fs1). it showed:

opening temporary file
structure
schema
generating schema cache
repair process aborted
Automated Repair Mode cannot continue since the local database is not open

This same error msg occurred even though I have disconnected the UTP cable from the fs1 server, meaning this server is running standalone.

The server console showed:

Directory Services: Could not open local database, it is inconsistent. Try to correct the error with DSREPAIR.NLM


As I could not map to this fs1 server from the fs production server, how can I extract the server error logs to a diskette ?

Is there a way to correct the problem without destroying any data on this fs1 server ? What about the trustees ?

Would appreciate detailed steps to resolve the above issues

TIA
Daniel
0
Comment
Question by:danfoo
  • 14
  • 14
28 Comments
 
LVL 5

Accepted Solution

by:
aioudine earned 50 total points
ID: 1594165
Seems that youre NDS database files became corrupt
try this
1)  Bring up the server with SERVER -NDB (for no database).
Load DSRepair | Advanced options  menu | Repair local DS database, with Check local references and Rebuild operational schema set  to Yes.
Save the repaired database, then Esc to unlock DS.
Everything is fine if the local database opens without any errors. One or more corrupted objects could have caused the database errors. The local database repair solved the issue.

2) If you are seeing -621 or "Error growing TTS memory tables", type ENABLE TTS at the server console. You will have to do this on every server that is reporting the -621 error.
If the error   reoccurs, load MONITOR | Server parameters | Transaction Tracking | Maximum Transactions =     5000 (or lower if necessary). You can also type SET MAXIMUM TRANSACTIONS = 5000 at the  server console.

3) As a last resort, you may have to remove Directory Services and reinstall the server back into the tree. Once you reinstall, you will have to restore trustee assignments, recreate print queues,  reassign user home directories, and add replicas back onto the server. See TID 2908056 on removing the server object from the tree properly before reinstalling DS.
---------
To extract file from fileserver you may use jcmd.nlm util (I think, it's available at http://www.novelshareware.com)
or using netbasic included in Intranetware
at console type LOAD NETBASIC
type  SHELL
go to the NetBasic Interactive Shell screen
now you may use CD and COPY command
HTH
0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594166
And of couse, you may restore NDS from backup, if made one
0
 

Author Comment

by:danfoo
ID: 1594167
Afer running the "Check local references and Rebuild operational schema set to Yes"

I received the following:

Error Report
DSREPAIR-4.10-015: Could not establish fail access to record manager, error -618
Program execution cannot continue normally

after this another Error Report:

Could not open the Directory Services Database, the repair procedure was not succeeded. Try running the repair again, or uninstall this server from the directory sevices tree and re-install it.
Program execution should continue normally.


The lastline on the server console showed:

Directory Services remain locked, error -618 Process completed.

I could not follow your "Save the repaired database, then Esc to unlock DS". Could you elaborate ?

I used the netbasic tool that you suggested and copied the dsrepair.log to a diskette. Below are the last few statements from dsrepair.log:

/********************************************************************* *******/
Netware 4.1 Directory Services Repair 4.40 , DS 5.73 Log file for server "SAGGIO_FS1" in tree "" Repairing Local Database
Start:  Thursday, November 26, 1998   8:31:31 am Local Time

RECORDS

File "PARTITIO.NDS" pos: 00000050, rec: 00000002 Field 'checksum' was incorrect


File "VALUE.NDS" pos: 00007040, rec: 000001C1
Field 'self' is incorrect, changed from 0000F040 to 00007040 Field 'checksum' was incorrect

Opening temporary files
STRUCTURE
Rebuilding operational schema
SCHEMA

Schema Class Definition, Object ID: 010000AF, RDN: Server removing from rule base #4, rule value 01000087
'rule base 4' field was changed from 00000014 to 00000013
value record 'length' field was changed from 000000B8 to 000000B4


Schema Class Definition, Object ID: 010000B1, RDN: User removing from rule base #4, rule value 01000087
'rule base 4' field was changed from 0000002F to 0000002E
value record 'length' field was changed from 00000150 to 0000014C

Generating Schema Cache
Repair process aborted
Finish:  Thursday, November 26, 1998   8:36:40 am Local Time Total repair time: 0:05:11

0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594168
Well, i assume that you run server with -NDB switch and try repair local database twice
and problemm still exist

You got serious problem -youre NDS database corrupted
You have 3 choices:
1) Restore NDS from backup (As far as I understand, you hav't copy)
2) Remove NDS, reinstall it and reassign trustee
See TID 2908056 on removing the server object from the tree properly before reinstalling DS.
3) You can from a 4.11 server using netbasic look in the _netware directory (ie: cd _netware from the root of the sys: prompt in the shell of netbasic).
Then type "dir *.old" their should be four files entry.old, value.old, block.old, and partitio.old  files.
Check the date and time on the files and see if they are   before of after the problem started with the server, if they are before see how old they are and  decide if you tree information has changed alot since the date on the files. It is recommended  that you not go any futher back than one month. If you decide to have the files restored (any of  the files *.old, *.dib) you will need to call Novell, which will require us to dial in.

0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594169
I think, you may try do the following:
disconnect server from network, rename *.old files to *.nds
and run DSrepair/repair Local DB again. But I never did't before
HTH
0
 

Author Comment

by:danfoo
ID: 1594170
There are 4 files; partitio.old, value.old and block.old. entry.old, they were about a month old.

I am not able to perform the DSrepair/repair Local DB with the the old files; for when I did ren *.old *.nds

error msg showed:

Partitio.old Error Renaming File ! Object Error=-10013 System Error=-1

and the same error msgs go for the rest of the 3 files.

The latest statements in the dsrepair.log showed:

/****************************************************************************/
Netware 4.1 Directory Services Repair 4.40 , DS 5.73
Log file for server "SAGGIO_FS1" in tree ""
Repairing Local Database
Start:  Friday, November 27, 1998   9:37:07 am Local Time

RECORDS

File "PARTITIO.NDS" pos: 00000050, rec: 00000002
Field 'checksum' was incorrect


File "VALUE.NDS" pos: 00007040, rec: 000001C1
Field 'self' is incorrect, changed from 0000F040 to 00007040
Field 'checksum' was incorrect

Opening temporary files
STRUCTURE
Rebuilding operational schema
SCHEMA

Schema Class Definition, Object ID: 010000AF, RDN: Server
removing from rule base #4, rule value 01000087
'rule base 4' field was changed from 00000014 to 00000013
value record 'length' field was changed from 000000B8 to 000000B4


Schema Class Definition, Object ID: 010000B1, RDN: User
removing from rule base #4, rule value 01000087
'rule base 4' field was changed from 0000002F to 0000002E
value record 'length' field was changed from 00000150 to 0000014C

Generating Schema Cache
Repair process aborted
Finish:  Friday, November 27, 1998   9:37:25 am Local Time
Total repair time: 0:00:19



My reserve server NDS tree is not merged with my production fs server tree when it was running fine before the power failure; is TID 2908056 pertain to my environment ?



0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594171
If youre failed server is alone in the tree, you may simply
remove and reinstall NDS (of couse users and rtustee will be lost)

BTW Why you named it reserve if it's not merged with main Tree?
0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594172
TID 2908056 is about the following:
when you remove NDS from server, corresponding Server and volume object remain
exist in tree. In this case when you will try to install server with same name you will be erred
So in general way, when you remove NDS from server, you should also remove Server and volume object from tree
0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594173
Also I strongly suggest you ascquire SCSI Tape backup device
and perform REGULAR NDS&data backup

I've seen too many customers whos lost a lot of data, time and money
(even if they have RAID5+Smartes UPS+good SysAdmin)
0
 

Author Comment

by:danfoo
ID: 1594174
I use the reserve server to backup data from the production server on a scheduled nightly basis using normal DOS copy. However, the production server has ARCserve 6 installed with a SCSI HP2000 internal tape drive.

The reserve server is a normal Fujitsu PC which is not designed as a server. No one login to there except MIS staff. I used it to store some of the installation files there as the production server has only 2GB HD space. I have to keep check daily that the   server space does not fall below the 200MB mark (10% of total disk space; else the server will prompt "not enough disk space to uncompress compressed files")

I would keep this Qn open for a while and will definately award you an A for all your help. Looks like I will have to reinstall everything from scratch.

0
 

Author Comment

by:danfoo
ID: 1594175
aioudine,

How do I transfer large number of files from the reserve server to the production server without resorting to the diskette method  (netbasic tool) that I used previously ? What software to use, laplink cable ? I want to backup some of those files before I do a reinstallation of the reserve server; how do I erase the NetWare partition ? Boot to C drive and use fdisk to erase the non-DOS NetWare partition ?

0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594176
!!!!! You don't need to reinstall full system or recreate volumes !!!!
Youre volumes and files is OK

All that you need is
1) at console type load install
2) Goto "Directory options" and press "Remove Directory Servises from this server"
3) Press <ENTER> after warning message and NDS will be removed
4) Goto "Directory options" and press "Install Directory Services onto this server"
You will be promted for tree name, context, admin password (same way as in normal
instalation)
5) Install license in "License options" if you have one for this server

During this procedure you will reinstall NDS only, all files will be unchaged on volumes
Only trustee will be lost!

After this login to server as admin, and do what you whant: copy fuiles, assifn trustee


HTH



0
 

Author Comment

by:danfoo
ID: 1594177
Upon excuting step 2, server console showed this msg:

An attempt to remove Directory Services failed. Error code: -136. (INSTALL-4.11-463).
Press <Enter> to continue

Pls advise

0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594178
1) start server
2) type load netbasic
3) type unload ds
4) type shell
5) goto netbasic shell
6) type in shell ren _netware 111
7) type dir _netware (if everything OK you should get Not_found error)
-------
8)reboot server as normal
9) load install
10) Goto "Directory options" and press "Install Directory Services onto this server"
      You will be promted for tree name, context, admin password (same way as in normal
      instalation)
11) Install license in "License options" if you have one for this server
run dsrepair (Full unnatended)


PS I'll be online next 1,5 hour

0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:danfoo
ID: 1594179
It is saturday today. I will try out your suggested steps when I get back to work on Monday. Hopefully I will get this reserve server up and running before I go on my leave from 10 dec to 20 dec. If not, this Qn will remain open for more than 10 days  cos' I know that I will have tons of work when I'm come back from my vacation.

Thank you very much for all your step by step guidance.

0
 

Author Comment

by:danfoo
ID: 1594180
After exceuting step 7, I could see the directory of SYS:\_NETWARE

I still got the same "Error code: -136. (INSTALL-4.11-463)" when I tried to remove the "Drectory Services from this server" after I had restarted the server as you had suggested.

0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594181
1)  Did you see _NETWARE after rebooting (it's normal)
 or after using "ren" command (it's wrong)?
Directory _NEWARE creating automaticaly when you reboot
2)  Did you receive any error message during step 5?

2) Using procedure described above you don't need to "Remove NDS" !
Just use "Install Directory Services onto this server" after rebooting


Also
may be I was not clear enough
---- revised---
5) goto netbasic shell
6) type in shell the following command:
"ren _netware 111"
this command renamed directory _NETWARE to 111
7) type
"dir _netware"
 (if everything OK you should get Not_found error)
If not worked checkout that you have sys:\netbasic\util\ren.bas


------------- ren.bas -----------
'(C) Copyright 1993-1996 HITECSOFT CORP. All rights reserved.
' Add all include files and define statements here

Sub Main
Local("Directory","Dest","DirO","FullName","DestDirO","DestFullName","Ch","DirName")

If (SYS:Param:Count != 3)
   NewLine
   Print("Usage: ",SYS:Param(1)," [File_Source] [File_Dest]")
   Return
EndIf
Directory = SYS:Param(2)
Dest = SYS:Param(3)

' Parse user input
DirO = DIR:Object(Directory)
FullName = DirO.Volume.Name + DirO.Path + DirO.File.Name
If (DirO.File.Extension != "")
   FullName = FullName + "." + DirO.File.Extension
EndIf
DestDirO = DIR:Object(Dest)
DestFullName = DestDirO.Volume.Name + DestDirO.Path + DestDirO.File.Name
If (DestDirO.File.Extension != "")
   DestFullName = DestFullName + "." + DestDirO.File.Extension
EndIf

' Check for wild card; if there is any ask ?
If ((DirO.File.Name = "*") | (Diro.File.Extension = "*"))
   Print("Rename ",FullName,"  to ",DestFullName," ? (Y/N)")
   Ch = FIO:Read:String()
   Ch = STR:Trim:All(Ch)
   Ch = STR:Upper(Ch)
   If (Ch != "Y")
      Quit
   EndIf
EndIf
DirO = DIR:First(FullName)
If (DirO.Error != 0)
   Print("File not found!"); NewLine
   Quit
EndIf
I = 1
Do While(DirO.Error = 0)
   'Cannot change directory items while scanning the dir
   'so save them and then rename them all
   DirName(I) = DirO
   I = I + 1
   DirO = DIR:Next(DirO)
EndDo
If (I = 1)
   Print("File not found!"); NewLine
   Quit
EndIf
J = 1
Do While(I > J)
   DirO = DirName(J)
   ' If it is * do not change name
   File = DirO.Name + "." + DirO.extension
   If (DestDirO.File.Name != "*")
      DirO.Name = DestDirO.File.Name
   EndIf
   If (DestDirO.File.Extension != "*")
      DirO.Extension = DestDirO.File.Extension
   EndIf
   DirO = DIR:File:Set(DirO)
   If (DirO.Error != 0)
      Print(File," Error Renaming File !")
      NewLine
      Print("Object Error = ",DirO.Error,"  System Error = ",SYS:Error:Number)
      NewLine
      Return
   EndIf
   J = J + 1
EndDo
End Sub

--end ren.bas-----------

0
 

Author Comment

by:danfoo
ID: 1594182
When I restarted the server, I can only see the saggio_fs: prompt
 from the system console (this is the usual prompt when the server is running fine). After I have loaded netbasic, I can goto the netbasic shell and cd _netware from the sys:\> prompt, ie the prompt become sys:\_netware\>

I did not receive any error msg during step 5


When I run "Install Directory Services Onto this server", I get this prompt:

.However, if you must reinstall, first remove Directory Servces with Volume mounted, then repeat this step...

I was not able to continue from here to reinstall Directory Services.


I still get the same error msg that I encountered before when I tried to "Remove Directory Services from this server"

0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594183
repeat step 1-6
then
1) type "unload ds"
2) type "load ds"
3) Try install NDS

If not help
1) send message displyed on console during this steps
2) type in shell the following command: (do not use any CD)
    "ren _netware 111"
    "dir _netware"
and send me output (if dir give large output send last 3 entries)


PS may be you have TelnetD running? (Rconsole over telnet)
If yes you may send me IP adress/password to admin@prometeus.nsc.ru and
I will look to server myself
0
 

Author Comment

by:danfoo
ID: 1594184
I'm at home, will try your suggestion tomorrow, u mean the 6 steps are:

1) start server
2) type load netbasic
3) type unload ds
4) type shell
5) goto netbasic shell
6) type in shell ren _netware 111

Where can I get this TelNetD thing ? How do I set it up ? How do I connect the server to the outside world ? I used to dial in to my admin PC with pcanywhere and use nwadmin to do a rconsole to the production server. But now this method will not work as I am not able to login to the reserve fs1 server.

0
 

Author Comment

by:danfoo
ID: 1594185
output of step 1:

Module DS.NLM unloaded

output of step 2:

loading module DS.NLM
..
..
..

Directory Services: Could not open local database, it is inconsistant. Try to correct the error with DSREPAIR.NLM

If not help, step 2 output:

SYS:\>ren _netware 111
<SAGGIO_FS1>
SYS:\>dir _netware
Directory of SYS:\_NETWARE
0 Dir(s).   0 File(s).   0 Bytes Used.

0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594186
1) TelNetD.NLM is a module which perform same task as an Rconsole
but work over tcp/ip using telnet protocol
It's included in Intranetware and placed on server when you install same
TCP/IP related packages like NWIP, UNIX print services, Border manager etc

2) About pcANYWHERE, you may place rconsole files on host mashine's harddisk
and connect to server from home

3) About our big problem:
a) Everything look right, so now when you tried to install NDS you have any Error? Which?

b) Also I produce similar errors, when I backup NDS using DSMAIN.NLM and forgot
to restore it back
Take a look an directory sys:\system for file backup.ds Do you have this file?

c) Last hope solutions:
Load INSTALL.NLM and rename volumes (say SYS to SYSOLD)
attach this disk to working server
Now you may maunt old volumes and acces it using admin account
(just using "map m:=sysold:)



0
 

Author Comment

by:danfoo
ID: 1594187
3a) I was not able to install NDS as it prompted me to remove NDS first.

3b) U mean I can just rename backup.ds to the original ? What file name ? I thought restoring NDS database is not that simple. I am not at the server now and pardon me for my ignorance.

3c) Pls elaborate on how to "attach this disk to working server"
Working server is my production server ?

0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594188
4a) Can't figured out why my solution wont work ;-(

4b) Did you found this file?
if answer "Yes I found it in sys:\system" then at console type
load dsmaint
Goto Restore NDS after hardware upgrade, press enter, say Yes to Replace existed NDS
restart and see result

4c) You may attach any netware drive to simmilar server
and load required drivers, you will have full access to data, using admin account
of second server

2 possible scenario:
before enything below, on bad server load install and rename volumes
(you will unable mount 2 volumes with same name - at least both server
have volumes named SYS:)
---------------------
Scenario I:
 If you have PC with free disk space and enough memory
           Recommended becouse More safe
         1) install Netware on this mashine (as usial)
         2) Down them and switch off
         3) Connect old(bad) drive to as secondary drive to primary controller or  
         to secondary controller
         4)Start new server (if necessary load disk driver for secondary controller)
         5) type at console "mount All"
            all volumes should be mount (including old)
          6) Attach to new and production server and copy files
         
           
------------
Scenario II:
          1) backup production server to tape
         2) Down them and switch off
         2) Connect old(bad) drive to as secondary drive to primary controller or  
         to secondary controller
         4)Start server (if necessary load disk driver for secondary controller)
         5) type at console "mount All"
            all volumes should be mount (including old)
         6)  connect to production server
          now all volumes should be assesible using map command at workstation
------------------
If you need more help tell me whitch Controller you have, name of Volumes
better post here startup.ncf of both server


0
 
LVL 5

Expert Comment

by:aioudine
ID: 1594189
Scenario 0 (on reserve server)

danfoo I create a simple backup.ds using dsmaint.nlm
(tree named "backup", admin password "backup")

download this file from http://techware.prometeus.nsc.ru/danfoo
(ndscopy.zip, contain backup.nds and dsmaint.nlm)
extract files and copy them to sys:\system

(using nebasic shell of GUI filer.nlm)
at console load dsmaint.nlm
and use "restore NDS after hardware upgrade" options
Press "Continue" to promt "NDS alredy exist, continue-abort"

reboot server
Now you should be able login to tree  "backup" using admin.backup account
and "backup" password

HTH

0
 

Author Comment

by:danfoo
ID: 1594190
aioudine, many thanks for the detailed responses. Just came back from a long vacation. I will close this Qn and will respond to this Qn again when I have time to look into this reserve server.


0
 

Author Comment

by:danfoo
ID: 1594191
I coudn't find the file dsmaint.nlm in sys:\system folder

so did not not proceed to the next step.

Happy New Year, aioudine !



0
 

Author Comment

by:danfoo
ID: 1594192
Pls advise me what to do next, I would like to resolve this issue when I get back to work next week.

I was not able to get into http://techware.prometeus.nsc.ru/danfoo
error msg prompted:
ERROR 312 -- Cannot connect to the server



0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now