Operating System - Tru64 Unix
1748151 Members
3713 Online
108758 Solutions
New Discussion юеВ

Re: Unable to verify data on DDS-3

 
SOLVED
Go to solution
Philip Horan
Frequent Advisor

Unable to verify data on DDS-3

I have recently installed a new Sony SDT-9000 tape drive on Alpha 1200 running Digital Unix V4.0F. I purchased new DDS-3 media at the same time.

This morning after backup I have run command:

tar tvf /dev/rmt0h

Receive error:

tar: [offset 0]: No space left on device

Any ideas as to what might be causing this and what I can do to resolve?

Many Thanks,
Phil.
31 REPLIES 31
Rob Leadbeater
Honored Contributor

Re: Unable to verify data on DDS-3

Hi Phil,

I wouldn't normally expect to see a "No space" error when reading data from a tape...

However your previous posts show that you've swapped tape drives recently. I'll take a guess that at some point a backup has been done pointing to a /dev/rmt... device that doesn't exist, which has consequently filled up the root file system.

Does the output of "df -k" show any filesystems at 100% ?

Cheers,

Rob
Philip Horan
Frequent Advisor

Re: Unable to verify data on DDS-3

Hi Rob. All that shows 100% is /proc (not sure what that is however) as it has 1024 blocks = 0 Used = 0 Available = 0 Capacity = 100% Mounted On /proc

You are correct regards previous backup. I would have thought the new drive would have the same lable rmt0h? Is this not the case? I did a backup on Thursday with the new device and all was OK (different type of backup)?

More of a windows man myself!!

What could I do to resolve?
Many Thanks,
Phil.
Kapil Jha
Honored Contributor

Re: Unable to verify data on DDS-3

Hello Phil,

run dsfmgr -k
this will add device file for newly added tape drive and then use new device file to take backup.(ls -lrt /dev last files would be newly created one).

BR,
Kapil
I am in this small bowl, I wane see the real world......
Philip Horan
Frequent Advisor

Re: Unable to verify data on DDS-3

Hi Kapil. Unix did not like the command:
dsfmgr: not found
Regards,
Phil.
Philip Horan
Frequent Advisor

Re: Unable to verify data on DDS-3

OK. I removed entries for *rmt0* form /dev. I recreated using ./MAKEDEV tz1. Tape device shows up. However still get same error when executing tar tvf /dev/rmt0h?

Extract from daily backup script (not written by me) as follows:

[code]
RECOVERY=/appdb/recovery.log; export RECOVERY
TAPEDRIVE=/dev/rmt0h; export TAPEDRIVE
APPDBDIR=/appdb; export APPDBDIR
APPDBRECOVERY=/appdb; export APPDBRECOVERY
APPDIR=/app; export APPDIR

# Stop the BSCqueu.run routine (to free up RECOVERY), if it is running
#

echo `date` " Start of CRON processing"
/app/bin/AUTOBACKUP
echo `date` " End of CRON processing"
[/code]

The daily backup calls script AUTOBACKUP as follows:
[code]

set +x
#
# app Shell Command Script to renew the "RECOVERY.LOG"
# file in /appdb/ after a backup has been made.
#
# VERSION 9.1.2.1 - DBBACKUP 91/10/10 10:32:36

# !!!!! WARNING - date statement uses sccs format
# DO NOT USE GET (Use GETEDIT or Maintain manually)


msg1="app Users on System - Can not Proceed."

there=`ps -ae | grep -c "dbh010.r"`

if [ $there -gt 1 ]
then
clear
echo " "
echo $msg1
mail root < /app/bin/BACKUP_FAIL
echo " "
exit
fi
date=`date +%m%d%H%M`
RECOVERY_SAVE=$appDBRECOVERY/LOG$date.LOG
echo "\f\fapp backup procedure: $RECOVERY renewal"
echo "Recovery file $RECOVERY will be moved to $RECOVERY_SAVE"
#echo "\nConfirm Backup of Database and replacement of '$RECOVERY' : \c"
confirm=YES
#read confirm
there=`ps -ae | grep -c "dbh010.r"`

if [ $there -gt 1 ]
then
clear
echo " "
echo $msg1
mail root < /app/bin/BACKUP_FAIL
echo " "
exit
fi
case $confirm in
y|Y|yes|YES)
if test -r $RECOVERY
then
touch $appDIR/tmp/dbh.lock
cd /appdb1
tar cvB -C /appdb1 . -C /appdb2/appdb1 .
# find DS*.* -print | cpio -ocBvdum > $TAPEDRIVE
# Following added by KH to check for unsuccessful backup to tape
if [ $? = 0 ]
then
echo "\nBackup Successful \n"
mail root < /app/bin/TAPE_SUCCESS
else
echo "\nBackup Failed \n"
mail root < /app/bin/TAPE_FAIL
# exit
fi
# KH - end
mv $RECOVERY $RECOVERY_SAVE
if [ $? = 0 ]
then
echo "\nPrevious $RECOVERY now in $RECOVERY_SAVE\n"
touch $RECOVERY
chmod 777 $RECOVERY
chown appadm $RECOVERY
chgrp app $RECOVERY
rm $appDIR/tmp/dbh.lock
echo " \nNew $RECOVERY now created\n"
echo "\nBackup of Database Complete ..You May Resume Normal app operations now .\n"
mail root < /app/bin/BACKUP_SUCCESS
else
echo "\nUnable to copy $RECOVERY into $RECOVERY_SAVE\n"
rm $appDIR/tmp/dbh.lock
exit
fi
else
echo "\nUnable to find $RECOVERY \n"
mail root < BACKUP_FAIL
exit
fi
;;
n|N|NO|no)
echo "No action taken"
echo "\nDATABASE NOT BACKED UP !!!!!\n\007\007\007"
;;
esac
[/code]

Any help very much appreciated.
Phil.
Pieter 't Hart
Honored Contributor

Re: Unable to verify data on DDS-3

What do you mean with "Tape device shows up"?
did you check the scsi-id on the drive matches id-0 (rmt0 )!
or did you now create an rmt1 !
Philip Horan
Frequent Advisor

Re: Unable to verify data on DDS-3

Hi Pieter. I followed instructions from previous post:
[link] http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1248318&admit=109447627+1216030720135+28353475
[/link]

scu show edt lists device as:
Bus: 0, Target:1, Lun:0, Type: Sequential Access

My boot file lists device as:
tz1 at scsi0 target 1 lun 0 (LID=0) (compaq SDT-9000)

Just ran: file /dev/nrmt0h

This has returned:
/dev/nrmt0h: character special (9/1027) SCSI #0 SDT-9000 tape #0 (SCSI ID #1) (SCSI LUN #0) offline

Can you assist?
Many Thanks,
Phil.
Philip Horan
Frequent Advisor

Re: Unable to verify data on DDS-3

I have tried: mt online. I receive:
/dev/nrmt0h online 1 failed: I/O error

Kind Regards,
Phil.
Pieter 't Hart
Honored Contributor

Re: Unable to verify data on DDS-3

in the backup script i do not see any reference for writing to tape
looks like you're writing to a directory.
>>> cd /appdb1
>>> tar cvB -C /appdb1 . -C /appdb2/appdb1 .

also looks lik the os can reach the tapeunit, but the device is off-line.
with DLT drives after loading the tape you must put the unit-online. I don't think the SDT-900 has such a button.
try if if "mt online" command works on this version (we don't have V4.0 anymore so i can't test; mt - Magnetic tape manipulating program)