wiki/info/landscape/creating-ec2-mongodb-image-from-scratch.md
... ...
@@ -88,14 +88,23 @@ replication:
88 88
#snmp:
89 89
```
90 90
91
-Before being able to start the mongod service, more configuration is required:
91
+Before being able to start the mongod service, more configuration is required. The ephemeral volume needs to be probed for an existing file system:
92 92
93 93
```
94
+blkid -p /dev/nvme0n1 -s TYPE -o value
95
+```
96
+This will output ``xfs`` if the partition contains an XFS file system already. Otherwise, formatting it is required:
97
+```
98
+mkfs.xfs /dev/nvme0n1
99
+```
100
+Afterwards, the volume can be mounted, and the ownerships can be adjusted so the MongoDB daemon can write to it:
101
+```
102
+mount /dev/nvme0n1 /var/lib/mongo
94 103
chown mongod /var/lib/mongo/
95 104
chgrp mongod /var/lib/mongo/
96 105
```
97 106
98
-will change the ownerships of the directory mounted from ephemeral storage accordingly, so the MongoDB daemon can write to it. The execute ``systemctl start mongod.service`` to launch the MongoDB process.
107
+Then execute ``systemctl start mongod.service`` to launch the MongoDB process.
99 108
100 109
## MongoDB Replica Set Configuration
101 110