• Also testrun on 8.5 Win2003

    By Sascha Troll 1 decade ago

    When I start it for the log.nsf it will look like the database is not defragmented.



    lo dominodefrag log.nsf



    30.06.2009 01:47:53 DominoDefrag: v1.4 (9 May 2009)

    30.06.2009 01:47:53 DominoDefrag: Initializing…

    30.06.2009 01:47:53 DominoDefrag: Running on Windows 5.2.3790.Service Pack 2

    30.06.2009 01:47:53 DominoDefrag: Using contig.exe version 1.55

    30.06.2009 01:47:53 DominoDefrag: 32bit version running on 32bit platform

    30.06.2009 01:47:53 DominoDefrag: File -> e:\lotus\domino\data\log.nsf

    30.06.2009 01:47:53 DominoDefrag: Process Full Text Index -> Off

    30.06.2009 01:47:53 DominoDefrag: DominoDefrag_MinuteInterval parameter not found. Task will only run once

    30.06.2009 01:47:53 DominoDefrag: MinuteInterval -> 0

    30.06.2009 01:47:53 DominoDefrag: Initialization complete

    30.06.2009 01:47:54 DominoDefrag: log.nsf Started Defrag

    30.06.2009 01:47:54 DominoDefrag: log.nsf Completed Defrag

    30.06.2009 01:47:54 DominoDefrag: Termination complete



    But when I check the defrag systemtool it will tell me the log.nsf has 4822 Fragments & 2,40 GB.



    Why is not defragmented ?



    Thanks for sharing this tool !

    Greetings

    Sascha

    • Please post contents of DominoDefrag.log

      By Andrew Luder 1 decade ago

      Hi Sascha,

      can you post the contents of the file "e:\lotus\domino\DominoDefrag.log" after trying to defrag "log.nsf ", so I can see what "contig.exe" is reporting.



      Thanks

      • Log

        By Sascha Troll 1 decade ago

        Hello Andrew,

        I cannot find a log for the dominodefrag on the system. Is it necessary to activate a debugging ?

        • Log

          By Andrew Luder 1 decade ago

          Every time a database is defragged the output from "contig.exe" is written out to a file called "DominoDefrag.log" in the Domino server program directory. Has the server task successfully defragged any other databases?



          Another point is how much space is left on your E: partition to create a contiguous fragment - e.g more than 2.4 Gb free in the case of "log.nsf".

          • By Sascha Troll 1 decade ago

            The E drive has 250 GB free space.



            I started a dominodefrag again:

            lo dominodefrag log.nsf



            30.06.2009 15:39:11 DominoDefrag: v1.4 (9 May 2009)

            30.06.2009 15:39:11 DominoDefrag: Initializing…

            30.06.2009 15:39:11 DominoDefrag: Running on Windows 5.2.3790.Service Pack 2

            30.06.2009 15:39:11 DominoDefrag: Using contig.exe version 1.55

            30.06.2009 15:39:11 DominoDefrag: 32bit version running on 32bit platform

            30.06.2009 15:39:11 DominoDefrag: File -> e:\lotus\domino\data\log.nsf

            30.06.2009 15:39:11 DominoDefrag: Process Full Text Index -> Off

            30.06.2009 15:39:11 DominoDefrag: DominoDefrag_MinuteInterval parameter not found. Task will only run once

            30.06.2009 15:39:11 DominoDefrag: MinuteInterval -> 0

            30.06.2009 15:39:11 DominoDefrag: Initialization complete

            30.06.2009 15:39:12 DominoDefrag: log.nsf Started Defrag

            30.06.2009 15:39:12 DominoDefrag: log.nsf Completed Defrag

            30.06.2009 15:39:12 DominoDefrag: Termination complete



            Will the log only be created when a databases was defragmented ?



            Thanks

            Sascha

            • Defrag different databases such as help

              By Andrew Luder 1 decade ago

              On a different tact what happens you when defrag the help subdirectory nsf files? If it's already defragged you can go "load compact -c help" to produce fragmentation and then use "load dominodefrag help".



              If there is a negative result, my other thinking is the Lotus Domino service generally uses the Windows 2003 server system account permissions for access to Domino program and data directory and files. The system account permissions should be Full Control to the Domino program and data directory and files. Does your server differ from this?

              • By Sascha Troll 1 decade ago

                lo compact -c help



                01.07.2009 13:01:36 Informational, database design compression is enabled in database help\help85_admin.nsf.

                01.07.2009 13:01:36 Informational, document data compression is enabled in database help\help85_admin.nsf.

                01.07.2009 13:01:36 Informational, LZ1 is enabled in database help\help85_admin.nsf.

                01.07.2009 13:01:36 Compacting help\help85_admin.nsf (IBM Lotus Domino 8.5 Administrator Help)

                01.07.2009 13:01:52 Recovery Manager: Assigning new DBIID for E:\lotus\domino\data\help\help85_admin.nsf (need new backup for media recovery).

                01.07.2009 13:01:53 Compacted help\help85_admin.nsf, 7424K bytes recovered (43%)

                01.07.2009 13:01:53 Informational, database design compression is enabled in database help\help85_client.nsf.

                01.07.2009 13:01:53 Informational, document data compression is enabled in database help\help85_client.nsf.

                01.07.2009 13:01:53 Informational, LZ1 is enabled in database help\help85_client.nsf.

                01.07.2009 13:01:53 Compacting help\help85_client.nsf (IBM Lotus Notes 8.5 Help (basic configuration))

                01.07.2009 13:01:59 Recovery Manager: Assigning new DBIID for E:\lotus\domino\data\help\help85_client.nsf (need new backup for media recovery).

                01.07.2009 13:01:59 Compacted help\help85_client.nsf, 4608K bytes recovered (53%)

                01.07.2009 13:01:59 Informational, database design compression is enabled in database help\help85_designer.nsf.

                01.07.2009 13:01:59 Informational, document data compression is enabled in database help\help85_designer.nsf.

                01.07.2009 13:01:59 Informational, LZ1 is enabled in database help\help85_designer.nsf.

                01.07.2009 13:01:59 Compacting help\help85_designer.nsf (Lotus Domino Designer 8.5 Help)

                01.07.2009 13:02:38 Recovery Manager: Assigning new DBIID for E:\lotus\domino\data\help\help85_designer.nsf (need new backup for media recovery).

                01.07.2009 13:02:38 Compacted help\help85_designer.nsf, 18432K bytes recovered (42%)

                01.07.2009 13:02:38 Informational, LZ1 is enabled in database help\leidoc.nsf.

                01.07.2009 13:02:38 Compacting help\leidoc.nsf (LEI Activities and User Guide)

                01.07.2009 13:02:43 Recovery Manager: Assigning new DBIID for E:\lotus\domino\data\help\leidoc.nsf (need new backup for media recovery).

                01.07.2009 13:02:44 Compacted help\leidoc.nsf, increased by 256K bytes (5%)

                01.07.2009 13:02:44 Informational, LZ1 is enabled in database help\leiig.nsf.

                01.07.2009 13:02:44 Compacting help\leiig.nsf (LEI Installation Guide)

                01.07.2009 13:02:44 Recovery Manager: Assigning new DBIID for E:\lotus\domino\data\help\leiig.nsf (need new backup for media recovery).

                01.07.2009 13:02:45 Compacted help\leiig.nsf, 36K bytes recovered (3%)

                01.07.2009 13:02:46 Database compactor process shutdown

                lo dominodefrag help



                01.07.2009 13:02:54 DominoDefrag: v1.4 (9 May 2009)

                01.07.2009 13:02:54 DominoDefrag: Initializing…

                01.07.2009 13:02:54 DominoDefrag: Running on Windows 5.2.3790.Service Pack 2

                01.07.2009 13:02:54 DominoDefrag: Using contig.exe version 1.55

                01.07.2009 13:02:54 DominoDefrag: 32bit version running on 32bit platform

                01.07.2009 13:02:54 DominoDefrag: Directory -> e:\lotus\domino\data\help

                01.07.2009 13:02:54 DominoDefrag: Process Full Text Index -> Off

                01.07.2009 13:02:54 DominoDefrag: DominoDefrag_MinuteInterval parameter not found. Task will only run once

                01.07.2009 13:02:54 DominoDefrag: MinuteInterval -> 0

                01.07.2009 13:02:54 DominoDefrag: Initialization complete

                01.07.2009 13:02:55 DominoDefrag: help\help85_admin.nsf Started Defrag

                01.07.2009 13:02:55 DominoDefrag: help\help85_admin.nsf Completed Defrag

                01.07.2009 13:02:55 DominoDefrag: help\help85_client.nsf Started Defrag

                01.07.2009 13:02:55 DominoDefrag: help\help85_client.nsf Completed Defrag

                01.07.2009 13:02:55 DominoDefrag: help\help85_designer.nsf Started Defrag

                01.07.2009 13:02:55 DominoDefrag: help\help85_designer.nsf Completed Defrag

                01.07.2009 13:02:55 DominoDefrag: help\leidoc.nsf Started Defrag

                01.07.2009 13:02:55 DominoDefrag: help\leidoc.nsf Completed Defrag

                01.07.2009 13:02:55 DominoDefrag: help\leiig.nsf Started Defrag

                01.07.2009 13:02:55 DominoDefrag: help\leiig.nsf Completed Defrag

                01.07.2009 13:02:55 DominoDefrag: Termination complete



                Server runs as service with log on as LocalSystem.



                On my own testserver (Windows 2008 Domino 8.5.1CD6) it works fine, but on the productive server (Windows 2003 RS SP2, Domino 8.5 HF4) the task just runs through as seen above.

                • try contig.exe from command prompt

                  By Andrew Luder 1 decade ago

                  Interesting situation you've got - works on your test but not your production server…



                  With the Domino server running, run up a separate command prompt (cmd.exe) on your production server, change to the Domino program directory and run the following command:



                  "contig -v -s e:\lotus\domino\data\help"



                  If this works (it's using your account privleges and not the local system account), I'd suggest it's a permissions issue with the local system account on your production server. If it doesn't I'm out of ideas, sorry :-(






                  • License agreement ?

                    By Sascha Troll 1 decade ago

                    Hello Andrew,



                    I started as told and got the license agreement window "C License agreement" directly after entering the command, after "Agree" it was running and also processed the files in the help folder then.

                    Can this be a problem when running as localSystem ?



                    I did a compact -c after that again and then a dominodefrag and got the some issue like before.

                    System has fullcontrol to the domino data folder incl. all databases.

                    Is there a way to add the option/accepteula when starting dominodefrag ?



                    E:\lotus\domino>Contig.exe -v -s e:\lotus\domino\data\help



                    Contig v1.55 - Makes files contiguous

                    Copyright © 1998-2007 Mark Russinovich

                    Sysinternals - www.sysinternals.com



                    ————————

                    Processing e:\lotus\domino\data\help\dummy.txt:

                    Scanning file…

                    e:\lotus\domino\data\help\dummy.txt is already in 1 fragment.

                    ————————

                    Processing e:\lotus\domino\data\help\help85_admin.nsf:

                    Scanning file…

                    Scanning disk…

                    File is 624 physical clusters in length.

                    File is in 2 fragments.



                    Found a free disk block at 316313 of length 752 for entire file.

                    Moving 624 clusters at file offset cluster 0 to disk cluster 316313

                    File size: 10223616 bytes

                    Fragments before: 2

                    Fragments after : 1

                    ————————

                    Processing e:\lotus\domino\data\help\help85_client.nsf:

                    Scanning file…

                    e:\lotus\domino\data\help\help85_client.nsf is already in 1 fragment.

                    ————————

                    Processing e:\lotus\domino\data\help\help85_designer.nsf:

                    Scanning file…

                    Scanning disk…

                    File is 1600 physical clusters in length.

                    File is in 23 fragments.



                    Found a free disk block at 439230 of length 8542 for entire file.

                    Moving 1600 clusters at file offset cluster 0 to disk cluster 439230

                    File size: 26214400 bytes

                    Fragments before: 23

                    Fragments after : 1

                    ————————

                    Processing e:\lotus\domino\data\help\leidoc.nsf:

                    Scanning file…

                    Scanning disk…

                    File is 336 physical clusters in length.

                    File is in 2 fragments.



                    Found a free disk block at 316937 of length 351 for entire file.

                    Moving 336 clusters at file offset cluster 0 to disk cluster 316937

                    File size: 5505024 bytes

                    Fragments before: 2

                    Fragments after : 1

                    ————————

                    Processing e:\lotus\domino\data\help\leiig.nsf:

                    Scanning file…

                    e:\lotus\domino\data\help\leiig.nsf is already in 1 fragment.

                    ————————

                    Processing e:\lotus\domino\data\help\memcheck.html:

                    Scanning file…

                    e:\lotus\domino\data\help\memcheck.html is already in 1 fragment.

                    ————————

                    Processing e:\lotus\domino\data\help\nsdcmds.html:

                    Scanning file…

                    e:\lotus\domino\data\help\nsdcmds.html is already in 1 fragment.

                    ————————

                    Processing e:\lotus\domino\data\help\nsddoc.html:

                    Scanning file…

                    e:\lotus\domino\data\help\nsddoc.html is already in 1 fragment.

                    ————————

                    Processing e:\lotus\domino\data\help\nsdini.html:

                    Scanning file…

                    e:\lotus\domino\data\help\nsdini.html is already in 1 fragment.

                    ————————

                    Processing e:\lotus\domino\data\help\nsdopts.html:

                    Scanning file…

                    Scanning disk…

                    File is 4 physical clusters in length.

                    File is in 2 fragments.



                    Found a free disk block at 327362 of length 5 for entire file.

                    Moving 4 clusters at file offset cluster 0 to disk cluster 327362

                    File size: 64313 bytes

                    Fragments before: 2

                    Fragments after : 1

                    ————————

                    Processing e:\lotus\domino\data\help\readme.html:

                    Scanning file…

                    e:\lotus\domino\data\help\readme.html is already in 1 fragment.

                    ————————

                    Summary:

                     Number of files processed   : 12<br/>
                     Number of files defragmented: 4<br/>
                     Average fragmentation before: 3.08333 frags/file<br/>
                     Average fragmentation after : 1 frags/file
                    
                    • See server registry key

                      By Andrew Luder 1 decade ago

                      DominoDefrag writes EulaAccepted into the server's registry key "HKEY_USERS.DEFAULT\Software\Sysinternals\C" on first startup for the Local System account.

                      • Not in HKEY_USERS but...

                        By Sascha Troll 1 decade ago

                        in HKEY_Current_User.

                        I added the key now manually, but wont help for the moment.

                        On my testserver its already set correctly. I did not a restart of Domino on both system.

                        I will restart the system were its not working tonight to see if this will help.



                        Thanks for your info !

                        • still not working

                          By Sascha Troll 1 decade ago

                          Hello Andrew.



                          I set the keys and restarted the whole machine.



                          Tried again and no effect. Runs through if there is no fragementation.

                          Changed the Service to run with privileges and its the same.

                          I also cant see the problem. This looks similar the effect in the other discussion thread ?

                          Is there a problem when using Windows 2003 ?



                          On my testsystem Windows 2008, i can also see the additional line

                          Already Defragmented.



                          Sad, I thought this would bring me more performance.

                          • Reproduced your problem and possible work-around

                            By Andrew Luder 1 decade ago

                            DominoDefrag calls contig with the following command "contig.exe -v e:\lotus\domino\data\log.nsf > DominoDefrag.log" and the server task reads the contig output from the "e:\lotus\domino\DominoDefrag.log" file and reports it to the Domino server console.



                            In my case I simply created an empty text file using Notepad and saved it as "e:\lotus\domino\DominoDefrag.log". I then made it read-only and ran the command "load DominoDefrag log.nsf" with the following results:



                            02/07/2009 01:33:48 PM DominoDefrag: log.nsf Started Defrag

                            02/07/2009 01:33:48 PM DominoDefrag: log.nsf Completed Defrag



                            Basically, contig failed to defrag "log.nsf" because the command "contig -v e:\lotus\domino\data\log.nsf" didn't have write permissions to pipe the output into "e:\lotus\domino\DominoDefrag.log".



                            So in your case I'd simply suggest the following as a work-a-round (as it seems your server's Local System account doesn't have permissions to create "e:\lotus\domino\DominoDefrag.log"):


                            • Create an empty text file using Notepad and save it as "e:\lotus\domino\DominoDefrag.log" with your account privileges and check the SYSTEM security permissions on it
                            • From the Domino server console, run the command "load DominoDefrag log.nsf" and check output in Domino console and "e:\lotus\domino\DominoDefrag.log"



                              Hope this helps
                            • created file...

                              By Sascha Troll 1 decade ago

                              … and set the permissions. I also set permissions to everyone to fullaccess.

                              Sorry, no changes.

                              File will stay empty and console output still is the same:

                              lo dominodefrag log.nsf



                              02.07.2009 13:05:53 DominoDefrag: v1.4 (9 May 2009)

                              02.07.2009 13:05:53 DominoDefrag: Initializing…

                              02.07.2009 13:05:53 DominoDefrag: Running on Windows 5.2.3790.Service Pack 2

                              02.07.2009 13:05:53 DominoDefrag: Using contig.exe version 1.55

                              02.07.2009 13:05:53 DominoDefrag: 32bit version running on 32bit platform

                              02.07.2009 13:05:53 DominoDefrag: File -> e:\lotus\domino\data\log.nsf

                              02.07.2009 13:05:53 DominoDefrag: Process Full Text Index -> Off

                              02.07.2009 13:05:53 DominoDefrag: DominoDefrag_MinuteInterval parameter not found. Task will only run once

                              02.07.2009 13:05:53 DominoDefrag: MinuteInterval -> 0

                              02.07.2009 13:05:53 DominoDefrag: Initialization complete

                              02.07.2009 13:05:54 DominoDefrag: log.nsf Started Defrag

                              02.07.2009 13:05:54 DominoDefrag: log.nsf Completed Defrag

                              02.07.2009 13:05:54 DominoDefrag: Termination complete

                              • version 1.5

                                By Andrew Luder 1 decade ago

                                I have DominoDefrag running successfully on over 100 Windows 2003 R2 SP2 servers. It appears the Local System account (seen as SYSTEM under security permissions) does not have permissions to create the "DominoDefrag.log" file in the Domino program directory on your server . If output can't be redirected to this file then contig doesn't execute from the DominoDefrag servertask call.



                                What I'll do in the next version (1.5) is create the "DominoDefrag.log" file in the server's %TEMP% directory rather than the Domino program directory. Hope to release version 1.5 on 11 Jul 09.

                                • Thanks...

                                  By Sascha Troll 1 decade ago

                                  I dont understand why System Account has no sufficient rights to this folder on the servers, but lets

                                  see if the next build will fix it. Thanks for your work !