Cannot compute total size

  • I have hit the limit of my NAS device (2Tb) and I'm looking to archive data to a secondary NAS device.
    I added the new device as MAG1 and ran the following


    dgate -as1000,0
    dgate -v -amMAG0,MAG1


    The dgate starts printing the size of each dicom file to the console (Note I have added x in some places to protect patient identity).

    Quote

    K:\nmus_data\dicom\0x1x0x7\1.2.124.285.1.657524.816007.2x0x0x0x13x0x4\1.2.528.1.
    1001.100.3.1673.1781.20021204110.200x0x0x2x5x5x5x2\1.2.528.1.1001.100.4.1673.178
    1.20021204110.200x0x0x2x5x5x5x3.dcm = 225 KB


    and then after a few minutes I got the following error

    Quote


    ***Unable to query for image records to compute total size
    MoveDataToDevice: *** could not compute KB used for patient: x3x9x8x AF\


    DGATE (1.4.14, build Tue Sep 02 22:39:12 2008) is running as threaded server


  • Hi,


    this could be a mysql specific issue. You can try to enable debug logging (debug log ON, arrows 5 times up) in the (windows) GUI and use:


    dgate --selectlruforarchival:100000,0


    This will start the selection task (for 100000 kb = 100 MB). The log will show all queries that are executed and could tell us what goes wrong.


    To undo and try again first run:


    dgate --restoremagflags:


    To finally move the data you should use:


    dgate --movedatatodevice:MAG1,MAG0.Archiving


    Marcel

  • Thanks,


    The archive appears to partially work now. However some records seem to have problems. I'm guessing that it is an escape caharcter problem with mysql.

    Quote


    mysql Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i386) using readline 4.3


  • The DICOM files were originally added to conquest using "dgate.exe --addimagefile"
    It appears that the Patient ID had the initials of the operator included.



    I used dcmdump on the file and got

    Quote


    (0010,0020) LO [2440681 AF\] # 12, 2 PatientID


    It also appears that conquest can't find these patients when using DICOM remote query, however the entries do exist when I access via mysqladmin.


    It appears to only be affecting about 600 images so I'll just move them out and re-initialise (0.04% of all images)

  • Thanks for that,
    I managed to start moving image data to the archive device


    Quote


    dgate --restoremagflags:
    dgate --selectlruforarchival:100000,MAG0
    dgate --movedatatodevice:MAG1,MAG0.Archiving


    Note that I used --selectlruforarchival:100000,MAG0 because --selectlruforarchival:100000,0 doesn't work and repsonds with the answer Nothing to do.

  • Hi,


    I've recently arranged data archiving with Conquest v1.4.14 and use a batch with the command-lines proposed by retsil. Thanks, it works.
    Additionally, in batch, I've encapsulated dgate commands by time logging echo lines to track process performance:


    echo Start: %date% %time%
    dgate --restoremagflags:
    echo End: %date% %time%


    echo Start: %date% %time%
    dgate --selectlruforarchival:100000,MAG0
    echo End: %date% %time%


    echo Start: %date% %time%
    dgate --movedatatodevice:MAG1,MAG0.Archiving
    echo End: %date% %time%


    With my relatevely big database (MSSQL containing >200 000studies, >6mln images) for every dgate line in the code above it executes exactly 5min no matter how many data you select to move (I tried to move separately 10MB, 100MB, 10GB).

  • Hi, Marcel
    To say the true, we haven't done MSSQL maintenance for 2.5years. Now we've scheduled weekly maintenance and after first one the archiving commands run twice faster.


    However, another issue came up. Archiving works properly when we archive MAG0 data to MAG1 (or any arbitrary MAG?). But could you please comment, is it possible to move data from let's say MAG2 to MAG3?


    The reason is: previously we archived uncompressed onto MAG2 but now we want to move all MAG2 data onto another NAS and simultaneously compress it with j1.
    I tried:
    dgate --restoremagflags:
    dgate --selectlruforarchival:1000000,MAG2
    dgate --movedatatodevice:MAG3,MAG2.Archiving
    Serverlog says: nothing to move.


    Obviously, archiving is only possible from MAG0, isn't it?

  • It all works but must to note that in our case if we move 100GB of image data, then we run first two steps:
    dgate --restoremagflags:
    dgate --selectlruforarchival:100000000,MAG2


    then it starts to compress images (which are initially un-compressed) to j1. This compression process takes over 20h.
    Then it's over we start 3rd process:
    dgate --movedatatodevice:MAG3,MAG2.Archiving


    Moving takes a few hours.


    Marcel, please advise, can we could move 100GB to MAG3 without changing images compression and compress only then data is moved onto MAG3? This matters if in our case the MAG3 is a newer and faster NAS.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!