oak-run Compaction Failing for Lack of Diskspace
Trying to run TarMK compaction on AEM v6.2.
Here is the command I'm giving it:
java -Dtar.memoryMapped=true -Dupdate.limit=5000000 -Dcompress-interval=20000000 -Dcompaction-progress-log=1500000 -Dlogback.configurationFile=logback.xml -Xmx12g -jar oak-run-1.4.5.jar compact /opt2/crx/author/crx-quickstart/repository/segmentstore
Here is what I'm getting...
Tue Sep 27 22:30:58 EDT 2016, data00393a.tar
Fri Jan 13 23:25:52 EST 2017, data03226a.tar
Tue Sep 27 22:31:33 EDT 2016, data00394a.tar
Fri Jan 13 21:20:47 EST 2017, data02785a.tar
Thu Dec 08 14:54:56 EST 2016, data01235a.tar
Fri Dec 09 12:22:51 EST 2016, data01363a.tar
Tue Jan 10 03:30:28 EST 2017, data01894a.tar
size 975.5 GB (975502680735 bytes)
-> compacting
13:31:29.273 [TarMK disk space check [/opt2/crx/author/crx-quickstart/repository/segmentstore], active since Mon Jan 16 13:31:29 EST 2017, previous max duration 0ms] WARN o.a.j.o.p.segment.file.FileStore - Available disk space (75.2 GB) is too low, current repository size is approx. 974.6 GB
13:31:29.273 [main] WARN o.a.j.o.p.segment.file.FileStore - TarMK GC #0: compaction canceled: Not enough disk space available
-> cleaning up
13:32:31.924 [TarMK disk space check [/opt2/crx/author/crx-quickstart/repository/segmentstore], active since Mon Jan 16 13:32:31 EST 2017, previous max duration 0ms] WARN o.a.j.o.p.segment.file.FileStore - Available disk space (75.2 GB) is too low, current repository size is approx. 974.6 GB
Compaction failure stack trace:
java.io.IOException: No space left on device
at java.io.RandomAccessFile.writeBytes(Native Method)
at java.io.RandomAccessFile.write(RandomAccessFile.java:525)
at org.apache.jackrabbit.oak.plugins.segment.file.TarWriter.writeEntry(TarWriter.java:235)
at org.apache.jackrabbit.oak.plugins.segment.file.TarWriter.writeEntry(TarWriter.java:221)
at org.apache.jackrabbit.oak.plugins.segment.file.TarReader.cleanup(TarReader.java:816)
at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.cleanup(FileStore.java:895)
at org.apache.jackrabbit.oak.run.CompactCommand.execute(CompactCommand.java:106)
at org.apache.jackrabbit.oak.run.Mode.execute(Mode.java:63)
at org.apache.jackrabbit.oak.run.Main.main(Main.java:49)
Compaction failed in 13.71 min (822s).
bash-4.1$
So what space is it talking about. Is it java.io temp space? I tried adding -Djava.io.tmpdir=/opt3/temp to the JVM parms for the oak-run to volume with loads of space but it had no effect on the outcome. I know that the volume where the repository resides is very low on disk space; that is why I want to do the compaction.