[LU-7160] Saved by change_nids .bak files on MGS should never be processed Created: 15/Sep/15 Updated: 22/Nov/18 Resolved: 22/Aug/16 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.9.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Artem Blagodarenko (Inactive) | Assignee: | WC Triage |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
lctl replace_nids command saves previous version of This patch adds code that skips file with .bak extention |
| Comments |
| Comment by Gerrit Updater [ 15/Sep/15 ] |
|
Artem Blagodarenko (artem.blagodarenko@seagate.com) uploaded a new patch: http://review.whamcloud.com/16428 |
| Comment by Gerrit Updater [ 22/Aug/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/16428/ |
| Comment by Peter Jones [ 22/Aug/16 ] |
|
Landed for 2.9 |
| Comment by Andreas Dilger [ 07/Sep/16 ] |
|
As mentioned in my review of http://review.whamcloud.com/16428/ I think this patch could be more robust. In addition to .bak files, I've personally made backup files of the form myth-MDT0000-20160811 before doing some major system change. Having the lctl replace_nids code change the NIDs in all of the backup files it finds kind of breaks the value of having backups in the first place... It would be more robust if the replace_nids code checked for specific filenames like fsname-<OST,MDT>nnnn and fsname-client and only modified those files instead of changing every file that it finds in CONFIGS/. |
| Comment by Andreas Dilger [ 07/Sep/16 ] |
|
Fan Yong, |
| Comment by nasf (Inactive) [ 08/Sep/16 ] |
|
Currently, the tools for rename filesystem name can filter out the names with "-" as postfix, such as "myth-MDT0000-20160811", after merging with the patch http://review.whamcloud.com/16428/, it also can filter out the names with ".bak" as postfix. As for other format, such as "myth-MDT0000.2016", it will not be filtered out. |
| Comment by Artem Blagodarenko (Inactive) [ 17/Jun/17 ] |
|
> I've personally made backup files of the form myth-MDT0000-20160811 before doing some major system change |