[LU-14268] mirror split does not increase layout generation properly Created: 22/Dec/20  Updated: 26/Feb/21  Resolved: 26/Feb/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.15.0

Type: Bug Priority: Minor
Reporter: Zhenyu Xu Assignee: Zhenyu Xu
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

To reproduce the hang try:

lfs setstripe -c1 -i0 /mnt/lustre/f0
umount /mnt/lustre-mds1
mount /dev/mapper/mds1_flakey /mnt/lustre-mds1 -t lustre
lfs mirror extend -N -c1 -i1 /mnt/lustre/f0
umount /mnt/lustre-mds1
mount /dev/mapper/mds1_flakey /mnt/lustre-mds1 -t lustre
lfs mirror split -d --mirror-id=1 /mnt/lustre/f0
dd if=/dev/zero of=/mnt/lustre/f0 bs=1M count=1

The layout generation does not increase in mirror split, and not set the flr state properly, so client does not get the updated layout and setattr loops sending write intent RPC while cannot get the latest layout.



 Comments   
Comment by Gerrit Updater [ 22/Dec/20 ]

Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/41068
Subject: LU-14268 lod: fix layout generation inc for mirror split
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 27d0c8a1006ca4b6a53c69e2ba120be509b62413

Comment by Gerrit Updater [ 26/Feb/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41068/
Subject: LU-14268 lod: fix layout generation inc for mirror split
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ffa858b1657145c7e3d9988291fbb1ef72b3b980

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