Skip to content

Instantly share code, notes, and snippets.

@BrunoBonacci
Created February 22, 2013 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrunoBonacci/5009801 to your computer and use it in GitHub Desktop.
Save BrunoBonacci/5009801 to your computer and use it in GitHub Desktop.
creating zero-filled oplog files.
cd /var/lib/mongo/local
# as root user
for i in {0..11}
do
echo "Initializing new-local.$i"
dd if=/dev/zero of=new-local.$i bs=2146435072 count=1
chown mongod:mongod new-local.$i
chmod 0600 new-local.$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment