[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). # 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). 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 |
| Comment by Gerrit Updater [ 22/Apr/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/19594/ |
| Comment by Joseph Gmitter (Inactive) [ 27/Apr/16 ] |
|
Landed to master for 2.9.0 |