[LU-5808] Invalid llog records due to loose check of llog name Created: 27/Oct/14  Updated: 25/Aug/15  Resolved: 04/Dec/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.6.0, Lustre 2.7.0
Fix Version/s: Lustre 2.7.0

Type: Bug Priority: Major
Reporter: Li Xi (Inactive) Assignee: Cliff White (Inactive)
Resolution: Fixed Votes: 0
Labels: patch

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

 Description   

We are using one MGT to mange two file systems which names are 'lustre' and 'lustre2T'. However, it is impossible to mount their MDTs on different servers because parsing of MGS llog fails. We found the failure reason is that file systen 'lustre2T' has invalid records which should actually be the record of 'lustre'.

This problem can be reproduced easily by following commands:

mkfs.lustre --mgs --reformat /dev/sdb1;
mkfs.lustre --fsname lustre --mdt --reformat --mgsnode=192.168.3.122@tcp --index=0 /dev/sdb2;
mkfs.lustre --fsname lustre2T --mdt --reformat --mgsnode=192.168.3.122@tcp --index=0 /dev/sdb3;
mount -t lustre /dev/sdb1 /mnt/mgs;
mount -t lustre /dev/sdb2 /mnt/mdt-lustre;
mount -t lustre /dev/sdb3 /mnt/mdt-lustre2T;
lctl conf_param lustre.quota.ost=ug;
mount -t ldiskfs /dev/sdb1 /mnt/ldiskfs;
llog_reader /mnt/ldiskfs/CONFIGS/lustre2T-MDT0000 | grep quota.ost;

The output of the last command is:

#10 (224)marker 8 (flags=0x01, v2.5.25.0) lustre 'quota.ost' Mon Oct 27 21:26:23 2014-
#11 (088)param 0:lustre 1:quota.ost=ug
#12 (224)marker 8 (flags=0x02, v2.5.25.0) lustre 'quota.ost' Mon Oct 27 21:26:23 2014-



 Comments   
Comment by Li Xi (Inactive) [ 27/Oct/14 ]

Following is the patch which tries to fix this problem.

http://review.whamcloud.com/#/c/12437/

Comment by Peter Jones [ 27/Oct/14 ]

Cliff

Could you please take care of this patch?

Thanks

Peter

Comment by Gerrit Updater [ 04/Dec/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12437/
Subject: LU-5808 llog: check name strictly to avoid invalid record
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a039688121a6fd4ad6424c5baa8143bb0eaebe50

Comment by Cliff White (Inactive) [ 04/Dec/14 ]

Patch has been merged - please reopen if needed.

Generated at Sat Feb 10 01:54:42 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.