[OpenAFS-devel] error afs-newcell
chechu chechu
chechuironman@hotmail.com
Sun, 16 Jul 2006 18:49:45 +0200
I follow all the steps of the documentation of afs for create a
new-cell, ans when a I execute the sscript afs-new-cell i get this
error:
root@shogun:~# afs-newcell
Prerequisites
In order to set up a new AFS cell, you must meet the following:
1) You need a working Kerberos realm with Kerberos4 support. You
should install Heimdal with Kth-kerberos compatibility or MIT
Kerberos5.
2) You need to create the single-DES AFS key and load it into
/etc/openafs/server/KeyFile. If your cell's name is the same as
your Kerberos realm then create a principal called afs. Otherwise,
create a principal called afs/cellname in your realm. The cell
name should be all lower case, unlike Kerberos realms which are all
upper case. You can use asetkey from the openafs-krb5 package, or
if you used AFS3 salt to create the key, the bos addkey command.
3) This machine should have a filesystem mounted on /vicepa. If you
do not have a free partition, then create a large file by using dd
to extract bytes from /dev/zero. Create a filesystem on this file
and mount it using -oloop.
4) You will need an administrative principal created in a Kerberos
realm. This principal will be added to susers and
system:administrators and thus will be able to run administrative
commands. Generally the user is a root instance of some administravie
user. For example if jruser is an administrator then it would be
reasonable to create jruser/root and specify jruser/root as the user
to be added in this script.
5) The AFS client must not be running on this workstation. It will be
at the end of this script.
DoIf the fileserver is not running, this may hang for 30 seconds.
/etc/init.d/openafs-fileserver stop
Stopping AFS Server: bosserver.
you meet these requirements? [y/n] y
What administrative principal should be used? chechu/admin
/etc/init.d/openafs-fileserver start
Starting AFS Server: bosserver.
bos addhost shogun.ironman.es shogun.ironman.es -localauth ||true
bos adduser shogun.ironman.es chechu.admin -localauth
pt_util: /var/lib/openafs/db/prdb.DB0: Bad UBIK_MAGIC. Is 0 should be
354545
Ubik Version is: 2.0
Error while creating system:administrators: Entry for id already exists
pt_util: Ubik Version number changed during execution.
Old Version = 2.0, new version = 33554432.0
bos create shogun.ironman.es ptserver simple /usr/lib/openafs/ptserver
-localauth
bos create shogun.ironman.es vlserver simple /usr/lib/openafs/vlserver
-localauth
bos create shogun.ironman.es fs fs -cmd /usr/lib/openafs/fileserver
-cmd /usr/lib/openafs/volserver -cmd /usr/lib/openafs/salvager
-localauth
Waiting for database elections: done.
vos create shogun.ironman.es a root.afs -localauth
Could not get an Id for volume root.afs
u: no quorum elected
u: no quorum elected
Error in vos create command.
u: no quorum elected
Failed: 65280
bos shutdown shogun.ironman.es -localauth
bos delete shogun.ironman.es fs -localauth
bos delete shogun.ironman.es vlserver -localauth
bos delete shogun.ironman.es ptserver -localauth
rm /var/lib/openafs/db/prdb*
bos removeuser shogun.ironman.es chechu.admin -localauth
root@shogun:~#