I had this and i changed it to default 37200 which is BAD!
I guess this SHOULD be changed in settings.xml.template: - maxDirID: Maximum number of sub-directories per parent directory. Default: 32700.
In settings.xml its this:
- maxDirID: Maximum number of sub-directories per parent directory. Default: 0, use 31998 (maximum number of dirs in ext3) for a multi level content directory.
maxDirID has been introduced because some file systems have a limit on subdirectories. As each document has its own subdirectory on disk, this would limit the maximum number of documents. Setting maxDirID to something != 0 will create at most maxDirID subdirs for documents but forces a two level hierarchy. The first document will be put into directory 1/1, the second into 1/2 on so on untill
1/maxDirID. The document maxDirID+1 will then be in 2/1 . This will allow pow(maxDirID, 2) documents.
Best is to use ext4 and keep maxDirID at 0.
You are right, claiming that 32760 is the default is a bad idea. I'll fix that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hey,
i just updated my 4.3 to 5.0.3 (quickinstallation with mysql config).
everything worked fine until i get this error (Document deleted...)
what i remember doing:
since then i can not open any file.
I hoped it was only on that file but its globaly on all my documents.
I tried chmod 777 on data-Folder already. Not helping :-(
Anything else I can try?
just answering myself:
DO NOT CHANGE
maxDirID="0"
in your setings!I had this and i changed it to default 37200 which is BAD!
I guess this SHOULD be changed in settings.xml.template:
- maxDirID: Maximum number of sub-directories per parent directory. Default: 32700.
In settings.xml its this:
- maxDirID: Maximum number of sub-directories per parent directory. Default: 0, use 31998 (maximum number of dirs in ext3) for a multi level content directory.
and below there is this line in both files:
<server coreDir="" luceneClassDir="" contentOffsetDir="1048576" maxDirID="0" updateNotifyTime="86400" extraPath="" maxExecutionTime="30" cmdTimeout="1"/>
so, default of maxDirID is what?
and why do this afect document access?
Last edit: atari freak 2016-05-01
maxDirID has been introduced because some file systems have a limit on subdirectories. As each document has its own subdirectory on disk, this would limit the maximum number of documents. Setting maxDirID to something != 0 will create at most maxDirID subdirs for documents but forces a two level hierarchy. The first document will be put into directory 1/1, the second into 1/2 on so on untill
1/maxDirID. The document maxDirID+1 will then be in 2/1 . This will allow pow(maxDirID, 2) documents.
Best is to use ext4 and keep maxDirID at 0.
You are right, claiming that 32760 is the default is a bad idea. I'll fix that.