Skip to content
Permalink
Browse files

Merge pull request #3 from don4of4/patch-1

Switch to XFS Filesystem
  • Loading branch information...
crcsmnky committed Dec 12, 2018
2 parents f153824 + 781a2a0 commit ade76672f4966632b7fd3e3a133bc404662d0c5b
Showing with 2 additions and 2 deletions.
  1. +2 −2 mongodb-instance-template.jinja
@@ -65,7 +65,7 @@ resources:
sed -i '/mmsApiKey/c\mmsApiKey={{ properties["mmsApiKey"] }}' /etc/mongodb-mms/automation-agent.config

# create filesystem on persistent storage
mkfs.ext4 -F -E lazy_itable_init=0,lazy_journal_init=0,discard /dev/disk/by-id/google-{{ env["name"] }}-data
mkfs.xfs -f /dev/disk/by-id/google-{{ env["name"] }}-data

# create mongodb data directory
mkdir /data
@@ -77,7 +77,7 @@ resources:
chown mongodb:mongodb /data

# add an entry to /etc/fstab for persistent disk
echo '/dev/disk/by-id/google-{{ env["name"] }}-data /data ext4 discard,defaults 1 1' | tee -a /etc/fstab
echo '/dev/disk/by-id/google-{{ env["name"] }}-data /data xfs discard,defaults 1 1' | tee -a /etc/fstab

# start the mongodb cloud manager agent
systemctl start mongodb-mms-automation-agent.service

0 comments on commit ade7667

Please sign in to comment.
You can’t perform that action at this time.