Created
February 22, 2013 00:32
-
-
Save BrunoBonacci/5009801 to your computer and use it in GitHub Desktop.
creating zero-filled oplog files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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