Bus-Tech > Support > MAS Technical Library
Knowledge
Base
Mainframe Appliance for Storage

Tape Library not Accessible

Symptom

During startup of the MAS, the following message displays for each virtual tape drive:

MAS156W: Tape E880 Data path /tapelib/ is not accessible!

If this message is ignored, every subsequent tape mount will fail, with the following message displayed each time:

MAS400E: Tape E880 Data path /tapelib/ is not accessible

Resolution

The most probable cause is that no accessible, external filesystem is mounted on the directory /tapelib. Enter a Query Space command on the MAS console:

q space
Devicename UA Size Used Avail Use% Filesystem Path
---------- -- ---- ---- ----- ---- ---------- ----
E880       80  16G 1.5G   13G  10% /dev/md0   /tapelib/
E881       81  16G 1.5G   13G  10% /dev/md0   /tapelib/

Note that the /tapelib path is mounted on /dev/md0, the root drive. Normally, /tapelib should be mounted on an external fibre-channel, SCSI, or network attached drive. To protect from accidentally writing tape volumes to the root drive if no data drive is mounted to /tapelib, the /tapelib directory on the MAS root drive is owned by root and is deliberately protected from all read and write access. You can also verify that this is the current situation by using the ls command. Open a terminal session and enter the following command:

ls -alid /tapelib
d--------- 2 root root 4096 Jun 13 17:45

If the result looks like the one shown, where /tapelib is owned by root and has no read or write permissionsm this indicates that no external filesystem has been mounted on /tapelib.

One other way to verify this is to do a mount command to show what filesystems are currently mounted:

mount
/dev/md0 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/md1 on /boot type ext2 (rw)

Note that /tapelib doesn't show in this list - it isn't mounted anywhere.

To correct this problem, mount the proper external filesystem on the /tapelib directory. To automatically mount the filesystem each time the MAS is restarted, you must also update the /etc/fstab. The MAS Users Guide describes in detail how to define and mount the tape library and update the /etc/fstab.

When the tape library is correctly mounted on an external disk filesystem, the MAS should see it like this (note filesystem name: /dev/sdc1 is the third SCSI drive):

q space
Devicename UA Size Used Avail Use% Filesystem Path
---------- -- ---- ---- ----- ---- ---------- ----
E880       80  84G 792k   79G   1% /dev/sdc1  /tapelib/
E881       81  84G 792k   79G   1% /dev/sdc1  /tapelib/

The ls and mount commands should show that /tapelib is mounted on the external filesystem. The owner of /tapelib should always be vtape, the user name under which the MAS application runs, and there should be read and write permission:

ls
drwxr-xr-x 3 vtape vtape 4096 Jul 17 11:15 /tapelib
mount
/dev/md0 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/md1 on /boot type ext2 (rw)
/dev/sdc1 on /tapelib type ext2 (rw)

 



Copyright © 2005 by Bus-Tech, Inc.