Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.