{"id":3476,"date":"2023-12-14T19:24:12","date_gmt":"2023-12-14T10:24:12","guid":{"rendered":"http:\/\/192.168.20.1\/?p=3476"},"modified":"2023-12-16T16:43:03","modified_gmt":"2023-12-16T07:43:03","slug":"truenas-scalecreate-dataset","status":"publish","type":"post","link":"https:\/\/rlab.cavtime.net\/?p=3476","title":{"rendered":"[TrueNAS Scale] Create Dataset"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>TrueNAS Scale \u306e Dataset \u306e\u8a2d\u5b9a\u9805\u76ee\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<h2>Reference<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.truenas.com\/docs\/scale\/23.10\/scaletutorials\/storage\/datasets\/datasetsscale\/\" target=\"_blank\" rel=\"noopener\">Adding and Managing Datasets<\/a><\/li>\n<\/ul>\n<h2>Environment<\/h2>\n<p>TrueNAS Scale 23.10.0.1<\/p>\n<h2>Add Dataset<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2023\/12\/Dataset_Create_Advanced-00.png\" alt=\"\" width=\"1544\" height=\"3972\" class=\"img-responsive right-block\" \/><\/p>\n<h2>Configuration Items<\/h2>\n<h3>Name and Options<\/h3>\n<p><strong>Parent Path<\/strong> : [\u89aa\u306ePath\u3067Pool\u540d\u307e\u305f\u306f\u89aaDataset\u540d]<\/p>\n<p><span _ngcontent-ng-c385530627=\"\"><strong>Name<\/strong> : Dataset\u540d\u79f0<\/span><\/p>\n<p><strong>Comments<\/strong> : \u30b3\u30e1\u30f3\u30c8<\/p>\n<p><span><strong>Sync<\/strong> : HDD\u3078\u306e\u66f8\u304d\u8fbc\u307f\u5b8c\u4e86\u307e\u3067\u5f85\u6a5f\u3059\u308b\u304b\u5426\u304b\u306e\u8a2d\u5b9a<\/span><\/p>\n<blockquote><p>Standard uses the sync settings that have been requested by the client software, Always waits for data writes to complete, and Disabled never waits for writes to complete.<\/p><\/blockquote>\n<ul>\n<li><span>Inherit(STANDARD)<\/span><\/li>\n<li><span>Standard<\/span><\/li>\n<li><span>Always<\/span><\/li>\n<li><span>Disabled<\/span><\/li>\n<\/ul>\n<p><strong>Compression Level<\/strong> : \u30c7\u30fc\u30bf\u306e\u5727\u7e2e\u30ec\u30d9\u30eb<\/p>\n<blockquote><p>Encode information in less space than the original data occupies. It is recommended to choose a compression algorithm that balances disk performance with the amount of saved space.<br \/>\nLZ4 is generally recommended as it maximizes performance and dynamically identifies the best files to compress.<br \/>\nGZIP options range from 1 for least compression, best performance, through 9 for maximum compression with greatest performance impact.<br \/>\nZLE is a fast algorithm that only eliminates runs of zeroes.<\/p><\/blockquote>\n<ul>\n<li>Inherit(LZ4)<\/li>\n<li>OFF<\/li>\n<li>LZ4<\/li>\n<li>GZIP<\/li>\n<li>GZIP-1<\/li>\n<li>GZIP-9<\/li>\n<li>ZSTD<\/li>\n<li>ZSTD-FAST<\/li>\n<li>ZLE<\/li>\n<li>LZJB<\/li>\n<li>ZSTD-[1-19]<\/li>\n<li>ZSTD-FAST-[1-10\/20\/30\/40\/50\/60\/70\/80\/90\/100\/500\/1000]<\/li>\n<\/ul>\n<p><strong>Enable Atime<\/strong> : \u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u8fbc\u307f\u6642\u306e\u30ed\u30b0\u3092\u751f\u6210\u3059\u308b\u304b\u5426\u304b\u306e\u8a2d\u5b9a<\/p>\n<blockquote><p><span>Choose\u00a0<\/span><i>ON<\/i><span>\u00a0to update the access time for files when they are read. Choose\u00a0<\/span><i>Off<\/i><span>\u00a0to prevent producing log traffic when reading files. This can result in significant performance gains.<\/span><\/p><\/blockquote>\n<ul>\n<li>Inherit(OFF)<\/li>\n<li>On<\/li>\n<li>Off<\/li>\n<\/ul>\n<h3>This Dataset<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2023\/12\/TrueNAS-Pool_DS_ZVOL.drawio.png\" alt=\"\" width=\"530\" height=\"350\" class=\"img-responsive right-block\" \/><\/p>\n<p><strong>Quota for this dataset<\/strong> : Dataset\u306equota(\u2252\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u5bb9\u91cf\uff09\u306e\u30b5\u30a4\u30ba<\/p>\n<blockquote><p><i>0<\/i><span>\u00a0disables quotas. Specify a maximum allowed space for this dataset.<\/span><\/p><\/blockquote>\n<p><strong>Quota warning alert at, %<\/strong> : Quota\u306e\u8a2d\u5b9a\u5024\u306b\u5bfe\u3057\u3066Warning Alert\u3092\u751f\u6210\u3059\u308b\u95be\u5024(%)<\/p>\n<blockquote><p><span>Apply the same quota warning alert settings as the parent dataset.<\/span><\/p><\/blockquote>\n<ul>\n<li>[80:default]<\/li>\n<li>Inherit[Check]<\/li>\n<\/ul>\n<p><strong>Quota critical alert at, %<\/strong> : Quota\u306e\u8a2d\u5b9a\u5024\u306b\u5bfe\u3057\u3066Critical Alert\u3092\u751f\u6210\u3059\u308b\u95be\u5024(%)<\/p>\n<blockquote><p>Apply the same quota critical alert settings as the parent dataset.<\/p><\/blockquote>\n<ul>\n<li>[95:default]<\/li>\n<li>Inherit[Check]<\/li>\n<\/ul>\n<p><strong>Reserved space for this dataset<\/strong> : \u5229\u7528\u53ef\u80fd\u306a\u7a7a\u304d\u30b9\u30da\u30fc\u30b9\u3092\u3053\u306eDataset\u306b\u7a0b\u5ea6\u5272\u308a\u5f53\u3066\u308b\u5bb9\u91cf<\/p>\n<blockquote><p>0\u00a0is unlimited. Reserve additional space for datasets containing logs which could take up all available free space.<\/p><\/blockquote>\n<h3>This Dataset and Child Datasets<\/h3>\n<p><strong>Quota for this dataset and all children<\/strong><\/p>\n<blockquote><p>Define a maximum size for both the dataset and any child datasets. Enter 0 to remove the quota.<\/p><\/blockquote>\n<p><strong>Quota warning alert at, %<\/strong><\/p>\n<blockquote><p>0=Disabled, blank=inherit<\/p><\/blockquote>\n<ul>\n<li>[80:default]<\/li>\n<li>Inherit[Check]<\/li>\n<\/ul>\n<p><strong>Quota critical alert at, %<\/strong><\/p>\n<blockquote><p>0=Disabled, blank=inherit<\/p><\/blockquote>\n<ul>\n<li>[95:default]<\/li>\n<li>Inherit[Check]<\/li>\n<\/ul>\n<p><strong>Reserved space for this dataset and all children<\/strong><\/p>\n<h3>Encryption Options<\/h3>\n<p><strong>Inherit (non-encrypted)[Check]<\/strong><\/p>\n<blockquote><p>Use the encryption properties of the root dataset.<\/p><\/blockquote>\n<p><strong>Encryption<\/strong><\/p>\n<blockquote><p>Secure data within this dataset. Data is unusable until unlocked with an encryption key or passphrase.<\/p><\/blockquote>\n<p><strong>Encryption Type<\/strong><\/p>\n<blockquote><p>How the dataset is secured. Choose between securing with an encryption Key or a user-defined Passphrase. Creating a new key file invalidates any previously downloaded key file for this dataset. Delete any previous key file backups and back up the new key file.<\/p><\/blockquote>\n<ul>\n<li>Key<\/li>\n<li>Passphrase<\/li>\n<\/ul>\n<p><strong>Generate Key<\/strong><\/p>\n<blockquote><p>Randomly generate an encryption key for securing this dataset. Disabling requires manually defining the encryption key.<br \/>\nWARNING: the encryption key is the only means to decrypt the information stored in this dataset. Store the encryption key in a secure location.<\/p><\/blockquote>\n<p><strong>Algorithm<\/strong><\/p>\n<blockquote><p>Mathematical instruction sets that determine how plaintext is converted into ciphertext. See Advanced Encryption Standard (AES) for more details.<\/p><\/blockquote>\n<ul>\n<li>AES-128-CCM<\/li>\n<li>AES-192-CCM<\/li>\n<li>AES-256-CCM<\/li>\n<li>AES-128-GCM<\/li>\n<li>AES-192-GCM<\/li>\n<li>AES-256-GCM \/ default<\/li>\n<\/ul>\n<h3>Other Options<\/h3>\n<p><strong>ZFS Deduplication<\/strong> : ZFS\u306e\u91cd\u8907\u6392\u9664\u6a5f\u80fd\u306e\u5229\u7528\u306e\u53ef\u5426\uff08\u300c\u5229\u7528\u3057\u306a\u3044\u300d\u304cdefault)<\/p>\n<blockquote><p>Transparently reuse a single copy of duplicated data to save space. Deduplication can improve storage capacity, but is RAM intensive. Compressing data is generally recommended before using deduplication. Deduplicating data is a one-way process. Deduplicated data cannot be undeduplicated!.<\/p><\/blockquote>\n<ul>\n<li>Inherit(OFF)<\/li>\n<li>On<\/li>\n<li>Off<\/li>\n<li>Verify<\/li>\n<\/ul>\n<p><strong>Case Sensitivity<\/strong> : \u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u304c\u533a\u5225\u3092\u3059\u308b\u304b\u5426\u304b\u306e\u8a2d\u5b9a<\/p>\n<blockquote><p>Sensitive assumes filenames are case sensitive. Insensitive assumes filenames are not case sensitive.<\/p><\/blockquote>\n<ul>\n<li>Sensitive<\/li>\n<li>Insensitive<\/li>\n<\/ul>\n<p><strong>Share Type<\/strong><\/p>\n<blockquote><p>Choose the type that matches the type of client accessing the pool\/dataset.<\/p><\/blockquote>\n<ul>\n<li>Generic\n<ul>\n<li>Case Sensitivity is Sensitive\/\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n<li>SMB\n<ul>\n<li>ACL Mode\u00a0to\u00a0<i>Restricted<\/i>\u00a0and\u00a0Case Sensitivity\u00a0to\u00a0<i>Insensitive<\/i><\/li>\n<li>Client \u304c Windows \u30e1\u30a4\u30f3\u306e\u5834\u5408\u306fSMB\u3092\u9078\u629e<\/li>\n<\/ul>\n<\/li>\n<li>Apps<\/li>\n<li>Multiprotocol<\/li>\n<\/ul>\n<p><strong>Checksum<\/strong><\/p>\n<ul>\n<li>Inherit(ON)<\/li>\n<li>ON<\/li>\n<li>FLETCHR2<\/li>\n<li>FLETCHR4<\/li>\n<li>SHA256<\/li>\n<li>SHA512<\/li>\n<li>SKEIN<\/li>\n<li>EDONR<\/li>\n<\/ul>\n<p><strong>Read-only<\/strong> : Dataset \u3092\u8aad\u307f\u53d6\u308a\u5c02\u7528\u306b\u3059\u308b\u304b\u5426\u304b\u306e\u8a2d\u5b9a<\/p>\n<blockquote><p><span>Set to prevent the dataset from being modified.<\/span><\/p><\/blockquote>\n<ul>\n<li>Inherit(OFF)<\/li>\n<li>On<\/li>\n<li>Off<\/li>\n<\/ul>\n<p><strong>Exec<\/strong> : \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u5185\u304b\u3089\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u8a2d\u5b9a<\/p>\n<blockquote><p><span>Set whether processes can be executed from within this dataset.<\/span><\/p><\/blockquote>\n<ul>\n<li>Inherit(OFF)<\/li>\n<li>On<\/li>\n<li>Off<\/li>\n<\/ul>\n<p><strong>Snapshot Directory<\/strong><\/p>\n<blockquote><p><span>Choose if the .zfs snapshot directory is\u00a0<\/span><i>Visible<\/i><span>\u00a0or\u00a0<\/span><i>Invisible<\/i><span>\u00a0on this dataset.<\/span><\/p><\/blockquote>\n<p><strong>Snapdev<\/strong><\/p>\n<blockquote><p><span>Controls whether the volume snapshot devices under \/dev\/zvol\/\u27e8pool\u27e9 are hidden or visible. The default value is hidden.<\/span><\/p><\/blockquote>\n<ul>\n<li>Inherit(HIDDEN)<\/li>\n<li>Visible<\/li>\n<li>Hidden<\/li>\n<\/ul>\n<p><strong>Copies<\/strong><\/p>\n<blockquote><p>Set the number of data copies on this dataset.<\/p><\/blockquote>\n<ul>\n<li>[1-3]<\/li>\n<\/ul>\n<p><strong>Record Size<\/strong><\/p>\n<blockquote><p><span>Matching the fixed size of data, as in a database, may result in better performance.<\/span><\/p><\/blockquote>\n<ul>\n<li>Inherit(128 KiB)<\/li>\n<li>512<\/li>\n<li>512B<\/li>\n<li>1K<\/li>\n<li>2K<\/li>\n<li>4K<\/li>\n<li>8K<\/li>\n<li>16K<\/li>\n<li>32K<\/li>\n<li>64K<\/li>\n<li>128K<\/li>\n<li>256K<\/li>\n<li>512K<\/li>\n<li>1M<\/li>\n<li>2M<\/li>\n<li>4M<\/li>\n<li>8M<\/li>\n<li>16M<\/li>\n<\/ul>\n<p><strong>ACL Type<\/strong><\/p>\n<ul>\n<li>Inherit<\/li>\n<li>Off<\/li>\n<li>SMB\/NFSv4<\/li>\n<li>POSIX \/ default<\/li>\n<\/ul>\n<p><strong>ACL Mode<\/strong><\/p>\n<blockquote><p><span>Determine how\u00a0<\/span><a href=\"https:\/\/man7.org\/linux\/man-pages\/man1\/chmod.1.html\" target=\"_blank\" rel=\"noopener\">chmod<\/a><span>\u00a0behaves when adjusting file ACLs. See the\u00a0<\/span><a href=\"https:\/\/linux.die.net\/man\/8\/zfs\" target=\"_blank\" rel=\"noopener\">zfs(8)<\/a><span>\u00a0aclmode property.<\/span><\/p>\n<p><i>Passthrough<\/i><span>\u00a0only updates ACL entries that are related to the file or directory mode.<\/span><\/p>\n<p><i>Restricted<\/i><span>\u00a0does not allow chmod to make changes to files or directories with a non-trivial ACL. An ACL is trivial if it can be fully expressed as a file mode without losing any access rules. Setting the ACL Mode to Restricted is typically used to optimize a dataset for SMB sharing, but can require further optimizations. For example, configuring an rsync task with this dataset could require adding\u00a0<\/span><i>&#8211;no-perms<\/i><span>\u00a0in the task\u00a0<\/span><i>Auxiliary Parameters<\/i><span>\u00a0field.<\/span><\/p><\/blockquote>\n<ul>\n<li>Passthrough<\/li>\n<li>Discard<\/li>\n<\/ul>\n<p><strong>Metadata (Special) Small Block Size<\/strong><\/p>\n<blockquote><p>This value represents the threshold block size for including small file blocks into the special allocation class. Blocks smaller than or equal to this value will be assigned to the special allocation class while greater blocks will be assigned to the regular class. Valid values are zero or a power of two from 512B up to 1M. The default size is 0 which means no small file blocks will be allocated in the special class. Before setting this property, a special class vdev must be added to the pool. See zpool(8) for more details on the special allocation<\/p><\/blockquote>\n<ul>\n<li>Inherit(0)<\/li>\n<li>0<\/li>\n<li>512B<\/li>\n<li>1K<\/li>\n<li>2K<\/li>\n<li>4K<\/li>\n<li>8K<\/li>\n<li>16K<\/li>\n<li>32K<\/li>\n<li>64K<\/li>\n<li>128K<\/li>\n<li>256K<\/li>\n<li>512K<\/li>\n<li>1M<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview TrueNAS Scale \u306e Dataset \u306e\u8a2d\u5b9a\u9805\u76ee\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3059\u308b\u3002 Reference Adding and Managing Datasets Environment TrueNAS Sca [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[],"class_list":["post-3476","post","type-post","status-publish","format-standard","hentry","category-nas"],"_links":{"self":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/3476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3476"}],"version-history":[{"count":14,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/3476\/revisions"}],"predecessor-version":[{"id":3523,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/3476\/revisions\/3523"}],"wp:attachment":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}