How to configure the Storage Directory

vrindanayak edited this page Oct 11, 2016 · 7 revisions
Clone this wiki locally

At default configuration, there is one File System Storage configured with

Attribute Value
dcmStorageID fs1
dcmURI file:///var/local/dcm4chee-arc/fs1/
dcmProperty pathFormat={now,date,yyyy/MM/dd}/{0020000D,hash}/{0020000E,hash}/{00080018,hash}
dcmRetrieveAET DCM4CHEE
dcmRetrieveAET DCM4CHEE_ADMIN

and referenced on Device level.

You may modify the Storage Directory Path by

  • either create a LDIF file (e.g.):

    version: 1
    dn: dcmStorageID=fs1,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
    changetype: modify
    replace: dcmURI
    dcmURI: file:///E:/dcm4chee-arc/fs1/
    

    and import it to the LDAP Server by using the ldapmodify command line utility

  • or use the Edit Value function of Apache Directory Studio.

Configure multiple storage directories

In cases where the disks may be full, one may add more than one storage directory. An example ldif file indicating the storage id as fs2 is shown below which may be imported in one's LDAP configuration.

You may modify the Storage Directory Path by

  • either create a LDIF file (e.g.):

    version: 1
    dn: dcmStorageID=fs2,dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
    objectClass: dcmStorage
    dcmStorageID: fs2
    dcmURI: file:///E:/dcm4chee-arc/fs2/
    dcmProperty: pathFormat={now,date,yyyy/MM/dd}/{0020000D,hash}/{0020000E,hash}/{00080018,hash}
    dcmRetrieveAET: DCM4CHEE
    dcmRetrieveAET: DCM4CHEE_ADMIN
    

    and import it to the LDAP Server by using the ldapmodify command line utility

  • or use the Edit Value function of Apache Directory Studio.

Also on the archive device level / application entity level, one should change the value of dcmStorageID from fs1 to fs2 pointing to the new storage directory configured.

You may either

  • create a LDIF file (e.g.):

     version: 1
     dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
     changetype: modify
     replace: dcmStorageID
     dcmStorageID: fs2
    

    and import it to the LDAP Server by using the ldapmodify command line utility

  • or use the Edit Value function of Apache Directory Studio.

One may refer to Storage Descriptor to understand the description of attributes