Lustre HSM HLD draft
Hello
Here is a first draft for comments of the Lustre HSM HLD. It is intended to be a support for further analyzes and comments from CFS/Sun.
The document covers the main parts of the HSM features but some elements are still lacking.
The policy management and the space manager will be describe later.
Let us know your comments and ideas about it.
Regards,
Aurelien Degremont
CEA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hld_hsm.pdf
Type: application/pdf
Size: 159329 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20080207/dd334e91/attachment.pdf>
Quoted 6 lines · DEGREMONT Aurelien
Hello
Here is a first draft for comments of the Lustre HSM HLD. It is intended to be a support for further analyzes and comments from CFS/Sun.
Quoted 7 lines
The document covers the main parts of the HSM features but some elements are still lacking.
The policy management and the space manager will be describe later.Let us know your comments and ideas about it.
Regards,
5.1 external storage list - is this to be stored on the MGS device or a separate device? If the coordinator lives on the MGS, why not it's storage as well? In any case, it should be possible to co-locate the coordinator on the MGS and used the MGS's storage device, in the same way that the MGS can currently co-locate with the MDT.
6.3 object ref should include version number. Also include checksum?
How does the coordinator request activity from an agent? If the coordinator is the RPC server, then it's up to the agents to make requests; agents aren't listening for RPC requests themselves.
2.1Archiving one Lustre file
There should not be a cache miss when archiving a lustre file; perhaps open-by-fid is intended to bypass atime updates
so that the file isn't marked as "recently accessed"? 2.2Restoring a file
"External ID" presumably contains all information required to retrieve the file - tape #, path name, etc?
Once file is copied back, we should probably restore original ctime, mtime, atime - coordinator is storing this, correct?
IV2 - why not multiple purged windows? Seems like if you're going to purge 1 object out of a file, you might want to purge more. Specifically, it will probably be a common case to purge every object of a file from a particular OST. This is not contiguous in a striped file.
I don't see any reason to purge anything smaller than an entire object on an OST - is there good reason for this?
If that's the case, then it the OST must keep track of purged objects, not ranges within an existing object.
If the MDT is tracking purged areas also, then there's a good potential synergy here with a missing OST --
If the missing OST's objects are marked as purged, then we can potentially recover them automatically from
HSM...
4.2 How is a purge request recovered? For example, MDT says purge obj1 from ost1, ost1 replies "ok", but then dies before it actually does the purge. Reboots, doesn't know anything about purge request now, but MDT has marked it as purged.
Transparent access - should this avoid modification of atime/mtime?
V2.1 How long does OST wait for completion? Is there a timeout? We
probably need a "no timeout if progress is being
made" kind of function - clients currently do this kind of thing with OSTs. V2.2 No need to copy-in purged data on full-object-size writes.
Page 13, Lustre object mtime may not be good enough. There are several
mechanisms (like touch) to manipulate mtime, which makes it unusable as a last written time.
If a user make a touch in the past this change the mtime and can hide
previous writes.
If we want to keep real write time we need to add a new time field in
Lustre backend
(may be ZFS has it)
If a user touches or otherwise modifies the mtime on purpose, they presumably know what they are doing. Besides, we're using the object version number, not the mtime, to determine whether a file is up to date. I think this can be ignored.
Nathaniel Rutman a ?crit :
Quoted 8 lines
5.1 external storage list - is this to be stored on the MGS device or a separate device? If the coordinator lives on the MGS, why not it's storage as well? In any case, it should be possible to co-locate the coordinator on the MGS and used the MGS's storage device, in the same way that the MGS can currently co-locate with the MDT.
How does the coordinator request activity from an agent? If the coordinator is the RPC server, then it's up to the agents to make requests; agents aren't listening for RPC requests themselves.
Presently, it is never said that the coordinator will live on the MGS. The Coordinator constrains are:
1 - Must receive various migration requests from OST/MDT.
2 - Should be able to communicate with Agents and asks them migrations. 3 - Should store configuration and migration logs.
I think #1 and #2 are two differents API. The coordinator is clearly a RPC server for the first one. How #2 should be implemented is not so clear. What would be be the "Lustre-way" here?
For #3, the few logs that will be backed up here are not huge, and it surely could be colocated with another Target, but I'm not sure this should be mandatory. This device should be available to several servers, for failover like the other Targets. We could imagine having more than 1 coordinator at long term. I'm not sure it is a good idea to stick it to another target.
Quoted 1 line
6.3 object ref should include version number. Also include checksum?
For data coherency? Should we add a explicit checksum for those values (stored in an EA) or used a possible backend feature (Can ZFS and ldiskfs detect EA value corruption by themselves?) ?
Quoted 5 lines
2.1Archiving one Lustre file
There should not be a cache miss when archiving a lustre file; perhaps open-by-fid is intended to bypass atime updates
so that the file isn't marked as "recently accessed"? Transparent access - should this avoid modification of atime/mtime?
I would say yes.
Quoted 5 lines
2.2Restoring a file
"External ID" presumably contains all information required to retrieve the file - tape #, path name, etc?
Once file is copied back, we should probably restore original ctime, mtime, atime - coordinator is storing this, correct?
External ID is an opaque value manage by the archiving tool. If the HSM can store a lot of metadata, only a ref is needed, if not, the tool is responsible for storing all the data it needs. Anyway, this is totally opaque for Lustre.
I hope the HSMs will not need so many data in this field. HPSS does not need so many data, it uses its internal DB to store them. I suppose SAM also.
Quoted 7 lines
IV2 - why not multiple purged windows? Seems like if you're going to purge 1 object out of a file, you might want to purge more. Specifically, it will probably be a common case to purge every object of a file from a particular OST. This is not contiguous in a striped file.
I don't see any reason to purge anything smaller than an entire object on an OST - is there good reason for this?
Multiple purged window is subtle. If you permit this feature, you could technically have, in the worst case, one purged window per byte, and this could be very huge to store. Do you think you will do several holes in the same file? In which cases?
In fact, the more common case is to totally purge a file which have been
migrated on HSM, and it is only an optimisation to keep the start and
the end of the file on disk, to avoid triggering tons of cache misses with commands like "file foo/*" or a tool like Nautilus or Windows Explorer browsing the directory.
The purged window is stored by per object, OST object and MDT object. So, if several objects are purged, each object will store its own purged window. But the MDT object describing this file will store a special purged window which starts at the smallest unavailable bytes and ends at the first available one. The MDT purged window indicates "if you do I/O in this range, you're not sure the date are there." or "Outside of this area, I guarantee data are present."
Maintain multiple purged windows will be an headache, with no real need I think.
Moreover, people have asked for an OST-object based migration, even if I think whole file migration will be the most common case.
Quoted 3 lines
If that's the case, then it
the OST must keep track of purged objects, not ranges within an existing object.
Objects are not removed, only their datas. All metadata are kept.
Quoted 5 lines
If the MDT is tracking purged areas also, then there's a good potential synergy here with a missing OST --
If the missing OST's objects are marked as purged, then we can potentially recover them automatically from
HSM...
What do you call a "missing OST" ? A corrupt one ? A offline one? Unavailable?
Where will you copy back the object data ? On another OST object ? With the purged window on each OST object and MDT and the file stripping info, we could easily restore the missing parts.
Quoted 4 lines
4.2 How is a purge request recovered? For example, MDT says purge obj1 from ost1, ost1 replies "ok", but then dies before it actually does the purge. Reboots, doesn't know anything about purge request now, but MDT has marked it as purged.
The OST asynchronously acknowledges the purge when it is done. The MDT marks it purged only when it is really done. I will clarify this.
Quoted 3 lines
V2.1 How long does OST wait for completion? Is there a timeout? We
probably need a "no timeout if progress is being
made" kind of function - clients currently do this kind of thing with OSTs.
I'm sure Lustre already has similar mechanisms for optimized timeout in this kind of situation we could reused here.
What you describe is a good approach I think.
Quoted 1 line
V2.2 No need to copy-in purged data on full-object-size writes.
True. We could had such optimization. But this is only useful for small files or very widely stripped ones, doesn't it?
Thanks for your comments.
Signature · 2 lines
Aurelien Degremont CEA
Quoted 18 lines · Aurelien Degremont
Nathaniel Rutman a ?crit :
Quoted 9 lines
5.1 external storage list - is this to be stored on the MGS device or a separate device? If the coordinator lives on the MGS, why not it's storage as well? In any case, it should be possible to co-locate the coordinator on the MGS and used the MGS's storage device, in the same way that the MGS can currently co-locate with the MDT.
How does the coordinator request activity from an agent? If the coordinator is the RPC server, then it's up to the agents to make requests; agents aren't listening for RPC requests themselves.Presently, it is never said that the coordinator will live on the MGS. The Coordinator constrains are:
1 - Must receive various migration requests from OST/MDT.
2 - Should be able to communicate with Agents and asks them migrations. 3 - Should store configuration and migration logs.
Quoted 4 lines
I think #1 and #2 are two differents API. The coordinator is clearly a RPC server for the first one. How #2 should be implemented is not so clear. What would be be the "Lustre-way" here?
With userspace servers, presumably we have some way of passing LNET messages
from kernel to userspace. We should probably still go through LNET for #2 in order
to use the broadest range of network fabrics. So it could be the same or similar
RPC. There is no "Lustre-way" for this area - we've never done this kind of thing before.
Quoted 7 lines
For #3, the few logs that will be backed up here are not huge, and it surely could be colocated with another Target, but I'm not sure this should be mandatory. This device should be available to several servers, for failover like the other Targets. We could imagine having more than 1 coordinator at long term. I'm not sure it is a good idea to stick it to another target.
Not mandatory, but possible is nice. Minimize the number of required partitions.
Quoted 8 lines
Quoted 3 lines
6.3 object ref should include version number. Also include checksum?
For data coherency? Should we add a explicit checksum for those values (stored in an EA) or used a possible backend feature (Can ZFS and ldiskfs detect EA value corruption by themselves?) ?
ZFS can, ldiskfs cannot. Anyhow, it was just a thought. Doesn't hurt to allow space for it.
Quoted 18 lines
Quoted 7 lines
2.1Archiving one Lustre file
There should not be a cache miss when archiving a lustre file; perhaps open-by-fid is intended to bypass atime updates
so that the file isn't marked as "recently accessed"?Transparent access - should this avoid modification of atime/mtime?
I would say yes.
Quoted 6 lines
2.2Restoring a file
"External ID" presumably contains all information required to retrieve the file - tape #, path name, etc?
Once file is copied back, we should probably restore original ctime, mtime, atime - coordinator is storing this, correct?
Quoted 8 lines
External ID is an opaque value manage by the archiving tool. If the HSM can store a lot of metadata, only a ref is needed, if not, the tool is responsible for storing all the data it needs. Anyway, this is totally opaque for Lustre.
I hope the HSMs will not need so many data in this field. HPSS does not need so many data, it uses its internal DB to store them. I suppose SAM also.
What about restore of original ctime, mtime, atime? I think we must store it
in the coordinator because we must work with all HSMs, and I think it is important
to restore it.
Quoted 10 lines
Quoted 9 lines
IV2 - why not multiple purged windows? Seems like if you're going to purge 1 object out of a file, you might want to purge more. Specifically, it will probably be a common case to purge every object of a file from a particular OST. This is not contiguous in a striped file.
I don't see any reason to purge anything smaller than an entire object on an OST - is there good reason for this?
Quoted 5 lines
Multiple purged window is subtle. If you permit this feature, you could technically have, in the worst case, one purged window per byte, and this could be very huge to store. Do you think you will do several holes in the same file? In which cases?
Like I said, I don't see any reason to purge anything smaller than a full object; I
would in fact disallow purging of an arbitrary byte range, and only allow purging
on full-object boundaries.
Quoted 6 lines
In fact, the more common case is to totally purge a file which have been
migrated on HSM, and it is only an optimisation to keep the start and
the end of the file on disk, to avoid triggering tons of cache misses with commands like "file foo/*" or a tool like Nautilus or Windows Explorer browsing the directory.
Again, since Lustre is optimized to work with 1MB chunks anyhow, I don't think
it helps much to keep less than that in the beginning / end objects, so I would
say just keep the first and last blocks instead.
Quoted 29 lines
The purged window is stored by per object, OST object and MDT object. So, if several objects are purged, each object will store its own purged window. But the MDT object describing this file will store a special purged window which starts at the smallest unavailable bytes and ends at the first available one. The MDT purged window indicates "if you do I/O in this range, you're not sure the date are there." or "Outside of this area, I guarantee data are present."
Maintain multiple purged windows will be an headache, with no real need I think.
Moreover, people have asked for an OST-object based migration, even if I think whole file migration will be the most common case.Quoted 5 lines
If that's the case, then it
the OST must keep track of purged objects, not ranges within an existing object.
Objects are not removed, only their datas. All metadata are kept.
Quoted 6 lines
If the MDT is tracking purged areas also, then there's a good potential synergy here with a missing OST --
If the missing OST's objects are marked as purged, then we can potentially recover them automatically from
HSM...
Quoted 3 lines
What do you call a "missing OST" ? A corrupt one ? A offline one? Unavailable?
Yes. All of the above. Obviously we need to distinguish between "permanently
gone" and "temporarily gone".
Quoted 2 lines
Where will you copy back the object data ? On another OST object ?
Yes. Some kind of recovery will take place to generate a new object on a different OST and
we can restore the data there.
Quoted 3 lines
With the purged window on each OST object and MDT and the file stripping info, we could easily restore the missing parts.
Exactly. This is why I say we should think about this now, to allow for this
possibility.
Quoted 21 lines
Quoted 6 lines
4.2 How is a purge request recovered? For example, MDT says purge obj1 from ost1, ost1 replies "ok", but then dies before it actually does the purge. Reboots, doesn't know anything about purge request now, but MDT has marked it as purged.
The OST asynchronously acknowledges the purge when it is done. The MDT marks it purged only when it is really done. I will clarify this.
Quoted 4 lines
V2.1 How long does OST wait for completion? Is there a timeout? We
probably need a "no timeout if progress is being
made" kind of function - clients currently do this kind of thing with OSTs.I'm sure Lustre already has similar mechanisms for optimized timeout in this kind of situation we could reused here.
What you describe is a good approach I think.
Quoted 6 lines
Quoted 2 lines
V2.2 No need to copy-in purged data on full-object-size writes.
True. We could had such optimization. But this is only useful for small files or very widely stripped ones, doesn't it?
No, we very frequently write entire stripes (objects). Lustre clients can optimize for this.
Quoted 4 lines
Thanks for your comments.
Quoted 10 lines · Nathaniel Rutman
Quoted 9 lines · Aurelien Degremont
Nathaniel Rutman a ?crit :
Quoted 7 lines
IV2 - why not multiple purged windows? Seems like if you're going to purge 1 object out of a file, you might want to purge more. Specifically, it will probably be a common case to purge every object of a file from a particular OST. This is not contiguous in a striped file.
I don't see any reason to purge anything smaller than an entire object on an OST - is there good reason for this?
Quoted 4 lines
Quoted 4 lines
Multiple purged window is subtle. If you permit this feature, you could technically have, in the worst case, one purged window per byte, and this could be very huge to store. Do you think you will do several holes in the same file? In which cases?
One issue is that if you are purging individual objects from a file your windows will be quite disjoint at the file level. That may not be a serious problem for applications that only look at the first and last chunks of a file.
I can imagine use cases for extremely large files and limited-sized caches where there is a need to access only subsets of the file (i.e. the entire file cannot be resident at one time). That said, it may be this is too complex for the initial implementation.
Quoted 3 lines
Like I said, I don't see any reason to purge anything smaller than a full object; I would in fact disallow purging of an arbitrary byte range, and only allow purging on full-object boundaries.
That is impractical, for the reasons that Aurelien mentioned - we want to avoid file re-staging for tools like "file" and GUIs that read the start/end of files to determine file type and icons.
Quoted 9 lines
Quoted 5 lines
In fact, the more common case is to totally purge a file which have been migrated on HSM, and it is only an optimisation to keep the start and the end of the file on disk, to avoid triggering tons of cache misses with commands like "file foo/*" or a tool like Nautilus or Windows Explorer browsing the directory.
Again, since Lustre is optimized to work with 1MB chunks anyhow, I don't think it helps much to keep less than that in the beginning / end objects, so I would say just keep the first and last blocks instead.
What if file is N*1MB + 1 byte? We need to be able to keep something like 64kB for a windows icon, so having some arbitrary byte range seems reasonable.
Quoted 5 lines
Quoted 5 lines
The purged window is stored by per object, OST object and MDT object. So, if several objects are purged, each object will store its own purged window. But the MDT object describing this file will store a special purged window which starts at the smallest unavailable bytes and ends at the first available one.
I think this should read "ends at the highest range contiguous to the end of the file" or similar, or it will be misleading in the multi-object case.
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
the OST must keep track of purged objects, not ranges within an existing object.
Objects are not removed, only their datas. All metadata are kept.
The one drawback with this approach is that it is not possible to HSM copy-in objects to a different OST than where they were originally stored. BUT... in conjunction with the migration tool it should be able to migrate an (empty) object from one OST to another before the copy-in from HSM, so long as there is no OST-specific data in the HSM identifier (i.e. the HSM label is truely opaque).
Quoted 11 lines
Quoted 8 lines
Quoted 5 lines
If the MDT is tracking purged areas also, then there's a good potential synergy here with a missing OST --
If the missing OST's objects are marked as purged, then we can potentially recover them automatically from
HSM...What do you call a "missing OST" ? A corrupt one ? A offline one? Unavailable?
Yes. All of the above. Obviously we need to distinguish between "permanently gone" and "temporarily gone".
I suppose this leads to a requirement to store the object in HSM so that it can be accessed just by the object FID+version. That would allow the OST to be restored from HSM even if the entire OST filesystem is lost, potentially modifying the FLDB to relocate the FID to a different OST.
Quoted 9 lines
Quoted 1 line
Where will you copy back the object data ? On another OST object ?
Yes. Some kind of recovery will take place to generate a new object on a different OST and we can restore the data there.
Quoted 2 lines
With the purged window on each OST object and MDT and the file stripping info, we could easily restore the missing parts.
Exactly. This is why I say we should think about this now, to allow for this possibility.
Right.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
Hi,
Sorry if these questions duplicates previous debate.
Have I understood correctly that the design allows individual objects within a lustre file (i.e. stripes?) to be purged independently?
If so why is this needed?
I would have thought that when you purge a file, you need only record the purged extent as an attribute of the whole lustre file and punch its stripes to free the space. Am I missing a use case?
Signature · 2 lines
Cheers,
EricEric Barton a ?crit :
Quoted 4 lines
Hi,
Sorry if these questions duplicates previous debate.
Quoted 8 lines
Have I understood correctly that the design allows individual objects within a lustre file (i.e. stripes?) to be purged independently?
If so why is this needed?
I would have thought that when you purge a file, you need only record the purged extent as an attribute of the whole lustre file and punch its stripes to free the space. Am I missing a use case?
Since the beginning CFS required this feature. It seems a lab ask for it. I do not know who. Unfortunately we have no use case for what they want to do with this.
I'm wondering if their need could not be met with other features like the internal Lustre migration...
Signature · 2 lines
Aurelien Degremont CEA
Quoted 12 lines · Aurelien Degremont
Eric Barton a ?crit :
Quoted 10 lines
Sorry if these questions duplicates previous debate.
Have I understood correctly that the design allows individual objects within a lustre file (i.e. stripes?) to be purged independently?
If so why is this needed?
I would have thought that when you purge a file, you need only record the purged extent as an attribute of the whole lustre file and punch its stripes to free the space. Am I missing a use case?
Quoted 5 lines
Since the beginning CFS required this feature. It seems a lab ask for it. I do not know who. Unfortunately we have no use case for what they want to do with this.
I'm wondering if their need could not be met with other features like the internal Lustre migration...
That is my understanding also - I believe one of the Labs wanted this (to be able to do HSM on a per-stripe basis instead of a per-file basis).
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
Andreas,
Is this requirement documented? I'd appreciate any pointers...
Quoted 44 lines
-----Original Message-----
From: Andreas.Dilger at Sun.COM [mailto:Andreas.Dilger at Sun.COM] On Behalf Of Andreas Dilger
Sent: 12 February 2008 5:23 PM
To: Aurelien Degremont
Cc: Eric Barton; lustre-devel at lists.lustre.org
Subject: Re: [Lustre-devel] Lustre HSM HLD draftQuoted 4 lines · Aurelien Degremont
Eric Barton a ?crit :
Quoted 3 lines
Sorry if these questions duplicates previous debate.
Have I understood correctly that the design allows
individual objects
Quoted 5 lines
Quoted 5 lines
within a lustre file (i.e. stripes?) to be purged independently?
If so why is this needed?
I would have thought that when you purge a file, you need
only record
Quoted 1 line
Quoted 1 line
the purged extent as an attribute of the whole lustre
file and punch
Quoted 3 lines
Quoted 1 line
its stripes to free the space. Am I missing a use case?
Since the beginning CFS required this feature. It seems a
lab ask for
Quoted 1 line
it. I do not know who. Unfortunately we have no use case
for what they
Quoted 2 lines
want to do with this.
I'm wondering if their need could not be met with otherfeatures like
Quoted 1 line
the internal Lustre migration...
That is my understanding also - I believe one of the Labs wanted this (to be able to do HSM on a per-stripe basis instead of a per-file basis).
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
Quoted 22 lines · Andreas Dilger
Quoted 13 lines · Aurelien Degremont
Eric Barton a ?crit :
Quoted 11 lines
Sorry if these questions duplicates previous debate.
Have I understood correctly that the design allows individual objects within a lustre file (i.e. stripes?) to be purged independently?
If so why is this needed?
I would have thought that when you purge a file, you need only record the purged extent as an attribute of the whole lustre file and punch its stripes to free the space. Am I missing a use case?
Quoted 6 lines
Since the beginning CFS required this feature. It seems a lab ask for it. I do not know who. Unfortunately we have no use case for what they want to do with this.
I'm wondering if their need could not be met with other features like the internal Lustre migration...
Quoted 3 lines
That is my understanding also - I believe one of the Labs wanted this (to be able to do HSM on a per-stripe basis instead of a per-file basis).
This doesn't make any sense to me. Layouts may change;
a stripe on one filesystem may not correspond to a stripe on a replica of the filesystem;
exposing stripes to user apps is a bad idea.
I'm going to propose what I think we need:
1. Punch a single, arbitrary byte range from the middle of a file (thus leaving beginning and end for file type, icons, filesize.
2. No other arbitrary punch patterns.
3. The punched range is stored on the MDT alone.
4. Once punched, the OST may forget about any fully-punched stripes it used to hold.
5. Clients must take a layout lock (CR) when they retrieve the layout from the MDT. If the MDT punches from the middle, it revokes the layout
lock,
and clients must re-enqueue it for further read/write on the file.
The MDT
is the sole keeper of the layout, and it must be protected by a lock.
6. Client access within a punched range results in an RPC to the MDT. The MDT decides where to put the restored data, organizes the restoration (via the coordinator), and rewrites the layout (under lock, of course). Client gets the new layout, and can contact the appropriate OST.
Canon
Aurelien and JC,
Sorry that my feedback is late. Here are my questions/remarks.
General
* Any thought on how quotas will be handled?
Coordinator
* 3.4 - I was curious what the precise use case was that was driving this? I don't disagree with it, but I was curious for more background
* 3.7.1 - The coordinator could become a scaling bottleneck. We should think about how this will be scaled in the future
* 4.1 - Does the coordinator store the ext obj id or does the agent
* 4.3 item 2 - This looks like the coordinator could become a bottle neck for unlinks and slow down performance. Could this be put in some type of async queue to be processed later (or some type of attic space)?
Use Cases
* 2.3 (Use cases) - I'm really keen on this feature. I think it is very important in order to make small file performance work well. Unfortunately, it isn't clear how the file list gets communicated to the archive tool. The coordinator and agent seem to only take one file at a time. So how would this work exactly?
* 2.4 - The copy tool should be allowed to preemptively restage files. I think this will work with the design, but we should make sure of this. This would be useful for restaging a whole tar file versus doing things piece-meal.
Part IV
2 EAs - I'm worried that the EA list could get huge for holes. 3.2 -item 3 - Who insures a file is archived before punches are made? 3.3 - Another use case... The user checks to see if a file has been archived.
Also, someone earlier made the point about the archive tool being able to reorder request. This is really important since an archival system wants to know all the files being restaged in order to order tape mounts and reads.
Thanks for taking the lead on this. It looks like there is a lot of interest in it.
--Shane
-----Original Message-----
From: [email protected] [mailto:lustre-devel-bounces at lists.lustre.org] On Behalf Of DEGREMONT Aurelien
Sent: Thursday, February 07, 2008 5:53 AM
To: lustre-devel at lists.lustre.org
Subject: [Lustre-devel] Lustre HSM HLD draft
Hello
Here is a first draft for comments of the Lustre HSM HLD. It is intended to be a support for further analyzes and comments from CFS/Sun.
The document covers the main parts of the HSM features but some elements are still lacking.
The policy management and the space manager will be describe later.
Let us know your comments and ideas about it.
Regards,
Aurelien Degremont
CEA
Canon, Richard Shane a ?crit :
Quoted 2 lines
General
* Any thought on how quotas will be handled?
That's a very good question.
I think this point should be discussed.
The purge possibility introduces two values which could be under quota.
1 - File size (current case)
2 - The disk occupation are used (migrated files free quota)
The first point are the simplest to implement and will need fewer modifications, but users could not free quota even if all their files are migrated.
The second point could help users but this will be problematic when they will copy back some of their file, because this will trigger space issues and purge requests on theirs other files, and so on.
IMO, the best way is to take choice #1 and possibly add a 'real disk use' quota value that could be tuned by admins.
I'm not a Lustre quota specialist and AFAIK this code is a bit touchy.
Quoted 3 lines
Coordinator
* 3.4 - I was curious what the precise use case was that was driving this? I don't disagree with it, but I was curious for more background
Coordinator is designed to also manage internal Lustre migrations.
Quoted 2 lines
* 3.7.1 - The coordinator could become a scaling bottleneck. We should think about how this will be scaled in the future
I think we should be able to have several coordinators in the future. Each of them dealing with different external storages.
Quoted 1 line
* 4.1 - Does the coordinator store the ext obj id or does the agent
The agent does not have a storage device. It stores nothing. The external IDs are in MDT device.
Quoted 3 lines
* 4.3 item 2 - This looks like the coordinator could become a bottle neck for unlinks and slow down performance. Could this be put in some type of async queue to be processed later (or some type of attic space)?
Yes, I think unlinks should be handled asynchronously.
Quoted 6 lines
Use Cases
* 2.3 (Use cases) - I'm really keen on this feature. I think it is very important in order to make small file performance work well. Unfortunately, it isn't clear how the file list gets communicated to the archive tool. The coordinator and agent seem to only take one file at a time. So how would this work exactly?
In fact, we have presently designed the archiving tool to support this feature and only it because the archiving tool could be developped by anyone and we want this API being as stable as possible. The current Lustre component design does not handle it. But it will be added later, in a second step, and the copy tool developped since will be already compatible with it.
Quoted 4 lines
* 2.4 - The copy tool should be allowed to preemptively restage files. I think this will work with the design, but we should make sure of this. This would be useful for restaging a whole tar file versus doing things piece-meal.
That's an interesting point. I think we could avoid it but it is an interesting feature. I must think how we should modify the design to permit it. (The tool should be able to warn the coordinator: oh, i'm staging this file also! please note it)
Quoted 1 line
2 EAs - I'm worried that the EA list could get huge for holes.
This part has been redesigned. The data that were stored in EA have been moved. It will be explained in the new document version.
Quoted 1 line
3.2 -item 3 - Who insures a file is archived before punches are made?
The space manager did it. It is the only one which will make punch request. May be MDT could ensure it before dealing with it.
Quoted 2 lines
3.3 - Another use case... The user checks to see if a file has been archived.
Ok
Quoted 4 lines
Also, someone earlier made the point about the archive tool being able to reorder request. This is really important since an archival system wants to know all the files being restaged in order to order tape mounts and reads.
I do not see any problem with this.
I will add this point in the doc.
Quoted 2 lines
Thanks for taking the lead on this. It looks like there is a lot of interest in it.
Thanks you for your very interesting comments.
Signature · 2 lines
Aurelien Degremont CEA
Hello
I've got several wondering about some specific point in HSM implementation and I would like your opinion about them.
Coordinator:
This element will manage migration externally (HSM) and internally of Lustre (space balancing?). Is the current API acceptable (specific calls for external migration, and other ones for internal migration)? The best way could have been to have generic call for migration, but we must also have generic objects to describe the migration sources and destinations and those are not simples. We finally conclude with the API presented in the HLD document. Tell me if this is *really* a bad idea or if only adjustments are needed.
We presented two modes of migration, explicit and implicit migrations. The first one result of an administrative request, the second one was triggered automatically (cache miss by example). Is that ok? (See the doc for all details).
Agent:
It seems, to support Lustre internal migration, you have planned to implement specific Agents which will reside on OST. HSM will need specific agent on clients. Do those two kinds of agent are acceptable ? The current API only describe HSM-based agent. Maybe we should think of a generic agent framework and add specialized implementations for ost,hsm,etc ?
Signature · 2 lines
Aurelien Degremont CEA
Quoted 10 lines · Aurelien Degremont
Hello
I've got several wondering about some specific point in HSM implementation and I would like your opinion about them.
Coordinator:
This element will manage migration externally (HSM) and internally of Lustre (space balancing?). Is the current API acceptable (specific calls for external migration, and other ones for internal migration)?
I would like to see a parameter indicating what agent will be used and keep all other parameters the same.
Quoted 4 lines
The best
way could have been to have generic call for migration, but we must also have generic objects to describe the migration sources and destinations and those are not simples.
For migration to and from external sources, Lustre must already manage this data in an extended attribute (e.g. to describe the file on tape to which a Lustre file was migrated). This data is opaque to Lustre and can be passed as a blob.
Quoted 5 lines
We finally conclude with the API presented in
the HLD document. Tell me if this is *really* a bad idea or if only adjustments are needed.
I have not yet looked at these.
Quoted 5 lines
We presented two modes of migration, explicit and implicit migrations. The first one result of an administrative request, the second one was triggered automatically (cache miss by example). Is that ok? (See the doc for all details).
Yes, that seems ok.
Quoted 4 lines
Agent:
It seems, to support Lustre internal migration, you have planned to implement specific Agents which will reside on OST.
To avoid many complications involving locks, we decided that even the agents used for internal migrations will layer on the file system. The Lustre file system will be mounted on the OST's and it will use the "LOLND" to transport the data efficiently between the OST process and the client file system cache. In the internal case source and destination lie in Lustre in the HSM case only one of them.
As a result I believe these two cases are closer together than you may think, and should be one "type".
The key aspect we/you need to design is what an agent has to make sure happens, for example in terms of locking file extents and in terms of avoiding triggering a recursive cache miss (open by fid with a flag?).
- Peter -
Quoted 11 lines
HSM will need
specific agent on clients. Do those two kinds of agent are acceptable ? The current API only describe HSM-based agent. Maybe we should think of a generic agent framework and add specialized implementations for ost,hsm,etc ?
Just a few initial responses from me, I haven't read things systematically yet.
Quoted 8 lines · Richard Shane
Aurelien and JC,
Sorry that my feedback is late. Here are my questions/remarks.
General
* Any thought on how quotas will be handled?
This is very very important and will require a lot of detail. Well spotted Shane!!!
Quoted 4 lines
Coordinator
* 3.4 - I was curious what the precise use case was that was driving this? I don't disagree with it, but I was curious for more background
In internal migrations many objects will be restriped to another set of objects to move the data. The coordinator handles the completion and abortion of the agents accomplishing this.
Quoted 3 lines
* 3.7.1 - The coordinator could become a scaling bottleneck. We should think about how this will be scaled in the future
In my writings I was always anticipating a family of load balancing coordinators.
Quoted 2 lines
* 4.1 - Does the coordinator store the ext obj id or does the agent
Coordinator, I suggest, in view of the fact that many agents may be required to move one file.
Quoted 5 lines
* 4.3 item 2 - This looks like the coordinator could become a bottle neck for unlinks and slow down performance. Could this be put in some type of async queue to be processed later (or some type of attic space)?
I agree with this.
Quoted 11 lines
Use Cases
* 2.3 (Use cases) - I'm really keen on this feature. I think it is very important in order to make small file performance work well. Unfortunately, it isn't clear how the file list gets communicated to the archive tool. The coordinator and agent seem to only take one file at a time. So how would this work exactly?
* 2.4 - The copy tool should be allowed to preemptively restage files. I think this will work with the design, but we should make sure of this. This would be useful for restaging a whole tar file versus doing things piece-meal.
Quoted 3 lines
Part IV
2 EAs - I'm worried that the EA list could get huge for holes.
The EA merely points to an extent tree (similar to the allocation extent tree).
Quoted 2 lines
3.2 -item 3 - Who insures a file is archived before punches are made?
The coordinator.
Quoted 45 lines
3.3 - Another use case... The user checks to see if a file has been archived.
Also, someone earlier made the point about the archive tool being able to reorder request. This is really important since an archival system wants to know all the files being restaged in order to order tape mounts and reads.
Thanks for taking the lead on this. It looks like there is a lot of interest in it.
--Shane
-----Original Message-----
From: lustre-devel-bounces at lists.lustre.org [mailto:lustre-devel-bounces at lists.lustre.org] On Behalf Of DEGREMONT Aurelien
Sent: Thursday, February 07, 2008 5:53 AM
To: lustre-devel at lists.lustre.org
Subject: [Lustre-devel] Lustre HSM HLD draftHello
Here is a first draft for comments of the Lustre HSM HLD. It is intended to be a support for further analyzes and comments from CFS/Sun.
The document covers the main parts of the HSM features but some elements are still lacking.
The policy management and the space manager will be describe later.Let us know your comments and ideas about it.
Regards,
Aurelien Degremont
CEA_______________________________________________
Lustre-devel mailing list
Lustre-devel at lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-devel
Peter J Braam a ?crit :
Quoted 7 lines
Quoted 5 lines
Coordinator:
This element will manage migration externally (HSM) and internally of Lustre (space balancing?). Is the current API acceptable (specific calls for external migration, and other ones for internal migration)?
I would like to see a parameter indicating what agent will be used and keep all other parameters the same.
Agreed.
Quoted 16 lines
Quoted 3 lines
The best way could have been to have generic call for migration, but
we must also have generic objects to describe the migration sources and destinations and those are not simples.For migration to and from external sources, Lustre must already manage this data in an extended attribute (e.g. to describe the file on tape to which a Lustre file was migrated). This data is opaque to Lustre and can be passed as a blob.
Quoted 2 lines
It seems, to support Lustre internal migration, you have planned to implement specific Agents which will reside on OST.
To avoid many complications involving locks, we decided that even the agents used for internal migrations will layer on the file system. The Lustre file system will be mounted on the OST's and it will use the "LOLND" to transport the data efficiently between the OST process and the client file system cache. In the internal case source and destination lie in Lustre in the HSM case only one of them.
Quoted 2 lines
As a result I believe these two cases are closer together than you may think, and should be one "type".
If we unify the API, we must have a way to request some data movement like:
copy elemA in placeP
copy elemA,stored in placeP bak into Lustre
copy elemA into placeC
move elemB into elemB
The elem could be unified using Lustre FID, but the places could be an external storage, or a precise OST. If we want a unify API, the API call should manipulate a generic object which could describe a Lustre storage element (ost) or a external storage (hsm,...)
ie:
struct storage_place {
... }
copy(fid,storage_place*)
move(fid,storage_place*)
and their is some specific cases to handle. The other possibity:
ext_copyout(fid, external storage)
ext_copyin(fid, external object)
int_copy(fid, fid, ost)
int_move(fid, fid, ost)
I think this one, even if the design is not the most beautiful one, if the easiest one.
Instead you want to create some new generic objects to manipulate lustre object data and generic storage areas, the second case is the best one IMO.
Signature · 2 lines
Aurelien Degremont CEA
The discussion below about the API's is a standard element of data abstraction taught in advanced programming courses (see e.g. Abelson et. al. Structure and Interpretation of Computer Programs (SICP)).
From this one concludes that the coordinator and agents will use abstract data types and call abstract methods that accommodate multiple:
- source and destination descriptors for the data
- data movers implementing the methods to move data
If you proceed along the lines you outline you will get a big matrix of movers and data types to keep track of. If you follow my approach you will encapsulate things much more cleanly.
Think in terms of virtual classes data movers acting on source and destination objects.
- peter -
Quoted 65 lines · Aurelien Degremont
Peter J Braam a ?crit :
Quoted 7 lines
Quoted 5 lines
Coordinator:
This element will manage migration externally (HSM) and internally of Lustre (space balancing?). Is the current API acceptable (specific calls for external migration, and other ones for internal migration)?
I would like to see a parameter indicating what agent will be used and keep all other parameters the same.
Agreed.
Quoted 16 lines
Quoted 3 lines
The best way could have been to have generic call for migration, but
we must also have generic objects to describe the migration sources and destinations and those are not simples.For migration to and from external sources, Lustre must already manage this data in an extended attribute (e.g. to describe the file on tape to which a Lustre file was migrated). This data is opaque to Lustre and can be passed as a blob.
Quoted 2 lines
It seems, to support Lustre internal migration, you have planned to implement specific Agents which will reside on OST.
To avoid many complications involving locks, we decided that even the agents used for internal migrations will layer on the file system. The Lustre file system will be mounted on the OST's and it will use the "LOLND" to transport the data efficiently between the OST process and the client file system cache. In the internal case source and destination lie in Lustre in the HSM case only one of them.
Quoted 2 lines
As a result I believe these two cases are closer together than you may think, and should be one "type".
If we unify the API, we must have a way to request some data movement like:
copy elemA in placeP
copy elemA,stored in placeP bak into Lustre
copy elemA into placeC
move elemB into elemBThe elem could be unified using Lustre FID, but the places could be an external storage, or a precise OST. If we want a unify API, the API call should manipulate a generic object which could describe a Lustre storage element (ost) or a external storage (hsm,...)
ie:
struct storage_place { ... } copy(fid,storage_place*) move(fid,storage_place*)and their is some specific cases to handle. The other possibity:
ext_copyout(fid, external storage)
ext_copyin(fid, external object)
int_copy(fid, fid, ost)
int_move(fid, fid, ost)I think this one, even if the design is not the most beautiful one, if the easiest one.
Instead you want to create some new generic objects to manipulate lustre object data and generic storage areas, the second case is the best one IMO.