From: Lai Siyao Date: Fri, 18 Dec 2020 15:03:22 +0000 (+0800) Subject: LUDOC-462 mdt: doc for directory restripe and auto-split X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F41060%2F5;p=doc%2Fmanual.git LUDOC-462 mdt: doc for directory restripe and auto-split Document for directory restripe and auto-split, which is implemented in LU-11025. Change-Id: If3b4781cad79eef0678bca98046e15255d150c88 Signed-off-by: Lai Siyao Reviewed-on: https://review.whamcloud.com/41060 Reviewed-by: Andreas Dilger Tested-by: jenkins --- diff --git a/ManagingFileSystemIO.xml b/ManagingFileSystemIO.xml index f9842c5..49350a0 100644 --- a/ManagingFileSystemIO.xml +++ b/ManagingFileSystemIO.xml @@ -198,6 +198,46 @@ $ lfs getstripe -m ./remotedir/file.*.txtcheck files are on MDT0 this migration. However, you cannot abort a failed migration, or migrate to different MDTs from previous migration command. +
+ <indexterm> + <primary>migrating metadata</primary> + </indexterm>Directory Restriping + Lustre 2.14 includs a feature to change the stripe count of an + existing directory. The lfs setdirstripe -c command + can be performed on an existing directory to change its stripe count. + For example, a directory /testfs/testdir is becoming + large, run the following command to increase its stripe count to + 2: + $ lfs setdirstripe -c 2 /testfs/testdir + By default directory restriping will migrate sub-file dirents only, + but it won't move inodes. To enable moving both dirents and inodes, run + the following command on all MDS's: + mds$ lctl set_param mdt.*.dir_restripe_nsonly=0 + It's not allowed to specify MDTs in directory restriping, instead + server will pick MDTs for the added stripes by space and inode usages. + During restriping, directory and its sub-files can be accessed like + normal ones, which is the same as directory migration. Similarly you + cannot abort a failed restriping, and server will resume the failed + restriping automatically when it notices an unfinished restriping. +
+
+ <indexterm> + <primary>migrating metadata</primary> + </indexterm>Directory Auto-Split + Lustre 2.14 includs a feature to automatically increase the stripe + count of a directory when it becomes large. This can be enabled by the + following command: + mds$ lctl set_param mdt.*.enable_dir_auto_split=1 + The sub file count that triggers directory auto-split is 50k, and + it can be changed by the following command: + mds$ lctl set_param mdt.*.dir_split_count=value + The directory stripe count will be increased from 0 to 4 if it's a + plain directory, and from 4 to 8 upon the second split, and so on. + However the final stripe count won't exceed total MDT count, and it will + stop splitting when it's distributed among all MDTs. This delta value + can be changed by the following command: + mds$ lctl set_param mdt.*.dir_split_delta=value +