Hi Bernard,

looks good. But I believe you're missing config files of the OSCAR
applications like netbootmgr (files are also in /tftpboot), torque, maui,
ganglia, ... These are not only config files, but also files referred by
config files (for netbootmgr: the files in /tftpboot/...).

While we could detect config files from the RPMs automatically (those marked
as %config in the .spec), the files refered by them cannot be detected, and
couldn't even be added to the config.xml.

I'd propose a two step approach:
 - have the config files listed in config.xml
 - add an optional opkg API function which lists the files to back up (this
 one is opkgs specific and could parse the config files to detect what ohter
 files they are refering to).

It remains a non-trivial problem, I think, and requires some knowledge about
the applications and OSCAR (from the administrator) to do it right...

Regards,
Erich

On Wednesday 21 March 2007 19:47, Bernard Li wrote:
> Guys:
> 
> I have done some testing yesterday with the instructions on how to
> backup/restore an OSCAR installation -- it would be great if you guys
> can try it out and give me feedback so that we can improve this and
> potentially wrap this into a script:
> 
> http://svn.oscar.openclustergroup.org/trac/oscar/wiki/BackupOSCAR
> 
> I have filed a ticket on some issues I encountered with oda restore, I
> hope that DongInn can take a look at it when he has some time :-)
> 
> http://svn.oscar.openclustergroup.org/trac/oscar/ticket/302
> 
> Thanks!
> 
> Bernard
> 
> On 3/2/07, DongInn Kim <[EMAIL PROTECTED]> wrote:
> > Bernard Li wrote:
> > > DongInn:
> > >
> > > Actually, if you re-install OSCAR, and then restore the ODA dump,
> > > wouldn't that also restore the password to the database?  So wouldn't
> > > you need to restore /etc/odapw?
> > >
> > Yes, if /etc/odapw was not touched, you can re-install OSCAR with the
> > same password (/etc/odapw) and OSCAR would not try to change the
> > password in /etc/odapw and OSCAR database(user table in mysql database)
> > because /etc/odapw is already there. Restoring an OSCAR dump file only
> > restores the database "oscar" and does change any password thing in
> > "mysql" database.
> > Anyways, like I said, a user who knows the root password of mysql can
> > update the OSCAR database password accordingly anytime. So, I would not
> > need to backup/restore /etc/odapw but would like to find a way to manage
> > the root password safely instead.
> > But there was my bad understanding. emptying /etc/odapw may not
> > re-generate oscar database properly. (I would make this work too if this
> > is a right thing to do.)
> > > Come to think about it, you also need to restore the
> > > /etc/ssh/ssh_host* keys from the image back to the headnode, otherwise
> > > bad things might happen...  this needs testing...
> > >
> > OK.
> > > Cheers,
> > >
> > > Bernard
> > >
> > > On 3/2/07, Erich Focht <[EMAIL PROTECTED]> wrote:
> > >
> > >> Hi DongInn,
> > >>
> > >> On Friday 02 March 2007 06:55, DongInn Kim wrote:
> > >>
> > >>> Try to remove /etc/odapw or delete the contents of /etc/odapw and then
> > >>> run install_cluster.
> > >>> You will see that it  will still work. (Of course, if you change its
> > >>> entry manually, oda would not work.)
> > >>>
> > >> AFAIK we push odapw to the clients and allow queries from them. 
> > >> Therefore if
> > >> the master burned down you might want to use the same odapw on the 
> > >> rebuilt
> > >> master. Or remember to push it out to the clients...
> > >>
> > >> Regards,
> > >> Erich
> > >>
> > >>
> > >> -------------------------------------------------------------------------
> > >> Take Surveys. Earn Cash. Influence the Future of IT
> > >> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> > >> your
> > >> opinions on IT & business topics through brief surveys-and earn cash
> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >> _______________________________________________
> > >> Oscar-devel mailing list
> > >> [email protected]
> > >> https://lists.sourceforge.net/lists/listinfo/oscar-devel
> > >>
> > >>
> > >
> > > -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share 
> > > your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > _______________________________________________
> > > Oscar-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/oscar-devel
> > >
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Oscar-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/oscar-devel
> >
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to