[LU-10282] 'lfs mirror create|extend' should support mirror flags Created: 27/Nov/17 Updated: 20/Jan/18 Resolved: 20/Jan/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.11.0 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Jinshan Xiong (Inactive) | Assignee: | Jinshan Xiong (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | FLR2 | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
lfs mirror create|extend should support mirror flags setting when creating new mirrors so that all components belong to the new mirrors will have the flags set. The flags are not inheritable so it will only apply to the mirrors in current '-N' option. For example: lfs mirror create -N2 --pool flash --flags preferred -N4 --pool hdd file the first two mirrors on flash pool will have 'preferred' flag set and it won't be applied to the last 4 mirrors on the 'hdd' pool. Similarly, the mirror flags should also work for lfs mirror extend and be applied to newly merged mirror from victim file or specified by setstripe options. Multiple flags are split by comma when existing. For example: lfs mirror create -N --flags preferred,stale -c 1 -N2 -c 2 file the first mirror will have both 'preferred' and 'stale' flags set, though I don't know why someone would like to set these two flags at the same time. |
| Comments |
| Comment by Gerrit Updater [ 04/Dec/17 ] |
|
Jinshan Xiong (jinshan.xiong@intel.com) uploaded a new patch: https://review.whamcloud.com/30360 |
| Comment by Gerrit Updater [ 20/Jan/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30360/ |
| Comment by Peter Jones [ 20/Jan/18 ] |
|
Landed for 2.11 |