[LU-8009] Lustre_rsync does not sync files on MDT1 Created: 12/Apr/16  Updated: 27/Apr/16  Resolved: 27/Apr/16

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

Type: Bug Priority: Major
Reporter: Tatsushi Takamura Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

It appears that lustre_rsync does not sync files on MDT1(not MDT0).
Steps to reproduce are as follows:
1) setup changelog on MDT1

#  lctl --device lustre-MDT0001 changelog_register

2) create a sub-directory on MDT1

#  lfs mkdir -i 1 /lustre/mdt1_dir/

3) make the Lustre file system and the replica file system identical

#  rsync -av /lustre/ /mnt/lustre-rsync/

4) create files on the sub-directory on MDT1

# echo aaa > /lustre/mdt1_dir/file

5) run lustre_rsync

# lustre_rsync  --source=/lustre --target=/mnt/lustre-rsync --mdt=lustre-MDT0001 --user=cl1 --verbose

(/mnt/lustre-rsync/mdt1_dir/file is not created)

We think this is because the 3rd parameter of llapi_changelog_start() in lr_replicate() is source file system(status->ls_source_fs), not MDT device(status->ls_mdt_device).
So lustre_rsync refers a wrong changelog.

If we modify this parameter, lustre_rsync replicates correctly.



 Comments   
Comment by Andreas Dilger [ 12/Apr/16 ]

Can you please submit a patch with your change.

Comment by Tatsushi Takamura [ 13/Apr/16 ]

Sure, I will make a patch in a few days.

Comment by Gerrit Updater [ 15/Apr/16 ]

Tatsushi Takamura (takamr.tatsushi@jp.fujitsu.com) uploaded a new patch: http://review.whamcloud.com/19594
Subject: LU-8009 utils: Lustre_rsync does not sync files on MDT1
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: da8c304cbc44972fe0a8b79ac1fc0464d227d546

Comment by Gerrit Updater [ 22/Apr/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/19594/
Subject: LU-8009 utils: Lustre_rsync does not sync files on MDT1
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 3222fcd13868a9fcc520af53ae1ff739ba59908f

Comment by Joseph Gmitter (Inactive) [ 27/Apr/16 ]

Landed to master for 2.9.0

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