[LU-10258] lfs mirror command to read/write specific mirror copy Created: 19/Nov/17 Updated: 13/Jun/22 Resolved: 21/Mar/19 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.13.0, Lustre 2.12.3 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | Zhenyu Xu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | FLR2 | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||||||||||
| Description |
|
It would be useful to add an "lfs open [--ifcomp=<component_id>] [--ofcomp=<component_id>] <command>" that opens the stdin and/or stdout with the specified component ID values, so that e.g. "dd" could be used as a resync tool for stale components, or other arbitrary commands (e.g. MPI file utils for parallel resync, HSM tools for archive handling, etc). Also useful would be to open a specific mirror number for whole-file access, instead of just a single component. That would be something like "--ifrepl=" and "--ofrepl=" options. |
| Comments |
| Comment by Jinshan Xiong (Inactive) [ 23/Nov/17 ] |
The problem with --ifcomp is that sometimes components are not started from beginning of the file; neither are components perfectly aligned. Therefore it would be hard to define the semantics clearly. |
| Comment by Jinshan Xiong (Inactive) [ 23/Nov/17 ] |
|
From https://review.whamcloud.com/#/c/29100/23/lustre/doc/lfs-mirror-verify.1 Andreas Dilger Nov 22 9:37 PM
|
| Comment by Andreas Dilger [ 25/Nov/17 ] |
I think there are legitimate use cases for opening a component and allowing writes outside of the component start/end. For example, migrating a large DoM file from the MDT to the start of an OST object and freeing up space on the MDT. |
| Comment by Andreas Dilger [ 20/Sep/18 ] |
|
I wonder if we should rename this to "lfs mirror write" and rename "lfs mirror dump" to "lfs mirror read" for consistency? |
| Comment by Gerrit Updater [ 22/Sep/18 ] |
|
Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/33219 |
| Comment by Gerrit Updater [ 22/Sep/18 ] |
|
Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/33220 |
| Comment by Gerrit Updater [ 02/Nov/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33219/ |
| Comment by Gerrit Updater [ 21/Mar/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33220/ |
| Comment by Peter Jones [ 21/Mar/19 ] |
|
Landed for 2.13 |
| Comment by Gerrit Updater [ 16/Sep/19 ] |
|
Jian Yu (yujian@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36193 |
| Comment by Gerrit Updater [ 23/Sep/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36193/ |