Subject: | |
From: | |
Reply To: | |
Date: | Tue, 17 Sep 2013 19:57:31 +0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi Sean,
On Sep 17, 2013, at 14:16 , Sean Murray wrote:
> As I read it the afs startup script in /etc/rc.d/init.d/afs does not permit the
> case of a cell not being in the CellServDB file even if you enable ENABLE_AFSDB
> to append the -afsdb command line switch.
yes, that check has been there ~forever.
If it's a problem for you, you can either provide a CellServDB with your cell included or remove the check from the init script.
If you think this should all be done differently, please let us know how exactly you think it should work. That's rather a change for SL7 though.
Best regards,
Stephan
> It looks like the line 213 will block it from working ?
> CELL gets defined as the dnsname correctly but then the script refuses to start
> as the CELL is not in the CellServDB, causing the script to bomb out on line 218
>
> Offending function is this :
>
> 195 check_thiscell() {
> 196 CELL=
> 197 if [ -s /usr/vice/etc/ThisCell ] ; then
> 198 CELL="$(cat /usr/vice/etc/ThisCell)"
> 199 if [ -n "$CELL" ]; then
> 200 grep -w -q -s ">$CELL" /usr/vice/etc/CellServDB
> 201 if [ $? -ne 0 ] ; then
> 202 echo afs: $CELL from ThisCell is not in CellServDB. Not starting. 1>&2
> 203 return 1
> 204 fi
> 205 return 0
> 206 fi
> 207 fi
> 208 CELL=`dnsdomainname`;
> 209 if [ $? -ne 0 -o -z "$CELL" ] ; then
> 210 echo afs: No cell defined. Trying to figure it out failed. Not starting. 1>&2
> 211 return 1
> 212 fi
> 213 grep -w -q -s ">$CELL" /usr/vice/etc/CellServDB
> 214 if [ $? -ne 0 ] ; then
> 215 echo afs: No cell defined. Trying to figure it out failed. Not starting. 1>&2
> 216 return 1
> 217 fi
> 218 echo "$CELL" > /usr/vice/etc/ThisCell && chmod 0644 /usr/vice/etc/ThisCell
> 219 if [ $? -ne 0 ] ; then
> 220 echo afs: No cell defined. Trying to configure "$CELL" failed. Not starting. 1>&2
> 221 return 1
> 222 fi
> 223 echo afs: Warning: No cell was defined. Autoconfigured "$CELL". 1>&2
> 224 }
>
--
Stephan Wiesand
DESY -DV-
Platanenenallee 6
15738 Zeuthen, Germany
|
|
|