Skip to content

Instantly share code, notes, and snippets.

@nilsmeyer
Created May 10, 2019 16:00
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 nilsmeyer/de82a982e5c263aa3b082fb0cdbb9c33 to your computer and use it in GitHub Desktop.
Save nilsmeyer/de82a982e5c263aa3b082fb0cdbb9c33 to your computer and use it in GitHub Desktop.
when the nvme devices schanges
#cloud-config
fs_setup:
- label: docker
device: /dev/nvme0n1
filesystem: xfs
partition: none
overwrite: false
extra_opts: ['-n', 'ftype=1', '-l', 'size=256m', '-b', 'size=4096',
'-s', 'size=4096', '-m', 'crc=1,finobt=1,rmapbt=1,reflink=1',
'-i', 'sparse=1']
- label: docker
device: /dev/nvme1n1
filesystem: xfs
partition: none
overwrite: false
extra_opts: ['-n', 'ftype=1', '-l', 'size=256m', '-b', 'size=4096',
'-s', 'size=4096', '-m', 'crc=1,finobt=1,rmapbt=1,reflink=1',
'-i', 'sparse=1']
mounts:
- ["/dev/disk/by-label/docker", "/var/lib/docker", "xfs", "defaults"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment