Re: [OpenAFS] Re: Transferring data from old server to new server
On Tue, Aug 14, 2012 at 3:32 PM, Lars Schimmer wrote: > On 14.08.2012 14:55, Youssef Eldakar wrote: > > > Thanks for all the help. I was able to successfully move volumes using > > 'vos move'. Now, I see that in order to be able to shut down the old > > server, I also have to move the 'dbserver'. I tried searching for > > instructions on doing that but was not quite successful. Any pointers > > would be much appreciated. > > Hi > > moving a DB server is not as trivial as moving the data. > For a start you can setup a new db server for your cell on the new > server and start it beside your old one - if done fine, they do sync > automatic and both will work as expected. > Now you need to see how your clients get known to the DB server - via > CellServDB or via DNS entries - in no.1 you need to change the > cellServDB on each client, on case no.2 you need to change the DNS entries. > Afterwards you can stop the old DB server and the new one should serv > all the data for your clients. > I´ve done it a few times already and it is possible. > OK, I will give it a try. Would the following be the right procedure to use? http://docs.openafs.org/QuickStartUnix/ch03s02.html > > Youssef Eldakar > > Bibliotheca Alexandrina > > > > > MfG, > Lars Schimmer > -- > - > TU Graz, Institut für ComputerGraphik & WissensVisualisierung > Tel: +43 316 873-5405 E-Mail: l.schim...@cgv.tugraz.at > Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723 > ___ > OpenAFS-info mailing list > OpenAFS-info@openafs.org > https://lists.openafs.org/mailman/listinfo/openafs-info >
Re: [OpenAFS] Re: Transferring data from old server to new server
On 14.08.2012 14:55, Youssef Eldakar wrote: > Thanks for all the help. I was able to successfully move volumes using > 'vos move'. Now, I see that in order to be able to shut down the old > server, I also have to move the 'dbserver'. I tried searching for > instructions on doing that but was not quite successful. Any pointers > would be much appreciated. Hi moving a DB server is not as trivial as moving the data. For a start you can setup a new db server for your cell on the new server and start it beside your old one - if done fine, they do sync automatic and both will work as expected. Now you need to see how your clients get known to the DB server - via CellServDB or via DNS entries - in no.1 you need to change the cellServDB on each client, on case no.2 you need to change the DNS entries. Afterwards you can stop the old DB server and the new one should serv all the data for your clients. I´ve done it a few times already and it is possible. > Youssef Eldakar > Bibliotheca Alexandrina > MfG, Lars Schimmer -- - TU Graz, Institut für ComputerGraphik & WissensVisualisierung Tel: +43 316 873-5405 E-Mail: l.schim...@cgv.tugraz.at Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723 ___ OpenAFS-info mailing list OpenAFS-info@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-info
Re: [OpenAFS] Re: Transferring data from old server to new server
On Mon, Aug 13, 2012 at 2:19 PM, Dirk Heinrichs wrote: > Am Montag 13 August 2012, 15:07:00 schrieb Youssef Eldakar: > > > Just want to make sure, to move everything, is it enough to just move the > > root.afs volume? > > No. root.afs just acts as an anchor for all your other volumes. As such, > it is > more or less empty (it usually only contains the mount points for > root.cell, > which in turn contains a tree of your data volumes). > > > Thanks for all the help. I was able to successfully move volumes using 'vos move'. Now, I see that in order to be able to shut down the old server, I also have to move the 'dbserver'. I tried searching for instructions on doing that but was not quite successful. Any pointers would be much appreciated. Youssef Eldakar Bibliotheca Alexandrina
Re: [OpenAFS] Re: Transferring data from old server to new server
Am Montag 13 August 2012, 15:07:00 schrieb Youssef Eldakar: > Just want to make sure, to move everything, is it enough to just move the > root.afs volume? No. root.afs just acts as an anchor for all your other volumes. As such, it is more or less empty (it usually only contains the mount points for root.cell, which in turn contains a tree of your data volumes). As others already wrote in this thread, to move data from one server to another, you can either vos move all volumes located on server A to server B (I guess this is the preferred method, as it works w/o downtime) or use rsync to copy your /vicepX partitions from A to B. HTH... Dirk -- Dirk Heinrichs Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913 GPG Public Key C2E467BB | Jabber: dirk.heinri...@altum.de ___ OpenAFS-info mailing list OpenAFS-info@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-info
Re: [OpenAFS] Re: Transferring data from old server to new server
On Thu, Jul 26, 2012 at 4:41 PM, Andrew Deason wrote: > On Thu, 26 Jul 2012 14:22:25 +0300 > Youssef Eldakar wrote: > > > 1.4.12+dfsg-3+ubuntu0.1. I am planning to replace this OpenAFS server > > with another one on another machine running Ubuntu 12.04, which comes > > with OpenAFS version 1.6.1-1. What's the simplest way to transfer the > > data over to the new server? Would just rsyncing /vicepa work? > > As Lars mentions, using 'vos move' is often the "best" way; the way most > likely to not have problems. If you 'vos move' all of the data, make > sure to keep the old server on for at least 2 hours after everything has > moved before turning it off, so clients have a chance to notice that > their data has moved. > Just want to make sure, to move everything, is it enough to just move the root.afs volume? Thanks. Youssef Eldakar Bibliotheca Alexandrina
Re: [OpenAFS] Re: Transferring data from old server to new server
On Thu, Jul 26, 2012 at 4:41 PM, Andrew Deason wrote: > On Thu, 26 Jul 2012 14:22:25 +0300 > Youssef Eldakar wrote: > > > 1.4.12+dfsg-3+ubuntu0.1. I am planning to replace this OpenAFS server > > with another one on another machine running Ubuntu 12.04, which comes > > with OpenAFS version 1.6.1-1. What's the simplest way to transfer the > > data over to the new server? Would just rsyncing /vicepa work? > > As Lars mentions, using 'vos move' is often the "best" way; the way most > likely to not have problems. If you 'vos move' all of the data, make > sure to keep the old server on for at least 2 hours after everything has > moved before turning it off, so clients have a chance to notice that > their data has moved. > Thanks for that advice. > > If you cannot or do not want to do that, yes, you can just rsync the > /vicep* directories (make sure you use -a). If you do that, you will > also want to sync the /var/lib/openafs/local directory (do _not_ do this > if you 'vos move' the data instead). > And for this addition. It helps to know the transfer is also doable via rsync. > > -- > Andrew Deason > adea...@sinenomine.net > > ___ > OpenAFS-info mailing list > OpenAFS-info@openafs.org > https://lists.openafs.org/mailman/listinfo/openafs-info >