github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/other-specifications/volume/mount_options.mdx (about) 1 --- 2 layout: docs 3 page_title: mount_options Block - Volume Specification 4 description: The "mount_options" block allows for configuring how a volume is mounted. 5 --- 6 7 # `mount_options` Block 8 9 <Placement 10 groups={[ 11 ['volume', 'mount_options'], 12 ]} 13 /> 14 15 Options for mounting `file-system` volumes that don't already have a 16 pre-formatted file system. 17 18 ```hcl 19 id = "ebs_prod_db1" 20 namespace = "default" 21 name = "database" 22 type = "csi" 23 plugin_id = "ebs-prod" 24 capacity_max = "200G" 25 capacity_min = "100G" 26 27 mount_options { 28 fs_type = "ext4" 29 mount_flags = ["noatime"] 30 } 31 ``` 32 33 This block will be validated during volume creation against the `capability` 34 field. The `mount_options` provided in a job specification's [`volume`] block 35 will override this block. Consult the documentation for your storage provider 36 and CSI plugin as to whether these options are required or necessary. 37 38 ## `mount_options` Parameters 39 40 - `fs_type` `(string <optional>)` - File system type (ex. `"ext4"`) 41 - `mount_flags` `([]string: <optional>)` - The flags passed to `mount` (ex. 42 `["ro", "noatime"]`) 43 44 [`volume`]: /docs/job-specification/volume