Bug#329431: openafs-dbserver: afs-newcell not creating /etc/openafs/server/CellServDB properly

2005-09-21 Thread Jiann-Ming Su
Package: openafs-dbserver
Version: 1.3.81-3sarge1
Severity: important


The problem I'm experiencing is similar to #325929 and is mentioned at
https://lists.openafs.org/pipermail/openafs-info/2005-May/017787.html.

Basically, the afs-newcell script is not putting the IP address of the
server being configured into the /etc/openafs/server/CellServDB file.
When I modify that file manually, and comment out line 125 of the
afs-newcell script I get much farther along.

  run( "echo \\>$cell >/etc/openafs/server/CellServDB");

Output when afs-newcell puts bad info in the CellServDB file:

  Do you meet these requirements? [y/n] y
  If the fileserver is not running, this may hang for 30 seconds.
  /etc/init.d/openafs-fileserver stop
  Stopping AFS Server: bosserver.
  What administrative principal should be used? js1
  echo \>chbe.bogus >/etc/openafs/server/CellServDB
  /etc/init.d/openafs-fileserver start
  Starting AFS Server: bosserver.
  bos addhost fs1.chbe.bogus fs1.chbe.bogus -localauth ||true
  bos: could not find entry (can't find cell '' in cell database)
  bos adduser fs1.chbe.bogus js1 -localauth
  bos: could not find entry (can't find cell '' in cell database)
  Failed: 256
  bos: could not find entry (can't find cell '' in cell database)

Output when line 125 is commented out:

  Do you meet these requirements? [y/n] y
  If the fileserver is not running, this may hang for 30 seconds.
  /etc/init.d/openafs-fileserver stop
  Stopping AFS Server: bosserver.
  What administrative principal should be used? js1
  /etc/init.d/openafs-fileserver start
  Starting AFS Server: bosserver.
  bos addhost fs1.chbe.bogus fs1.chbe.bogus -localauth ||true
  bos adduser fs1.chbe.bogus js1 -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 fs1.chbe.bogus ptserver simple /usr/lib/openafs/ptserver -localauth
  bos create fs1.chbe.bogus vlserver simple /usr/lib/openafs/vlserver -localauth
  bos create fs1.chbe.bogus 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 fs1.chbe.bogus a root.afs -localauth
  Volume 536870912 created on partition /vicepa of fs1.chbe.bogus
  echo chbe.bogus >/etc/openafs/ThisCell
  /etc/init.d/openafs-client force-start
  Starting AFS services: afsd: All AFS daemons started.
  afsd: Can't mount AFS on /afs(2)
   afsd.
  *** The AFS client failed to start.
  Please fix whatever problem kept it from running.
  bos shutdown fs1.chbe.bogus -localauth 
  bos delete fs1.chbe.bogus fs -localauth 
  bos delete fs1.chbe.bogus vlserver -localauth
  bos delete fs1.chbe.bogus ptserver -localauth
  rm /var/lib/openafs/db/prdb* 
  bos removeuser fs1.chbe.bogus js1 -localauth
  

-- System Information:
Debian Release: sarge
  APT prefers sarge
Architecture: i386
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages openafs-dbserver depends on:
ii  debconf   1.4.30.13   Debian 
configuration management system
ii  libc6 2.3.2.ds1-22GNU C Library: 
Shared libraries and Timezone data
ii  openafs-client1.3.81-3sarge1  The AFS 
distributed filesystem- client support
ii  openafs-dbserver  1.3.81-3sarge1  The AFS 
distributed filesystem- database server
ii  perl  5.8.4-8 Larry Wall's 
Practical Extraction and Report Language


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#329431: acknowledged by developer (Re: Bug#329431: openafs-dbserver: afs-newcell not creating /etc/openafs/server/CellServDB properly)

2005-09-21 Thread Jiann-Ming Su

On Wed, 21 Sep 2005, Debian Bug Tracking System wrote:


Version: 1.4rc1-1

Yes, the afs-newcell script has some problems in certain circumstances.
I'm not completely sure when the sarge version works and when it doesn't;
it works some of the time, but using bos addhost to add the file server
host was very unreliable.

The script has been completely rewritten and heavily tested in 1.4rc1-1,
currently in Debian testing.



The README.servers is very good.  You may want to mention
that the /var/cache/openafs directory needs be a ext[23] filesystem.
I think that's the unwritten assumption.  I get "Cell setup failed" 
when it is not.


Jiann-Ming Su
"Yeah, Lois, that'll be about as much fun as a lecture on
   ontological empiricism."  --Peter Griffin



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#329431: acknowledged by developer (Re: Bug#329431: openafs-dbserver: afs-newcell not creating /etc/openafs/server/CellServDB properly)

2005-09-21 Thread Russ Allbery
Jiann-Ming Su <[EMAIL PROTECTED]> writes:

> The README.servers is very good.  You may want to mention that the
> /var/cache/openafs directory needs be a ext[23] filesystem.  I think
> that's the unwritten assumption.  I get "Cell setup failed" when it is
> not.

Yeah, this is documented somewhat now in the latest version, but I'm
currently preparing an upload of 1.4rc4-1 that will give a clear error
message and fail to start if the cache partition is using the wrong file
system.

-- 
Russ Allbery ([EMAIL PROTECTED]) 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]