Skip to content

Commit

Permalink
fixed java references in shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
opendedup committed Nov 29, 2015
1 parent e56a32e commit a223e22
Show file tree
Hide file tree
Showing 12 changed files with 461 additions and 494 deletions.
266 changes: 124 additions & 142 deletions README.md

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions install-packages/deb/usr/share/sdfs/changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
Version 3.0.1
This is a major new release of SDFS with a rewrite of the storage subsystem. This release includes enhancements to the following elements

Cloud Storage Enhancements :
* In-Line deduplication to a Cloud Storage Backend - SDFS can send all of its data to AWS, AZURE, or Google. 2.Performance Improvements - Compressed Multi-Threaded upload and download of data to the cloud
* Local Cache - SDFS will cache the most recently accessed data locally. This is configurable but set to 10 GB by Default
* Security - All data can be encrypted using AES-CBC 256 when sent to the cloud
* Throttling - Upload and download speeds can be throttled.
* Cloud Recovery/Replication - All local metadata is replicated to the cloud and can be recovered back to local volume.
* Glacier Support - Supports S3 Lifecycle policies and retrieving data from Glacier
* AWS Region Support - Supports all AWS Regions
* Amazon AIM Support

Scalability Improvements:
* Tested to over 100TB of backend storage.
* Requires only 400MB of memory per TB of unique storage
* Unlimited Snapshots
* No compaction necessary sing orphaned data physically removed from underlying filesystem after garbage collection.

General Enhancements :
* Mounts from fstab and using native linux mount commands (mount -t sdfs)
* Faster Volume Replication
* Local Encryption support - Uses AES-CBC 256
* Faster Garbage Collection - 300% improvement

Version 2.0.11
Fixes :
* Fixed copy of files with non-english characters
Expand Down
2 changes: 1 addition & 1 deletion install-packages/deb/usr/share/sdfs/mkfs.sdfs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
java -Dfile.encoding=UTF-8 -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.VolumeConfigWriter "$@"
/usr/share/sdfs/bin/jre/bin/java -Dfile.encoding=UTF-8 -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.VolumeConfigWriter "$@"

2 changes: 1 addition & 1 deletion install-packages/deb/usr/share/sdfs/odvol.cli
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.mgmt.cli.SDFSCmdline "$@"
/usr/share/sdfs/bin/jre/bin/java -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.mgmt.cli.SDFSCmdline "$@"
2 changes: 1 addition & 1 deletion install-packages/deb/usr/share/sdfs/odvol.make
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
java -Dfile.encoding=UTF-8 -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.VolumeConfigWriter "$@" --io-safe-sync=true
/usr/share/sdfs/bin/jre/bin/java -Dfile.encoding=UTF-8 -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.sdfs.VolumeConfigWriter "$@" --io-safe-sync=true

43 changes: 41 additions & 2 deletions install-packages/deb/usr/share/sdfs/odvol.start
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
export LD_LIBRARY_PATH=/usr/share/sdfs/bin/:$LD_LIBRARY_PATH
java -Djava.library.path=/usr/share/sdfs/bin/ -Dorg.apache.commons.logging.Log=fuse.logging.FuseLog\
-Dfuse.logging.level=INFO -Xmx2g -Xms2g -server -XX:+DisableExplicitGC -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:ParallelGCThreads=4 -XX:InitialSurvivorRatio=3 -XX:TargetSurvivorRatio=90 -Djava.awt.headless=$ -XX:+UseCompressedOops -classpath /usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.buse.sdfsdev.SDFSVolMgr "$@"
#!/bin/bash
modprobe nbd
MEMORY="1000"
CFG=""
MPTG=4
MU="M"
EXEC="/usr/share/sdfs/jsvc"
PF="sdfs-ncfg.pid"
if [[ $1:0:1} == '-' ]]; then
while getopts ":v:" opt; do
case $opt in
v)
CFG="/etc/sdfs/$OPTARG-volume-cfg.xml"
PF="$OPTARG.pid"
;;
z)
MEM=$OPTARG
;;
:)
echo "Option -$OPTARG requires an argument." >&2
exit 1
;;
esac
done
else
CFG="/etc/sdfs/$1-volume-cfg.xml"
fi

if [ ! -n "$MEM" ]; then
if [ -n "$CFG" ] && [ -f "$CFG" ]; then
ac=$(echo 'cat //subsystem-config/local-chunkstore/@allocation-size' | xmllint --shell "$CFG" | grep -v ">" | cut -f 2 -d "=" | tr -d \");
MEMORY=$(((ac/10737418240*MPTG)+1000))
fi
else
MEMORY=$MEM
fi

LD_PRELOAD="/usr/share/sdfs/bin/libfuse.so.2" $EXEC -server -outfile '&1' -errfile '&2' -Djava.library.path=/usr/share/sdfs/bin/ -home /usr/share/sdfs/bin/jre -Dorg.apache.commons.logging.Log=fuse.logging.FuseLog\
-Dfuse.logging.level=INFO -Xmx$MEMORY$MU -Xms$MEMORY$MU \
-XX:+DisableExplicitGC -pidfile /var/run/$PF -XX:+UseG1GC -Djava.awt.headless=true \
-cp /usr/share/sdfs/lib/commons-daemon-1.0.15.jar:/usr/share/sdfs/lib/sdfs.jar:/usr/share/sdfs/lib/* org.opendedup.buse.sdfsdev.SDFSVolMgr "$@"
Loading

0 comments on commit a223e22

Please sign in to comment.