• Still not working with 1.5

    By Sascha Troll 1 decade ago

    lo dominodefrag help



    12.07.2009 02:02:20 DominoDefrag: v1.5 (11 Jul 2009)

    12.07.2009 02:02:20 DominoDefrag: Initializing…

    12.07.2009 02:02:20 DominoDefrag: Running on Windows 5.2.3790.Service Pack 2

    12.07.2009 02:02:20 DominoDefrag: Using contig.exe version 1.55

    12.07.2009 02:02:20 DominoDefrag: 32bit version running on 32bit platform

    12.07.2009 02:02:20 DominoDefrag: Directory -> e:\lotus\domino\data\help

    12.07.2009 02:02:20 DominoDefrag: Process Full Text Index -> Off

    12.07.2009 02:02:20 DominoDefrag: DominoDefrag_MinuteInterval parameter not found. Task will only run once

    12.07.2009 02:02:20 DominoDefrag: Minute Interval -> 0

    12.07.2009 02:02:20 DominoDefrag: DominoDefrag_StartPoint not found. Defaulting to 2

    12.07.2009 02:02:20 DominoDefrag: Start Point -> 2

    12.07.2009 02:02:20 DominoDefrag: Verbose Logging -> On

    12.07.2009 02:02:20 DominoDefrag: Initialization complete

    12.07.2009 02:02:21 DominoDefrag: help\help85_admin.nsf Started Defrag

    12.07.2009 02:02:21 DominoDefrag: help\help85_admin.nsf Completed Defrag

    12.07.2009 02:02:21 DominoDefrag: help\help85_client.nsf Started Defrag

    12.07.2009 02:02:21 DominoDefrag: help\help85_client.nsf Completed Defrag

    12.07.2009 02:02:21 DominoDefrag: help\help85_designer.nsf Started Defrag

    12.07.2009 02:02:21 DominoDefrag: help\help85_designer.nsf Completed Defrag

    12.07.2009 02:02:21 DominoDefrag: help\leidoc.nsf Started Defrag

    12.07.2009 02:02:21 DominoDefrag: help\leidoc.nsf Completed Defrag

    12.07.2009 02:02:21 DominoDefrag: help\leiig.nsf Started Defrag

    12.07.2009 02:02:21 DominoDefrag: help\leiig.nsf Completed Defrag

    12.07.2009 02:02:21 DominoDefrag: Total databases to be processed -> 5

    12.07.2009 02:02:21 DominoDefrag: Total databases defragged -> 5

    12.07.2009 02:02:21 DominoDefrag: Total databases already defragged -> 0

    12.07.2009 02:02:21 DominoDefrag: Total databases below start point -> 0

    12.07.2009 02:02:21 DominoDefrag: Termination complete



    —–

    I already did a compact -c before testing the above.

    Running from command prompt is again fine.

    The log will be created in the temp folder but its empty.



    I had so much hope in this release.

    Is there any impact when running the tool via cmd when the server is running or is the behaviour the same ?



    Sascha

    • try these

      By Andrew Luder 1 decade ago

      Well at least I now know it's not a permission problem because the "DominoDefrag.log" is created in your %temp% directory (I'll assume it's c:\temp for the tests below). It might be path issues. Try these tests from your Run prompt:



      cmd.exe/c contig.exe -v d:\lotus\domino\data\log.nsf/accepteula > c:\temp\DominoDefrag.log



      If it doesn't work try this:



      cmd.exe/c d:\lotus\domino\contig.exe -v d:\lotus\domino\data\log.nsf/accepteula > c:\temp\DominoDefrag.log



      If it doesn't work try this:

          <br/>
      

      c:\windows\system32\cmd.exe/c d:\lotus\domino\contig.exe -v d:\lotus\domino\data\log.nsf/accepteula > c:\temp\DominoDefrag.log

              <br/>
      

      Please tell me if none or which one(s) worked

      • downloaded again and tried...

        By Sascha Troll 1 decade ago

        Here are the results:

        I have set the Path to Lotus Domino Program and restarted the server, then contig.exe was

        working in both cmd cases.

        But there is now the "error" in console when running dominodefrag log.nsf.

        Its the same when I enter: lo dominodefrag (all databases will show the error)



        13.07.2009 00:44:13 DominoDefrag: Total databases to be processed -> 357

        13.07.2009 00:44:13 DominoDefrag: Total databases defragged -> 0

        13.07.2009 00:44:13 DominoDefrag: Total databases already defragged -> 0

        13.07.2009 00:44:13 DominoDefrag: Total databases below start point -> 0

        13.07.2009 00:44:13 DominoDefrag: Termination complete





        lo dominodefrag log.nsf



        13.07.2009 00:28:08 DominoDefrag: v1.5 (11 Jul 2009)

        13.07.2009 00:28:08 DominoDefrag: Initializing…

        13.07.2009 00:28:08 DominoDefrag: Running on Windows 5.2.3790.Service Pack 2

        13.07.2009 00:28:08 DominoDefrag: Using contig.exe version 1.55

        13.07.2009 00:28:08 DominoDefrag: 32bit version running on 32bit platform

        13.07.2009 00:28:08 DominoDefrag: File -> e:\lotus\domino\data\log.nsf

        13.07.2009 00:28:08 DominoDefrag: Process Full Text Index -> Off

        13.07.2009 00:28:08 DominoDefrag: DominoDefrag_MinuteInterval parameter not found. Task

        will only run once

        13.07.2009 00:28:08 DominoDefrag: Minute Interval -> 0

        13.07.2009 00:28:08 DominoDefrag: DominoDefrag_StartPoint not found. Defaulting to 2

        13.07.2009 00:28:08 DominoDefrag: Start Point -> 2

        13.07.2009 00:28:08 DominoDefrag: Verbose Logging -> On

        13.07.2009 00:28:08 DominoDefrag: Initialization complete

        13.07.2009 00:28:09 DominoDefrag: log.nsf problem executing command

        c:\windows\system32\cmd.exe/c e:\lotus\domino\contig.exe -a "E:\lotus\domino\data\log.nsf"

        /accepteula > C:\WINDOWS\TEMP\DominoDefrag.log

        13.07.2009 00:28:09 DominoDefrag: Total databases to be processed -> 1

        13.07.2009 00:28:09 DominoDefrag: Total databases defragged -> 0

        13.07.2009 00:28:09 DominoDefrag: Total databases already defragged -> 0

        13.07.2009 00:28:09 DominoDefrag: Total databases below start point -> 0

        13.07.2009 00:28:09 DominoDefrag: Termination complete



        Log will be created but its empty.



        —————–

        cmd.exe/c contig.exe -v e:\lotus\domino\data\log.nsf/accepteula >

        c:\windows\temp\DominoDefrag.log



        content of lDominoDefrag.log:



        Contig v1.55 - Makes files contiguous

        Copyright © 1998-2007 Mark Russinovich

        Sysinternals - www.sysinternals.com



        ————————

        Processing e:\lotus\domino\data\log.nsf:

        Scanning file…

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

        ————————

        Summary:

         Number of files processed   : 1<br/>
         Number of files defragmented: 0<br/>
         All files were either already defragmented or unable to be defragmented.<br/>
        



        ———————–



        cmd.exe/c e:\lotus\domino\contig.exe -v e:\lotus\domino\data\log.nsf/accepteula >

        c:\windows\temp\DominoDefrag.log



        Content of DominoDefrag.log:

        Contig v1.55 - Makes files contiguous

        Copyright © 1998-2007 Mark Russinovich

        Sysinternals - www.sysinternals.com



        ————————

        Processing e:\lotus\domino\data\log.nsf:

        Scanning file…

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

        ————————

        Summary:

         Number of files processed   : 1<br/>
         Number of files defragmented: 0<br/>
         All files were either already defragmented or unable to be defragmented.<br/>
        



        Tried on another server:

        Here the content from dominodefrag.log when starting with this command:

        cmd.exe/c e:\lotus\domino\contig.exe -v e:\lotus\domino\data\log.nsf/accepteula >

        c:\windows\temp\DominoDefrag.log

        (started with lo dominodefrag 2 minutes before on this server did nothing)



        Contig v1.55 - Makes files contiguous

        Copyright © 1998-2007 Mark Russinovich

        Sysinternals - www.sysinternals.com



        ————————

        Processing e:\lotus\domino\data\log.nsf:

        Scanning file…

        Scanning disk…

        File is 4480 physical clusters in length.

        File is in 4 fragments.



        Found a free disk block at 78214 of length 7584 for entire file.

        Moving 4480 clusters at file offset cluster 0 to disk cluster 78214

        File size: 18350080 bytes

        Fragments before: 4

        Fragments after : 1

        ————————

        Summary:

         Number of files processed   : 1<br/>
         Number of files defragmented: 1<br/>
         Average fragmentation before: 4 frags/file<br/>
         Average fragmentation after : 1 frags/file
        
        • Strange

          By Andrew Luder 1 decade ago

          Strange how it works on your test server but not your production servers.



          The DominoDefrag C++ code uses the system function to call in your case



          c:\windows\system32\cmd.exe/c e:\lotus\domino\contig.exe -v e:\lotus\domino\data\log.nsf/accepteula > c:\windows\temp\DominoDefrag.log



          Perhaps enable auditing of 'object failures' in the Local Security Policy (under Local Policies -> Audit Policy -> Audit object access -> Failure) and see if anything turns up in the Security event log. Another couple of tools to use are Regmon and Filemon from Sysinternals. Auditing, Regmon, Filemon can narrow down if its a obvious SYSTEM account permissions issue.



          regmon -> http://technet.microsoft.com/en-au/sysinternals/bb896652.aspx

          filemon -> http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx



          If no luck read The Weird World of Eknori - "Database Defragmentation - Poor Man’s Solution" - http://www.eknori.de/2008-11-29/database-defragmentation-poor-mans-solution/ for examples of just running contig.exe from the command prompt.


          • problem executing command

            By Mr Guide 1 decade ago

            I have the same problem . we are starting Domino service with -jc -c arguments (Server Controller) and than sending commands via Lotus Domino Console . the result is with error:

            load dominodefrag log.nsf



            08.09.2009 08:29:06 DominoDefrag: v1.5 (11 Jul 2009)

            08.09.2009 08:29:06 DominoDefrag: Initializing…

            08.09.2009 08:29:06 DominoDefrag: Running on Windows 5.2.3790.Service Pack 2

            08.09.2009 08:29:06 DominoDefrag: Using contig.exe version 1.55

            08.09.2009 08:29:06 DominoDefrag: 32bit version running on 32bit platform

            08.09.2009 08:29:06 DominoDefrag: File -> d:\lotus\domino\data\log.nsf

            08.09.2009 08:29:06 DominoDefrag: Process Full Text Index -> On

            08.09.2009 08:29:06 DominoDefrag: Minute Interval -> 0

            08.09.2009 08:29:06 DominoDefrag: Start Point -> 5

            08.09.2009 08:29:06 DominoDefrag: Verbose Logging -> On

            08.09.2009 08:29:06 DominoDefrag: Initialization complete

            08.09.2009 08:29:07 DominoDefrag: log.nsf problem executing command c:\windows\system32\cmd.exe/c c:\lotus\domino\contig.exe -a "D:\Lotus\Domino\data\log.nsf"/accepteula > C:\WINDOWS\TEMP\DominoDefrag.log

            08.09.2009 08:29:07 DominoDefrag: log.ft problem executing command c:\windows\system32\cmd.exe/c c:\lotus\domino\contig.exe -a -s "d:\lotus\domino\data\log.ft"/accepteula > C:\WINDOWS\TEMP\DominoDefrag.log

            08.09.2009 08:29:07 DominoDefrag: Total databases to be processed -> 1

            08.09.2009 08:29:07 DominoDefrag: Total databases defragged -> 0

            08.09.2009 08:29:07 DominoDefrag: Total databases already defragged -> 0

            08.09.2009 08:29:07 DominoDefrag: Total databases below start point -> 0

            08.09.2009 08:29:07 DominoDefrag: Total full-text indexes defragged -> 0

            08.09.2009 08:29:07 DominoDefrag: Total full-text indexes already defragged -> 0

            08.09.2009 08:29:07 DominoDefrag: Total full-text indexes below start point -> 0

            08.09.2009 08:29:07 DominoDefrag: Termination complete



            But when I start Domino like regular application and send DominoDefrag command with traditional console, everything works fine and result is:

            > load dominodefrag log.nsf

            08.09.2009 08:54:53 DominoDefrag: v1.5 (11 Jul 2009)

            08.09.2009 08:54:53 DominoDefrag: Initializing…

            08.09.2009 08:54:53 DominoDefrag: Running on Windows 5.2.3790.Service Pack 2

            08.09.2009 08:54:53 DominoDefrag: Using contig.exe version 1.55

            08.09.2009 08:54:53 DominoDefrag: 32bit version running on 32bit platform

            08.09.2009 08:54:53 DominoDefrag: File -> d:\lotus\domino\data\log.nsf

            08.09.2009 08:54:53 DominoDefrag: Process Full Text Index -> On

            08.09.2009 08:54:53 DominoDefrag: Minute Interval -> 0

            08.09.2009 08:54:53 DominoDefrag: Start Point -> 5

            08.09.2009 08:54:53 DominoDefrag: Verbose Logging -> On

            08.09.2009 08:54:53 DominoDefrag: Initialization complete

            08.09.2009 08:54:54 DominoDefrag: log.nsf Started Defrag

            08.09.2009 08:55:17 DominoDefrag: log.nsf File Size -> 142082048 bytes

            08.09.2009 08:55:17 DominoDefrag: log.nsf Before Fragments -> 41

            08.09.2009 08:55:17 DominoDefrag: log.nsf After Fragments -> 1

            08.09.2009 08:55:17 DominoDefrag: log.nsf Completed Defrag

            08.09.2009 08:55:17 DominoDefrag: log.ft Started FT Index Defrag

            08.09.2009 08:55:57 DominoDefrag: log.ft Files Defragmented -> 13

            08.09.2009 08:55:57 DominoDefrag: log.ft Average Before Fragments -> 26.8837

            08.09.2009 08:55:57 DominoDefrag: log.ft Average After Fragments -> 1

            08.09.2009 08:55:57 DominoDefrag: log.ft Completed FT Index Defrag

            08.09.2009 08:55:57 DominoDefrag: Total databases to be processed -> 1

            08.09.2009 08:55:57 DominoDefrag: Total databases defragged -> 1

            08.09.2009 08:55:57 DominoDefrag: Total databases already defragged -> 0

            08.09.2009 08:55:57 DominoDefrag: Total databases below start point -> 0

            08.09.2009 08:55:57 DominoDefrag: Total full-text indexes defragged -> 1

            08.09.2009 08:55:57 DominoDefrag: Total full-text indexes already defragged -> 0

            08.09.2009 08:55:58 DominoDefrag: Total full-text indexes below start point -> 0

            08.09.2009 08:55:58 DominoDefrag: Termination complete



            maybe the problem is Server Controller?

            • By Andrew Luder 1 decade ago
            • LocalSystem permissions

              By Andrew Luder 1 decade ago



              If you look in regedit for the key "ImagePath" key under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Lotus Domino Server (LotusDominoData)", its value should be similar to "c:\Lotus\Domino\nservice.exe" "=c:\Lotus\Domino\notes.ini" "-jc" "-c"



              Other key values you should see are



              "DisplayName"="Lotus Domino Server (LotusDominodata)"

              "ObjectName"="LocalSystem"



              The issue is what the LocalSystem permissions are on your 32bit Windows 2003 R2 SP2 server that the Domino service (nservice.exe) can utilise. By default it should be based on the SYSTEM account and it should have FullControl to all directories when the server is first built.



              When you invoke the Domino server from the shortcut on the desktop it runs with your user admin account permissions and not SYSTEM.



              I have a Windows 2008 64bit member server and DominoDefrag runs fine for me thru the java console. If you look at the new 1.6 Figure 1 screenshot is the user at the top "localAdmin"?


              • By Mr Guide 1 decade ago

                Registry entries on my server are are the same as you write .. ObjectName=LocalSystem ..

                The user at the top of my Lotus Domino Console is "localAdmin".



                I checked permissions on TEMP folders, and it seems ok . I tried to add some other system accounts, but with no luck ;(



                thank you

                • Fixed bug "problem executing command" in v1.7

                  By Andrew Luder 1 decade ago

                  Managed to finally find the bug you guys were talking about! Try new version v1.7

                  • By Mr Guide 1 decade ago

                    version 1.7 is running without problems . great job!! . thank you very much

    • Download DominoDefrag v1.5.zip again and tell me how you go

      By Andrew Luder 1 decade ago