| Hi Paul,
Could you post the bind and mount commands here ? Are there any messages
printed as part of either the bind or mount commands ? Are you trying to
mount a hard drive partition or CD ? If it is a CD, what is the format
(iso, ufs, ultrix) ? When you perform a showladcbind, what state is the
device in (loaded, aborted, etc.) ? What version of Digital UNIX are
you using ? For an unrelated issue, what type of system and network
adapter are you using ?
Just a few questions that might help us diagnose the problem. In fact,
the script command is handy to capture the actual commands and output.
Thanks, Charlie
|
| Some answers:
System: DEC3000-500
Version: Unix 3.2G
Network Adapter: ln0: DEC LANCE Module Name: PMAD-BA
ln0 at tc0 slot 7
ln0: DEC LANCE Ethernet Interface,
Services are all CD's and created as ULTRIX.
Bind and mount commands:
#!/sbin/sh
#
#-----------------------------------------------------
# To bind and mount infoserver cds
#-----------------------------------------------------
#
#
case "$1" in
'start')
[ -d /export/cds/book_1 ] && {
/usr/sbin/bindladcunit 0 -serviceName UNIX_DOC_1
sleep 1
mount -r -d /dev/ladc/unit0c /export/cds/book_1
case $? in
0) ;;
*) echo 'Error: Cannot mount UNIX_DOC_1' >/dev/console ;;
esac
}
#
[ -d /export/cds/book_2 ] && {
/usr/sbin/bindladcunit 1 -serviceName UNIX_DOC_2
sleep 1
mount -r -d /dev/ladc/unit1c /export/cds/book_2
case $? in
0) ;;
*) echo 'Error: Cannot mount UNIX_DOC_2' >/dev/console ;;
esac
}
#
[ -d /export/cds/kit_1 ] && {
/usr/sbin/bindladcunit 2 -serviceName UNIX_BIN_1
sleep 1
mount -r -d /dev/ladc/unit2c /export/cds/kit_1
case $? in
0) ;;
*) echo 'Error: Cannot mount UNIX_KIT_1' >/dev/console ;;
esac
}
#
[ -d /export/cds/kit_2 ] && {
/usr/sbin/bindladcunit 3 -serviceName UNIX_BIN_2
sleep 1
mount -r -d /dev/ladc/unit3c /export/cds/kit_2
case $? in
0) ;;
*) echo 'Error: Cannot mount UNIX_KIT_2' >/dev/console ;;
esac
}
#
[ -d /export/cds/kit_3 ] && {
/usr/sbin/bindladcunit 4 -serviceName UNIX_BIN_3
mount -r -d /dev/ladc/unit4c /export/cds/kit_3
sleep 1
case $? in
0) ;;
*) echo 'Error: Cannot mount UNIX_KIT_3' >/dev/console ;;
esac
}
#
[ -d /export/cds/kit_4 ] && {
/usr/sbin/bindladcunit 5 -serviceName UNIX_BIN_4
mount -r -d /dev/ladc/unit5c /export/cds/kit_4
sleep 1
case $? in
0) ;;
*) echo 'Error: Cannot mount UNIX_KIT_4' >/dev/console ;;
esac
}
;;
'stop')
umount /export/cds/book_1
umount /export/cds/book_2
umount /export/cds/kit_1
umount /export/cds/kit_2
umount /export/cds/kit_3
umount /export/cds/kit_4
unbindladcunit 0
unbindladcunit 1
unbindladcunit 2
unbindladcunit 3
unbindladcunit 4
unbindladcunit 5
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
What happens when the commands are executed:
Script started on Fri Mar 14 16:33:11 1997
root@tmcnsr> ./ladmount start
Unit 0 Bound Service UNIX_DOC_1
/dev/ladc/unit0c Server TMC_VAX_CD
Drive Name DK2: Service Rating 64571
Device Class CD-ROM Max Read Session 1000
Device Type RRD42 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 748072 Current Write Session 0
Partition Sectors Offset
a 748072 0
b 0 0
c 748072 0
d 0 0
e 0 0
f 0 0
g 0 0
h 0 0
Unit 1 Bound Service UNIX_DOC_2
/dev/ladc/unit1c Server TMC_VAX_CD
Drive Name DK3: Service Rating 64740
Device Class CD-ROM Max Read Session 1000
Device Type RRD42 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 687544 Current Write Session 0
Partition Sectors Offset
a 687544 0
b 0 0
c 687544 0
d 0 0
e 0 0
f 0 0
g 0 0
h 0 0
/dev/ladc/unit1c on /export/cds/book_2: No such device or address
Unit 2 Bound Service UNIX_BIN_1
/dev/ladc/unit2c Server TMC_VAX_CD
Drive Name DK9: Service Rating 64310
Device Class CD-ROM Max Read Session 1000
Device Type RRD40 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 1266300 Current Write Session 0
Partition Sectors Offset
a 1266300 0
b 0 0
c 1266300 0
d 0 0
e 0 0
f 0 0
g 0 0
h 0 0
Unit 3 Bound Service UNIX_BIN_2
/dev/ladc/unit3c Server TMC_VAX_CD
Drive Name DK10: Service Rating 64310
Device Class CD-ROM Max Read Session 1000
Device Type RRD40 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 1267740 Current Write Session 0
Partition Sectors Offset
a 1267740 0
b 0 0
c 1267740 0
d 0 0
e 0 0
f 0 0
g 0 0
h 0 0
Unit 4 Bound Service UNIX_BIN_3
/dev/ladc/unit4c Server TMC_VAX_CD
Drive Name DK12: Service Rating 64306
Device Class CD-ROM Max Read Session 1000
Device Type RRD40 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 1266300 Current Write Session 0
Partition Sectors Offset
a 1266300 0
b 0 0
c 1266300 0
d 0 0
e 0 0
f 0 0
g 0 0
h 0 0
Unit 5 Bound Service UNIX_BIN_4
/dev/ladc/unit5c Server TMC_VAX_CD
Drive Name DK13: Service Rating 64484
Device Class CD-ROM Max Read Session 1000
Device Type RRD40 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 803372 Current Write Session 0
Partition Sectors Offset
a 803372 0
b 0 0
c 803372 0
d 0 0
e 0 0
f 0 0
g 0 0
h 0 0
/dev/ladc/unit5c on /export/cds/kit_4: No such device or address
root@tmcnsr> showladcbind -a
Unit 5 Loaded Service UNIX_BIN_4
/dev/ladc/unit5c Server TMC_VAX_CD
Drive Name DK13: Service Rating 64484
Device Class CD-ROM Max Read Session 1000
Device Type RRD40 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 803372 Current Write Session 0
Unit 4 Connected Service UNIX_BIN_3
/dev/ladc/unit4c Server TMC_VAX_CD
Drive Name DK12: Service Rating 64306
Device Class CD-ROM Max Read Session 1000
Device Type RRD40 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 1266300 Current Write Session 0
Unit 3 Connected Service UNIX_BIN_2
/dev/ladc/unit3c Server TMC_VAX_CD
Drive Name DK10: Service Rating 64310
Device Class CD-ROM Max Read Session 1000
Device Type RRD40 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 1267740 Current Write Session 0
Unit 2 Connected Service UNIX_BIN_1
/dev/ladc/unit2c Server TMC_VAX_CD
Drive Name DK9: Service Rating 64310
Device Class CD-ROM Max Read Session 1000
Device Type RRD40 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 1266300 Current Write Session 0
Unit 1 Loaded Service UNIX_DOC_2
/dev/ladc/unit1c Server TMC_VAX_CD
Drive Name DK3: Service Rating 64740
Device Class CD-ROM Max Read Session 1000
Device Type RRD42 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 687544 Current Write Session 0
Unit 0 Connected Service UNIX_DOC_1
/dev/ladc/unit0c Server TMC_VAX_CD
Drive Name DK2: Service Rating 64571
Device Class CD-ROM Max Read Session 1000
Device Type RRD42 Max Write Session 0
Device Format UNIX Current Read Session 0
Device Size 748072 Current Write Session 0
root@tmcnsr> ^D
script done on Fri Mar 14 16:38:42 1997
Then this is what happens when I try to mount the lad service by hand
root@tmcnsr> mount -r -d /dev/ladc/unit5c /export/cds/kit_4
/dev/ladc/unit5c on /export/cds/kit_4: No such device or address
root@tmcnsr> mount -r -d /dev/ladc/unit1c /export/cds/book_2
root@tmcnsr> mount -r -d /dev/ladc/unit5c /export/cds/kit_4
root@tmcnsr>
This is more or less repeatable, although the first time I captured the
output it did work!
Hope this helps,
-Paul
|
| Sorry for the delay with this response. The following is an explanation of what
is going on when receiving the "No such device or address" when issuing the mount
command.
The association request sent from the client as the result of the mount
command is transmitted four times at 1/2 second intervals before a
failure is reported. A response from the InfoServer must be delivered
across the LAN within 3 seconds or the mount will fail. Occassional
failures may result from an InfoServer and/or network that is experiencing
some load. If the bind and mount commands are in shell scripts, you
might want to use a retry loop as follows;
RETRY=true
while $RETRY
do
if mount ...
then
RETRY=false
else
sleep 1
echo "mount failed, trying again..."
fi
done
|