[LU-13357] striped directory doesn't support lookup Created: 11/Mar/20  Updated: 08/Aug/21  Resolved: 20/May/20

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

Type: Bug Priority: Major
Reporter: Lai Siyao Assignee: Lai Siyao
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-9460 lustre client mount fail if the nodem... Resolved
Related
is related to LU-13664 sanity-lfsck test_31d: FAIL: (8) Fail... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The dt_index_operations::dio_lookup() function is not implemented for striped directory, which will cause subdirectory mount from a striped directory fail.

# cd /system/

### Setup test directories
# lfs mkdir -c 1 -i 0 dir-mdt0-nostripe
# lfs mkdir -c 1 -i 1 dir-mdt1-nostripe
# lfs mkdir -c 2 dir-stripe
# mkdir dir-mdt0-nostripe/mountme
# mkdir dir-mdt1-nostripe/mountme
# mkdir dir-stripe/mountme

### Attempt mounts
# cd /tmp/lustremnt
# mkdir mount-dir

### Successful mounts from the non-striped directories on either MDT
# mount -t lustre 10.6.254.71@o2ib2:10.6.254.72@o2ib2:10.6.254.76@o2ib2:10.6.254.77@o2ib2:/testsys/dir-mdt0-nostripe/mountme mount-dir
# umount
# mount -t lustre 10.6.254.71@o2ib2:10.6.254.72@o2ib2:10.6.254.76@o2ib2:10.6.254.77@o2ib2:/testsys/dir-mdt1-nostripe/mountme mount-dir
# umount

### Fails to mount from striped directory
# mount -t lustre 10.6.254.71@o2ib2:10.6.254.72@o2ib2:10.6.254.76@o2ib2:10.6.254.77@o2ib2:/testsys/dir-stripe/mountme mount-dir

mount.lustre: mount 10.6.254.71@o2ib2:10.6.254.72@o2ib2:10.6.254.76@o2ib2:10.6.254.77@o2ib2:/testsys/dir-stripe/mountme at /mnt/mount-dir failed: No such file or directory
Is the MGS specification correct?
Is the filesystem name correct?
If upgrading, is the copied client log valid? (see upgrade docs)


 Comments   
Comment by Gerrit Updater [ 12/Mar/20 ]

Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37903
Subject: LU-13357 lod: implement striped directory .dio_lookup
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 3da3fc8c5b5c098ac35eb9148d220704c01acdf2

Comment by Gerrit Updater [ 20/May/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37903/
Subject: LU-13357 lod: implement striped directory .dio_lookup
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 42b0304e2571a80effe5bc4ab6fb58acfabb361d

Comment by Peter Jones [ 20/May/20 ]

Landed for 2.14

Comment by Gerrit Updater [ 21/May/20 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38691
Subject: LU-13357 lod: implement striped directory .dio_lookup
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: ce65d3ab18df83d96f9edbe7f6ffdc48dacd0d35

Comment by Gerrit Updater [ 10/Jun/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38691/
Subject: LU-13357 lod: implement striped directory .dio_lookup
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 67e992e81fc0bf2df0c17b3e7deb8202c8a25615

Comment by Gerrit Updater [ 12/Jun/20 ]

Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38923
Subject: Revert "LU-13357 lod: implement striped directory .dio_lookup"
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4acca7633f8e6b0a4d0435e50538fa2d4aebfe3c

Comment by Gerrit Updater [ 12/Jun/20 ]

Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38924
Subject: Revert "LU-13357 lod: implement striped directory .dio_lookup"
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: bd2eb100272947433abc6051aa2a7352fa25a08f

Comment by Andreas Dilger [ 22/Jun/20 ]

Do we need to reopen this issue? The b2_12 revert patch has not yet landed, and is also not in b2_12-next so it isn't clear if that is needed.

Generated at Sat Feb 10 03:00:35 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.