Skip to content

Instantly share code, notes, and snippets.

@nilsmeyer
Created May 10, 2019 16:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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