bundles/backup-server: use raidz2 if we have enough devices
This commit is contained in:
parent
0c877e5d10
commit
99d373c73b
1 changed files with 3 additions and 1 deletions
|
@ -97,7 +97,9 @@ def zfs_pool(metadata):
|
|||
'devices': pool_devices,
|
||||
}]
|
||||
|
||||
if len(pool_devices) > 2:
|
||||
if len(pool_devices) > 3:
|
||||
pool_config[0]['type'] = 'raidz2'
|
||||
elif len(pool_devices) > 2:
|
||||
pool_config[0]['type'] = 'raidz'
|
||||
elif len(pool_devices) > 1:
|
||||
pool_config[0]['type'] = 'mirror'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue