add "lfs migrate" support
(LU-2445)
|
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.5.0 |
| Fix Version/s: | Lustre 2.5.0 |
| Type: | Technical task | Priority: | Critical |
| Reporter: | Jinshan Xiong (Inactive) | Assignee: | Jinshan Xiong (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | HSM | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 7016 | ||||||||
| Description |
|
Proposed way to do exclusive open: 0. First of all, we have to perform most of the work in kernel space; 2. the MDT will handle IT_RELEASE as follows: From now on, if the file is opened by others, it will mark mdt_file_data that the exclusive open is broken. 3. Client: if IT_RELEASE_OPEN is finished successfully, and do followings: 4. Back to MDT to handle IT_RELEASE CLOSE: Basically we avoid granting EX layout lock back to client and introduce exclusive open so that we know it if the file has ever being accessed. I hope this can simplify things a little bit. Also, exclusive open can be used to implement file lease. And a bugfix for recovery: I'd like to update the special handling of replaying exclusive open request. There is a bug in current mode as follows: The root cause of this bug is that we don't store the exclusive open bit in persistent storage so we can't get it back over recovery. The fix is to check on the MDT side whenever the exclusive open is being replayed, it will be marked as broken all the time. |
| Comments |
| Comment by Aurelien Degremont (Inactive) [ 05/Apr/13 ] |
|
As Johann suggested, I've push a prototype of this patch, extract from my work on Release patch. |
| Comment by Jinshan Xiong (Inactive) [ 21/Jun/13 ] |
|
Another implementation is at http://review.whamcloud.com/6730 which is framework of lustre file lease but right now only excl open is supported. |