[LU-7109] Update OST-index in IDIF inside osd-ldiskfs Created: 05/Sep/15 Updated: 12/May/16 Resolved: 28/Oct/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | nasf (Inactive) | Assignee: | nasf (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Severity: | 3 | ||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
Old IDIF used "0" as the OST index, that may cause compatibility issues when update. There is switch inside osd-ldiskfs for controlling whether convert old IDIF to new one. Once the real OST index became part of the IDIF and stored on disk (in LMA EA), then the OST cannot be downgraded. Because the conversion switch is inside osd-ldiskfs, the LFSCK should not update the IDIF-in-LMA, instead, leave it to be handled by OSD to avoid downgrading trouble. |
| Comments |
| Comment by nasf (Inactive) [ 05/Sep/15 ] |
|
Fan Yong (fan.yong@intel.com) uploaded a new patch: http://review.whamcloud.com/16282 |
| Comment by Andreas Dilger [ 08/Sep/15 ] |
|
Fan Yong, what is the impact of this bug? Does the OSS or LFSCK crash or hang without the patch? Is there memory corruption? |
| Comment by nasf (Inactive) [ 08/Sep/15 ] |
|
It is the OST's duty to decide whether the OST index is finally stored inside the IDIF-in-LMA, similar as "dirdata" feature. Once the feature of "OST index in IDIF-in-LMA" is enabled, then the on-disk format will be changed, and then the OST cannot be downgraded to old version. Current LFSCK will store the OST index in IDIF and update the LMA by force, such improper behaviour will affect the downgrade. As for memory corruption, I do NOT think there is any relationship. |
| Comment by Gerrit Updater [ 28/Oct/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16282/ |
| Comment by Joseph Gmitter (Inactive) [ 28/Oct/15 ] |
|
Landed for 2.8 |