[OpenAFS] Relocating to new machine

2015-08-11 Thread Youssef Eldakar
I am running an AFS cell for a Debian cluster and now in the process of
relocating the openafs-dbserver and openafs-fileserver to a new machine. I
am thinking the below would be what I generally need to do, but I am hoping
someone more experienced with AFS would provide feedback.

The old machine is Debian 7, the new is 8.

1. Install openafs-dbserver and openafs-fileserver on new machine.
2. Configure new machine as 'secondary site' for the OpenAFS admin
databases with the 'synchronization site' being the old machine.
3. Set the new machine as the synchronization site, thus turning the old
machine into just a secondary site.
4. Move volumes ('vos move') from the old machine to the new machine.
5. Stop the old machine from acting as secondary site.

Any feedback is appreciated.

Youssef Eldakar
Bibliotheca Alexandrina


Re: [OpenAFS] Re: Transferring data from old server to new server

2012-08-14 Thread Youssef Eldakar
On Mon, Aug 13, 2012 at 2:19 PM, Dirk Heinrichs dirk.heinri...@altum.dewrote:

 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

2012-08-14 Thread Youssef Eldakar
On Tue, Aug 14, 2012 at 3:32 PM, Lars Schimmer l.schim...@cgv.tugraz.atwrote:

 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

2012-08-13 Thread Youssef Eldakar
On Thu, Jul 26, 2012 at 4:41 PM, Andrew Deason adea...@sinenomine.netwrote:

 On Thu, 26 Jul 2012 14:22:25 +0300
 Youssef Eldakar youssefelda...@gmail.com 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

2012-07-30 Thread Youssef Eldakar
On Thu, Jul 26, 2012 at 4:41 PM, Andrew Deason adea...@sinenomine.netwrote:

 On Thu, 26 Jul 2012 14:22:25 +0300
 Youssef Eldakar youssefelda...@gmail.com 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



[OpenAFS] Transferring data from old server to new server

2012-07-26 Thread Youssef Eldakar
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?

Thank you for advising.


Re: [OpenAFS] Re: PAG creation failed: No such file or directory

2011-07-19 Thread Youssef Eldakar

On 07/17/2011 11:29 PM, Russ Allbery wrote:


That log message indicates that one of:

 fd = open(/proc/fs/openafs/afs_ioctl, O_RDWR);
 ioctl(fd, _IOW('C', 1, void *),syscall_data);

returned ENOENT.  I don't think there's any other way to generate that
message.  The latter seems unlikely.


A host just did it again. I checked /proc/fs/openafs/afs_ioctl, and it 
actually does exist.


--
Youssef Eldakar
Bibliotheca Alexandrina

___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] PAG creation failed: No such file or directory

2011-07-17 Thread Youssef Eldakar

On 07/15/2011 10:09 PM, Russ Allbery wrote:


Youssef Eldakaryoussef.elda...@bibalex.org  writes:


In a network where an OpenAFS cell is set up to serve 1000+ clients, a
host would occasionally fail to change to a user's home directory upon
login with the following line in auth.log:
Jul 15 15:05:56 ia711225 sshd[10679]: (pam_afs_session): PAG creation failed: 
No such file or directory

That's a very strange error message to receive.  The only way that I can
see that failing with that error message if you're using the built-in kafs
library is if ioctl returned ENOENT or if it failed without setting errno
at all.

How is pam_afs_session built for this system?  Is it using libkopenafs or
libkafs, or is it using its built-in kafs implementation?



Those are the libraries /lib/security/libpam_afs_session.so links to:

linux-vdso.so.1 =   (0x7fffc01ff000)

libpam.so.0 =  /lib/libpam.so.0 (0x7f04f81de000)

libkrb5.so.3 =  /usr/lib/libkrb5.so.3 (0x7f04f7f1c000)

libc.so.6 =  /lib/libc.so.6 (0x7f04f7b98000)

libdl.so.2 =  /lib/libdl.so.2 (0x7f04f7994000)

libcrypt.so.1 =  /lib/libcrypt.so.1 (0x7f04f775b000)

libk5crypto.so.3 =  /usr/lib/libk5crypto.so.3 (0x7f04f7534000)

libcom_err.so.2 =  /lib/libcom_err.so.2 (0x7f04f733)

libkrb5support.so.0 =  /usr/lib/libkrb5support.so.0 
(0x7f04f7128000)

libkeyutils.so.1 =  /lib/libkeyutils.so.1 (0x7f04f6f24000)

libresolv.so.2 =  /lib/libresolv.so.2 (0x7f04f6d0b000)

/lib64/ld-linux-x86-64.so.2 (0x7f04f8601000)

libpthread.so.0 =  /lib/libpthread.so.0 (0x7f04f6aee000)


I see no libkopenafs and no libkafs, which I suppose means it's using 
its built-in kafs implementation. This pam_afs_session is just the one 
shipped with Ubuntu 10.10: libpam-afs-session 1.7-2.


--
Youssef Eldakar
Bibliotheca Alexandrina

___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


[OpenAFS] PAG creation failed: No such file or directory

2011-07-15 Thread Youssef Eldakar
In a network where an OpenAFS cell is set up to serve 1000+ clients, a 
host would occasionally fail to change to a user's home directory upon 
login with the following line in auth.log:


Jul 15 15:05:56 ia711225 sshd[10679]: (pam_afs_session): PAG creation failed: 
No such file or directory


Simply typing aklog right after login successfully acquires tokens, and 
the user is able to access their home directory. Subsequent logins have 
no problem changing to the user's home directory for a while (perhaps 
the Kerberos ticket lifetime). However, to make the problem go away 
completely, I found no solution but to reboot the host.


The server is running Linux 2.6.32 and OpenAFS 1.4.12. The clients are 
running Linux 2.6.35 and OpenAFS 1.4.12.1. And this is how 
/etc/pam.d/common-session looks like:


sessionrequiredpam_unix.so

sessionoptionalpam_krb5.so minimum_uid=1000

sessionoptionalpam_afs_session.so


I also had program=/usr/bin/aklog in the last line for a while, but the 
problem still occured.


The line in auth.log above indicates that pam_afs_session complains 
about a file that does not exist but does not tell what the name of that 
file is. Any suggestions on how to better troubleshoot the problem are 
appreciated.


--
Youssef Eldakar
Bibliotheca Alexandrina

___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


[OpenAFS] /vicepa on Linux RAID

2010-10-03 Thread Youssef Eldakar
Should OpenAFS have problems with a /vicepa that exists on a Linux RAID 
(e.g. /dev/md0) device? I am trying to set up an OpenAFS server on 
Ubuntu 10.04 (openafs-fileserver/openafs-dbserver 1.4.12+dfs), but when 
I get to making the root volume (afs-rootvol), the machine crashes, and 
I am thinking if this has to do with /vicepa being on a Linux RAID-5 device.


Thank you for any information.

Youssef Eldakar
Bibliotheca Alexandrina
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


[OpenAFS] /vicepa on Linux RAID

2010-06-23 Thread Youssef Eldakar
Should OpenAFS have problems with a /vicepa that exists on a Linux RAID 
(e.g. /dev/md0) device? I am trying to set up an OpenAFS server on 
Ubuntu 10.04 (openafs-fileserver/openafs-dbserver 1.4.12+dfs), but when 
I get to making the root volume (afs-rootvol), the machine crashes, and 
I am thinking if this has to do with /vicepa being on a Linux RAID-5 device.


Thank you for any information.

Youssef Eldakar
Bibliotheca Alexandrina
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info