mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Add options to zfs redundant_metadata property
Currently, additional/extra copies are created for metadata in addition to the redundancy provided by the pool(mirror/raidz/draid), due to this 2 times more space is utilized per inode and this decreases the total number of inodes that can be created in the filesystem. By setting redundant_metadata to none, no additional copies of metadata are created, hence can reduce the space consumed by the additional metadata copies and increase the total number of inodes that can be created in the filesystem. Additionally, this can improve file create performance due to the reduced amount of metadata which needs to be written. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Dipak Ghosh <dipak.ghosh@hpe.com> Signed-off-by: Akash B <akash-b@hpe.com> Closes #13680
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
* Copyright 2016, Joyent, Inc.
|
||||
* Copyright (c) 2019, Klara Inc.
|
||||
* Copyright (c) 2019, Allan Jude
|
||||
* Copyright (c) 2022 Hewlett Packard Enterprise Development LP.
|
||||
*/
|
||||
|
||||
/* Portions Copyright 2010 Robert Milkowski */
|
||||
@@ -369,6 +370,8 @@ zfs_prop_init(void)
|
||||
static const zprop_index_t redundant_metadata_table[] = {
|
||||
{ "all", ZFS_REDUNDANT_METADATA_ALL },
|
||||
{ "most", ZFS_REDUNDANT_METADATA_MOST },
|
||||
{ "some", ZFS_REDUNDANT_METADATA_SOME },
|
||||
{ "none", ZFS_REDUNDANT_METADATA_NONE },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
@@ -388,7 +391,7 @@ zfs_prop_init(void)
|
||||
zprop_register_index(ZFS_PROP_REDUNDANT_METADATA, "redundant_metadata",
|
||||
ZFS_REDUNDANT_METADATA_ALL,
|
||||
PROP_INHERIT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
|
||||
"all | most", "REDUND_MD",
|
||||
"all | most | some | none", "REDUND_MD",
|
||||
redundant_metadata_table, sfeatures);
|
||||
zprop_register_index(ZFS_PROP_SYNC, "sync", ZFS_SYNC_STANDARD,
|
||||
PROP_INHERIT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
|
||||
|
||||
Reference in New Issue
Block a user