OpenVZ Forum


Home » Mailing lists » Devel » [BUG][cryo] Create file on restart ?
Re: [BUG][cryo] Create file on restart ? [message #31995 is a reply to message #31988] Thu, 17 July 2008 02:18 Go to previous messageGo to previous message
serue is currently offline  serue
Messages: 750
Registered: February 2006
Senior Member
Quoting sukadev@us.ibm.com (sukadev@us.ibm.com):
> Serge E. Hallyn [serue@us.ibm.com] wrote:
> | Quoting sukadev@us.ibm.com (sukadev@us.ibm.com):
> | > Serge E. Hallyn [serue@us.ibm.com] wrote:
> | > | Quoting sukadev@us.ibm.com (sukadev@us.ibm.com):
> | > | > 
> | > | > cryo does not (cannot ?) recreate files if the application created
> | > | 
> | > | I think that's for the best.
> | > | 
> | > | Don't you?
> | > 
> | > I can understand that configuration or data files should exist, but
> | > not sure about temporary or log files that an application created
> | > upon start-up and expects to be present. Should the admin find
> | > out about them and create them by hand before restart ?
> | 
> | I think the admin should have set the destination environment such that
> | the task is restarted in the same network fs in the same directory, with
> | no files having been deleted.
> 
> or new files created ? For instance if the application was checkpointed
> before it created a temporary file with O_EXCL flag, that temporary
> file must not exist when restarting ?
> 
> | 
> | Am I wrong?
> 
> So we take a snapshot of the FS and checkpoint the application. Do they
> need to be atomic ? 
> 
> Eitherway, I withdraw the bug :-)

Well it's certainly beyond the scope of cryo.  I'd prefer if we didn't
have to snapshot the fs at each checkpoint (!) and I think any many or
most cases (think one long-running scientific app or seti@home that just
occasionally gets migrated or stopped for a reboot) it won't be an
issue.  But your point seems valid.

-serge
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH 0/4] - v2 - Object creation with a specified id
Next Topic: [RFC PATCH 0/5] Resend -v2 - Use procfs to change a syscall behavior
Goto Forum:
  


Current Time: Sat Jun 28 21:14:12 GMT 2025

Total time taken to generate the page: 0.02050 seconds