cancel
Showing results for 
Search instead for 
Did you mean: 

boot tape create

salem_3
Advisor

boot tape create

Hi

I am trying to create a boot tape on Alpha DS20 through DAT surestore , i'm using sysman tool ,so every time i get the error log /var/adm/btcreate.log telling that the device must be tape ,i checked everything that seems to be ok ,could any one help me to fix the issue .

Thaks by advance .
Salem.


8 REPLIES
Ravi_8
Honored Contributor

Re: boot tape create

Check the tape compatibility
never give up
Pieter 't Hart
Honored Contributor

Re: boot tape create

please specify your info to the btcreate-program
the tape-device must ONLY contain the tape-devicename (tape0) NOT the full path (/dev/tape/tape0)

here is an commandline example

/usr/sys/bin/btcreate
-d /tmp
-a /bvh/etc/empty
-k /usr/sys/conf/TOMCAT-D
-m mfs
-s /usr/lib/sabt/etc/fslist
-t tape0_d1

the fslist file contains filesystems to include on the backup tape (/ /var /usr)
i also have the
/usr/lib/sabt/etc/custom_disklabel_file
which contains the disklabel for the bootdisk

The backup-device need not be compatible to CREATE the bootable tape but offcourse is does to use for restore.
salem_3
Advisor

Re: boot tape create

Hi

I have execute this command line below :
/usr/sys/bin/btcreate -t tape1 .
then at the end i get the following message :"Device must be a tape./usr/sys/bin/mktape exited abnormally."

thanks .
Pieter 't Hart
Honored Contributor

Re: boot tape create

please post output from
file /dev/tape/tape*
Mobeen_1
Esteemed Contributor

Re: boot tape create

Salem,
Looks like either your tape drive is not recognised or is incompatible. Please post the information requested by Pieter

regards
Mobeen
salem_3
Advisor

Re: boot tape create

Hi Pieter

You will find in attached file the information you asked for .

Thanks .
Regards.
Sathya_3
Occasional Visitor

Re: boot tape create

Hi Salem,

This might be due to the grep command in the mktape script. In /usr/sys/bin/mktape script, if you search for "Device must be a tape", there is a grep command preceding this line.

echo ${TAPE_DEV} | grep _d >/dev/null

The grep command is looking for a tape similar to tape_d pattern.

If you modify this to grep tape >/dev/null, it might temporarily solve the problem. But the correct solution should be to check for the validity of the tape device using commands like mt.

Hope this helps.

Regards,
Sathya
Pieter 't Hart
Honored Contributor

Re: boot tape create

Hi Salem,
i do not see output from the "file"-command

Sathya's answer suggest the script expects not only tape0 but tape0_d0 or tape0_d1 wich is related to density-settings used for the unit.

Pieter