Lustre HSM HLD draft
All,
I'm new to this list, so I'll start with apologies. My Lustre
background is
also limited; a situation I hope to fix.
As part of the Solaris Software Archiving group, I was asked to review
the HSM HLD
by my management. That review was sent to Peter Bojanic. He suggested I get involved in
the community discussion.
This is a posting of my original response, based on a copy of the HLD
which seems to
be the one posted. I've made a couple of minor corrections.
Page 1, 1, Define coordinator (space coordinator?),
define agent, (condense Part II intro, page 14) (for me, MDT, MGS and OST)
Page 8, 3.8, "use" not "used" in second sentence
Page 9, 3.8.2 et.al., "precised" (maybe, explicit or precise)
Page 9, 3.8.4, Lustre ID "if" no path
Page 10, 4.1, 1) When archived? (probably in Space Manager portion)
SAM-QFS archives well ahead of space need.
4) External object reference must be unusable, until 5.
4.2, 2) Implies only one copy per "version"...bad idea
Page 12, 5.3, Last Sentence, This enables, not This ables
6.1, 100,000 migrations make current migration list operations
problematic (lets say want to move last migration to be next migration).
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.
Page 15, a variant on 1.5, ask for/return last valid byte offset
(perhaps within a range).
Page 19, Special Path, does this boil down to invisible I/O?
Page 23, 2.3 and 2.4, I'm assuming that lists of tuples can be processed
in any order.
Page 25, 1, Punch - becomes "sparse" not "spare"
I think this spec needs to be more consistent with its use of data range. It is confusing as laid out.
Page 26, 3.2 space will be exhausted, or space will be low, not space will be
missing.
Page 28, protection of Lustre extended attributes?
Issues:
The Space manager is likely the most important piece. There is no detail on it. This is where archive and other policy is enforced.
The described HSM seems to follow the "copy out" when space needed, then purge, model. This function (a Space Manager function) is
contrary
to SAM, and a shortfall of many HSMs.
File/object association is an important component of SAM. For example, if I access a file in a source tree, I'm likely to access the others as well.
The purge (3.2, Space manager needs to make room) and 4.1 "needs to be atomic" is a complex operations. Sequencing is important.
Coordination between agents seems important. For example, if agents requested new copy-outs on objects striped on 10 different stores, ordering them on tape seems difficult.
What is the backup story for Lustre? How does that play with the HSM?
Signature · 7 lines
--------------------------------------------------------------------- Rick Matthews email: Rick.Matthews at sun.com Sun Microsystems, Inc. phone:+1(651) 554-1518 1270 Eagan Industrial Road phone(internal): 54418 Suite 160 fax: +1(651) 554-1540 Eagan, MN 55121-1231 USA main: +1(651) 554-1500 ---------------------------------------------------------------------
Hello
thank you for your review, I add some comments in the following
Page 1, 1, Define coordinator (space coordinator?),
define agent, (condense Part II intro, page 14) (for me, MDT, MGS and OST)
These are defined in the arch wiki pages
Page 10,
4.2, 2) Implies only one copy per "version"...bad idea
Different versions correspond to different files in the external storage. We take the more recent. Not sure I understand your remark
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)
Page 19, Special Path, does this boil down to invisible I/O?
The path is /mnt_mount/.lustre/fid/FID_NUMBER. When a file is open through this path a flag is carried to the OSS to avoid copy in trigger (this used to fill the file)
Page 23, 2.3 and 2.4, I'm assuming that lists of tuples can be processed
in any order.
yes
Issues:
The Space manager is likely the most important piece. There is no
detail on it. This is where archive and other policy is enforced.
The space manager is based on changelogs/feed Lustre feature which are very new (draft HLD has just been published). This is why it not described at this time.
The described HSM seems to follow the "copy out" when space needed, then purge, model. This function (a Space Manager function) is contrary to SAM, and a shortfall of many HSMs.
no spacemanger is doing pre-migration and when free space is needed, it only has to make punc
Coordination between agents seems important. For example,
if agents requested new copy-outs on objects striped on
10 different stores, ordering them on tape seems difficult.
Tape access optimization has to be made by the archival system. We try to put as few external storage knowledge as possible in Lustre to be external storage independant.
What is the backup story for Lustre? How does that play with
the HSM?
HSM do not backup the namespace. It has to be done with a separate tool like a MDT scannner. The copy tool can use the FID2PATH() function to save the object pathname with the file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20080208/ac88ef54/attachment.htm>
JC.LAFOUCRIERE at CEA.FR wrote:
Thanks for allowing me to participate.
Quoted 9 lines
Hello
thank you for your review, I add some comments in the following
Page 1, 1, Define coordinator (space coordinator?),
define agent, (condense Part II intro, page 14) (for me, MDT, MGS and OST)
These are defined in the arch wiki pages
Thank you, I still haven't got to them yet...but plan to.
Quoted 5 lines
Page 10,
4.2, 2) Implies only one copy per "version"...bad idea
Different versions correspond to different files in the external storage. We take the more recent. Not sure I understand your remark
A basic mantra of SAM-QFS and other data retention systems is that one image of the data is vulnerable (a tape breaks,
or is otherwise overwritten). While the archival system can be responsible for making multiple identical images, it
can still represent a single point of failure. Note: I am using version to represent a point in time image of the files data,
and copy to represent an image of that version. (See LOCKSS for additional references on copies).
Quoted 7 lines
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)
What the archival system needs to know is that the copy previously made (or a first copy need to be made),
which seems to be triggered by a user (not archive or other - like restore) write operation.
Quoted 8 lines
Page 19, Special Path, does this boil down to invisible I/O?
The path is /mnt_mount/.lustre/fid/FID_NUMBER. When a file is open through this path a flag is carried to the OSS to avoid copy in trigger (this used to fill the file)Page 23, 2.3 and 2.4, I'm assuming that lists of tuples can be processed
in any order.
yes
Quoted 6 lines
Issues:
The Space manager is likely the most important piece. There is no
detail on it. This is where archive and other policy is enforced.
The space manager is based on changelogs/feed Lustre feature which are very new (draft HLD has just been published). This is why it not described at this time.
OK...also consider using change logs as a trigger for need of a new archive version (not copy). Alleviates the mtime issue above.
Quoted 5 lines
The described HSM seems to follow the "copy out" when space needed, then purge, model. This function (a Space Manager function) is contrary to SAM, and a shortfall of many HSMs.
no spacemanger is doing pre-migration and when free space is needed, it only has to make punc
OK, so who schedules the pre-migration to the archive system?
Quoted 6 lines
Coordination between agents seems important. For example,
if agents requested new copy-outs on objects striped on
10 different stores, ordering them on tape seems difficult.
Tape access optimization has to be made by the archival system. We try to put as few external storage knowledge as possible in Lustre to be external storage independant.
The isolation between archive system and file system is (to me) a good idea. I'd just like you to
consider that the recall (stage-in) events can be optimized. At least, make sure the archive system
is allowed to reorder as needed (hence the async - list of tuples in any order - question above).
Think of other association between files to live storage as 1) a pre-stage operation, or 2)
a disk cache pre-fetch operation. I hope I'm using understandable words ;>)
Quoted 6 lines
What is the backup story for Lustre? How does that play with
the HSM?
HSM do not backup the namespace. It has to be done with a separate tool like a MDT scannner. The copy tool can use theFID2PATH()function to save the object pathname with the file.
One point here is that an HSM + namespace/metadata backup + unarchived data capture can be used to be a
nearly continuous backup operation with a relatively tiny backup window.
Signature · 7 lines
--------------------------------------------------------------------- Rick Matthews email: Rick.Matthews at sun.com Sun Microsystems, Inc. phone:+1(651) 554-1518 1270 Eagan Industrial Road phone(internal): 54418 Suite 160 fax: +1(651) 554-1540 Eagan, MN 55121-1231 USA main: +1(651) 554-1500 ---------------------------------------------------------------------
Hello
First of all, thanks for your remarks.
Information explained in the architecture documents from the Arch Wiki have not been re-explained in the HLD. So some points could be unclear, but read or check the arch docs first.
If the HLD must be self sufficent or more details are really needed, let me know.
I will clarify some points anyway in the new document version.
Rick Matthews a ?crit :
Quoted 2 lines
Page 10, 4.1, 1) When archived? (probably in Space Manager portion)
SAM-QFS archives well ahead of space need.
Concerning the archived copies vunlerability, I'm not sure this is Lustre responsability to manage several copies of each of its file versions into the HSM...
Quoted 3 lines
6.1, 100,000 migrations make current migration list operations
problematic (lets say want to move last migration to be next migration).
You speak about pending migrations ? This is just pointer manipulation. I do not see a real problem at this level. This value is only algorithmic indications, not about resources (memory, ...) But we could decrease this value to 10,000.
Quoted 3 lines
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 fact, this value is only needed for user information, not for Lustre internals. Lustre will based is comparison on the FID version. The mtime field is used for listing the file copies in the HSM, and as the lustre fid version is not relevant for the user, will indicates the associated file date at this time.
(just a quick example, not the final output)
user$ list_hsm_copies ./foo
Storage Date Size Version
============================================
HSM1 Feb 2 2006 1566162 1 HSM1 Jun 18 2007 1423540 2 HSM1 Jun 18 2007 1900051 54
But the touch could be problematic. Lustre gurus, is there another time field we could use instead ? Should we add a "last-modification-field-which-ignore-touch" ? Is this really a problem is we use display a "touched" time ? In this case, we display what the user set on the file, we suppose he did it in purpose.
Quoted 2 lines
Page 15, a variant on 1.5, ask for/return last valid byte offset
(perhaps within a range).
Why not... But do you have use cases were the current "Data available" feature as explained in 1.5 is not sufficent ?
Quoted 1 line
Page 28, protection of Lustre extended attributes?
I do not see what you mean.
Quoted 4 lines
Issues:
The purge (3.2, Space manager needs to make room) and 4.1 "needs to be atomic" is a complex operations. Sequencing is important.
Does "transactionnal" fit ?
I will add a Bugzilla entry and a new updated version the HLD on it, next Monday.
Regards,
Signature · 2 lines
Aurelien Degremont CEA/DAM - DIF/DSSI/SISR
Quoted 5 lines · Aurelien Degremont
But the touch could be problematic. Lustre gurus, is there another time field we could use instead ? Should we add a "last-modification-field-which-ignore-touch" ? Is this really a problem is we use display a "touched" time ? In this case, we display what the user set on the file, we suppose he did it in purpose.
There was work done in ext4/ldiskfs to add a 64-bit "version" field to the on-disk inode, for use by lustre and NFSv4. In the ldiskfs case Lustre was free to store any information in this field it wanted. The planned use for this field is for "version based recovery" and it has the semantic that it is an increasing (though not necessarily sequential) version number that tracks any change to the file. This is stored in each inode on the MDT and each object on the OSTs.
In ZFS I believe there is also a "last modified transaction group" (txg) number stored with each dnode that could be used in a similar manner.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
Versions are critical - we need them for multiple things, let's make sure we get exactly the right thing in ZFS also.
- Peter -
Quoted 26 lines · Andreas Dilger
Quoted 6 lines · Aurelien Degremont
But the touch could be problematic. Lustre gurus, is there another time field we could use instead ? Should we add a "last-modification-field-which-ignore-touch" ? Is this really a problem is we use display a "touched" time ? In this case, we display what the user set on the file, we suppose he did it in purpose.
There was work done in ext4/ldiskfs to add a 64-bit "version" field to the on-disk inode, for use by lustre and NFSv4. In the ldiskfs case Lustre was free to store any information in this field it wanted. The planned use for this field is for "version based recovery" and it has the semantic that it is an increasing (though not necessarily sequential) version number that tracks any change to the file. This is stored in each inode on the MDT and each object on the OSTs.
In ZFS I believe there is also a "last modified transaction group" (txg) number stored with each dnode that could be used in a similar manner.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
Quoted 5 lines
_______________________________________________
Lustre-devel mailing list
Lustre-devel at lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20080211/98333d16/attachment.htm>
Hi,
Quoted 11 lines · Andreas Dilger
Quoted 5 lines · Aurelien Degremont
But the touch could be problematic. Lustre gurus, is there another time field we could use instead ? Should we add a "last-modification-field-which-ignore-touch" ? Is this really a problem is we use display a "touched" time ? In this case, we display what the user set on the file, we suppose he did it in purpose.
(snip)
In ZFS I believe there is also a "last modified transaction group" (txg) number stored with each dnode that could be used in a similar manner.
Hmm.. I think ZFS only has zp_gen in the dnode/znode, which is the txg of the file creation. We also cannot use the txg birth time of the block where the dnode is stored because a metadnode block holds several dnodes.
I may be missing something here, but isn't the "ctime" the appropriate value to use here?
Regards,
Ricardo
--
Ricardo Manuel Correia
Lustre Engineering
Sun Microsystems, Inc.
Portugal
Phone +351.214134023 / x58723
Mobile +351.912590825
Email Ricardo.M.Correia at Sun.COM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20080211/03b52971/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6g_top.gif
Type: image/gif
Size: 1257 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20080211/03b52971/attachment.gif>
Quoted 15 lines · Ricardo Correia
Quoted 11 lines · Andreas Dilger
Quoted 5 lines · Aurelien Degremont
But the touch could be problematic. Lustre gurus, is there another time field we could use instead ? Should we add a "last-modification-field-which-ignore-touch" ? Is this really a problem is we use display a "touched" time ? In this case, we display what the user set on the file, we suppose he did it in purpose.
(snip)
In ZFS I believe there is also a "last modified transaction group" (txg) number stored with each dnode that could be used in a similar manner.
Quoted 7 lines
Hmm.. I think ZFS only has
zp_genin the dnode/znode, which is the txg of the file creation. We also cannot use the txg birth time of the block where the dnode is stored because a metadnode block holds several dnodes.I may be missing something here, but isn't the "ctime" the appropriate value to use here?
The problem with ctime (on Linux as well) is that it is possible for the system clock to go backward, whether due to ntp, or because the hardware clock is incorrect/reset, so it cannot be depended upon to be monotonically increasing for the life of the lustre filesystem.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
Quoted 4 lines · Andreas Dilger
The problem with ctime (on Linux as well) is that it is possible for the system clock to go backward, whether due to ntp, or because the hardware clock is incorrect/reset, so it cannot be depended upon to be monotonically increasing for the life of the lustre filesystem.
Ok. In that case, we could either add a new 64-bit version field to the dnode (or znode) similar to the one in ldiskfs, or we could look at the birth time (txg nr) of all the block pointers in the dnode. Using txg numbers might not be very useful if an object is migrated from one storage device to another, but I have not read the HSM HLD so I'm not sure if this is a problem or not.
Cheers,
Ricardo
--
Ricardo Manuel Correia
Lustre Engineering
Sun Microsystems, Inc.
Portugal
Phone +351.214134023 / x58723
Mobile +351.912590825
Email Ricardo.M.Correia at Sun.COM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20080211/4de0ee30/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6g_top.gif
Type: image/gif
Size: 1257 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20080211/4de0ee30/attachment.gif>
Quoted 8 lines · Ricardo M. Correia
Quoted 5 lines · Andreas Dilger
The problem with ctime (on Linux as well) is that it is possible for the system clock to go backward, whether due to ntp, or because the hardware clock is incorrect/reset, so it cannot be depended upon to be monotonically increasing for the life of the lustre filesystem.
Quoted 6 lines
Ok. In that case, we could either add a new 64-bit version field to the dnode (or znode) similar to the one in ldiskfs, or we could look at the birth time (txg nr) of all the block pointers in the dnode. Using txg numbers might not be very useful if an object is migrated from one storage device to another, but I have not read the HSM HLD so I'm not sure if this is a problem or not.
I'm missing the point of this discussion. Clearly we shouldn't/can't use ctime/mtime for anything internal to Lustre; that is what object versions are all about. Why are we talking about adding new fields or anything else?
I'm probably responsible for opening this can of worms. I inferred from the HSM HLD that
mtime was proposed to be used for state change, or version of the file/object. As the discussion
bears out, mtime for this purpose would be a bad idea. A reliable way of detecting change is
needed, and if it already exists withing Lustre, great!.
What I think is far more significant is the involvement of the community on issues
such as this. More folks examining (and critiquing) the details, the better.
Nice to see such an active community.
--
Quoted 24 lines · Nathaniel Rutman
Quoted 11 lines · Ricardo M. Correia
Quoted 8 lines · Andreas Dilger
The problem with ctime (on Linux as well) is that it is possible for the
system clock to go backward, whether due to ntp, or because the hardware
clock is incorrect/reset, so it cannot be depended upon to be monotonically
increasing for the life of the lustre filesystem.Quoted 6 lines
Ok. In that case, we could either add a new 64-bit version field to the dnode (or znode) similar to the one in ldiskfs, or we could look at the birth time (txg nr) of all the block pointers in the dnode. Using txg numbers might not be very useful if an object is migrated from one storage device to another, but I have not read the HSM HLD so I'm not sure if this is a problem or not.
I'm missing the point of this discussion. Clearly we shouldn't/can't use ctime/mtime for anything internal to Lustre; that is what object versions are all about. Why are we talking about adding new fields or anything else?
Signature · 7 lines
--------------------------------------------------------------------- Rick Matthews email: Rick.Matthews at sun.com Sun Microsystems, Inc. phone:+1(651) 554-1518 1270 Eagan Industrial Road phone(internal): 54418 Suite 160 fax: +1(651) 554-1540 Eagan, MN 55121-1231 USA main: +1(651) 554-1500 ---------------------------------------------------------------------
It is important to note that all comparisons and modifications are done at Lustre-object level: OST stripe object or MDT file object, each of those objects already has a version field, in the FID.
This is the version inside the FID that we will use for all treatments. All purges are always requested for a specific FID.
The mtime is stored only for information, for the users. It is simpler to display to the user:
user$ list_hsm_copies ./foo
Date
============
Feb 2 2006 Jun 18 2007 Jun 19 2007
than:
user$ list_hsm_copies ./foo
Version
============0x00123560x001a2500x001a011
If the user "touched" the file sometime, he knew what he has done. Just the output will be different, but internaly, we manipulate Lustre FID and so we don't care of mtime.
So the "version" in the backend is not a problem. We do not rely on the ldiskfs/zfs inode versioning.
Aurelien Degremont
Rick Matthews a ?crit :
Quoted 40 lines
I'm probably responsible for opening this can of worms. I inferred from the HSM HLD that
mtime was proposed to be used for state change, or version of the file/object. As the discussion
bears out, mtime for this purpose would be a bad idea. A reliable way of detecting change is
needed, and if it already exists withing Lustre, great!.What I think is far more significant is the involvement of the community on issues
such as this. More folks examining (and critiquing) the details, the better.
Nice to see such an active community.
--Quoted 22 lines · Nathaniel Rutman
Quoted 9 lines · Ricardo M. Correia
Quoted 8 lines · Andreas Dilger
The problem with ctime (on Linux as well) is that it is possible for the
system clock to go backward, whether due to ntp, or because the hardware
clock is incorrect/reset, so it cannot be depended upon to be monotonically
increasing for the life of the lustre filesystem.Quoted 6 lines
Ok. In that case, we could either add a new 64-bit version field to the dnode (or znode) similar to the one in ldiskfs, or we could look at the birth time (txg nr) of all the block pointers in the dnode. Using txg numbers might not be very useful if an object is migrated from one storage device to another, but I have not read the HSM HLD so I'm not sure if this is a problem or not.
I'm missing the point of this discussion. Clearly we shouldn't/can't use ctime/mtime for anything internal to Lustre; that is what object versions are all about. Why are we talking about adding new fields or anything else?
Signature · 2 lines
Aurelien Degremont CEA
Quoted 4 lines · Nathaniel Rutman
I'm missing the point of this discussion. Clearly we shouldn't/can't use ctime/mtime for anything internal to Lustre; that is what object versions are all about. Why are we talking about adding new fields or anything else?
If by object versions you are referring to the version field in the ldiskfs inodes that Andreas mentioned, then we need to add a similar field/attribute in ZFS.
It seems that Andreas has already filed bug 14865 for this.
Cheers,
Ricardo
--
Ricardo Manuel Correia
Lustre Engineering
Sun Microsystems, Inc.
Portugal
Phone +351.214134023 / x58723
Mobile +351.912590825
Email Ricardo.M.Correia at Sun.COM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20080212/70ae527c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6g_top.gif
Type: image/gif
Size: 1257 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20080212/70ae527c/attachment.gif>