[LU-8616] DNE3: enhance "lfs mkdir" to select specific MDTs Created: 15/Sep/16  Updated: 28/Jan/22  Resolved: 09/Jan/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.11.0, Lustre 2.12.0

Type: New Feature Priority: Major
Reporter: Adam Roe (Inactive) Assignee: Lai Siyao
Resolution: Fixed Votes: 0
Labels: dne3

Issue Links:
Cloners
is cloned by LU-15494 DNE3: "lfs setdirstripe -D" for speci... Open
Related
is related to LU-11571 MDT pool Open
is related to LU-9392 lfs migrate -o and lfs setstripe -o s... Open
is related to LU-10766 Incorrect freeing in llapi_dir_create Resolved
is related to LU-7827 DNE3: automatically select MDT for lf... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

Request to enhance the functionality of "lfs setdirstripe" to include the selection of specific MDT's as appose to a series.

The current implementation allows for stripe on a series of MDT's, e.g.:

lfs setdirstripe -D -i 0 -c 4 /some/dir

This will stripe to 4 MDT's at the start index of MDT0.

I am proposing we enhance this to stripe to multiple specific MDT's, e.g.:

lfs setdirstripe -D -o 1,3,5,7 /some/dir

This will stripe to 4 specific MDT's with the indexes 1, 3, 5 & 7 - in which case no start index would be required.

This will allow for more controllable striping in a case where a file system could have many MDT's across many systems and in cases where multiple MDT's may exist on one server.



 Comments   
Comment by Lai Siyao [ 07/Nov/17 ]

To implement this elegantly, we need to introduce 'pool' to dir striping like data striping first.

Comment by Gerrit Updater [ 18/Dec/17 ]

Lai Siyao (lai.siyao@intel.com) uploaded a new patch: https://review.whamcloud.com/30566
Subject: LU-8616 dne: allow mkdir with specific MDTs
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 3e14166dc8ad2c524b73bf30c91c86d35345c589

Comment by Gerrit Updater [ 09/Jan/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30566/
Subject: LU-8616 dne: allow mkdir with specific MDTs
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 087ec276de0bc79db66b614e1f17ff0bf631464f

Comment by Minh Diep [ 09/Jan/18 ]

Landed in 2.11

Comment by Andreas Dilger [ 22/Sep/18 ]

Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33216
Subject: LU-8616 utils: document specific MDT index selection
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 308a42599b25969dcac97505bee40ffc14fdcb16

Comment by Gerrit Updater [ 05/Oct/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33216/
Subject: LU-8616 utils: document specific MDT index selection
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: e2a8cd070cb0ffb5b7bb89ce284e4cb41b99f7ef

Comment by Andreas Dilger [ 28/Jan/22 ]

The patch here allowed creating new directories with specific MDTs, but didn't add the ability to set default directory layouts with specific MDTs. I've filed LU-15494 for that.

Generated at Sat Feb 10 02:19:06 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.