This commit is contained in:
mwiegand 2021-07-08 01:02:27 +02:00
parent 1b3fe1d8d0
commit 52f9079d54
3 changed files with 4 additions and 0 deletions

View file

@ -30,6 +30,7 @@ if node.has_bundle('zfs'):
'mountpoint': '/var/lib/postgresql',
'recordsize': '8192',
'atime': 'off',
'logbias': 'throughput',
},
},
}

View file

@ -60,6 +60,7 @@ def dataset_defaults(metadata):
'datasets': {
name: {
'compression': 'lz4',
'relatime': 'on',
} for name, config in metadata.get('zfs/datasets').items()
},
},

View file

@ -70,12 +70,14 @@ class ZFSDataset(Item):
BUNDLE_ATTRIBUTE_NAME = "zfs_datasets"
ITEM_ATTRIBUTES = {
'atime': None,
'relatime': None,
'acltype': None,
'compression': None,
'mountpoint': None,
'quota': None,
'recordsize': None,
'dedup': None,
'logbias': None,
}
ITEM_TYPE_NAME = "zfs_dataset"