Operating System - HP-UX
1752808 Members
5860 Online
108789 Solutions
New Discussion юеВ

Re: fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

 
SOLVED
Go to solution
Tan Shirley
Frequent Advisor

fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

Hi,

Anyone has any idea why my fbackup failed?
I received the following

br_backup: Invoking fbackup. See /var/sam/log/br_log for details.
fbackup(1004): session begins on Fri Jul 18 01:30:01 2003
fbackup(3038): output file /dev/rmt/0m is not a valid device file for backup
fbackup(3019): would you like to enter a new output file?
fbackup(3004): writer aborting
fbackup(1002): Backup did not complete : Reader or Writer process exit

Have tried replacing with another working tape drive but still failed.
13 REPLIES 13
Michael Tully
Honored Contributor

Re: fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

It could be that the device file has been overwritten.

Please supply:

# ls -l /dev/rmt/0m

# ioscan -fnkC tape
Anyone for a Mutiny ?
Sridhar Bhaskarla
Honored Contributor

Re: fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

Hi Tan,

Do some testing to see if the tape device file is correct.

mt -t /dev/rmt/0m rew
mediainit /dev/rmt/0m

Find out the correct device by using the command

ioscan -fnC tape

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Tim Adamson_1
Honored Contributor

Re: fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

Check using ioscan -fnC tape.
Check lssf /dev/rmt/* and ensure hardware path is not question marks (ie, ???)
Ensure tape drive is supported on server and server has any enablement patches installed.
Check firmware.
Clean tape drive and use new tape
Test with tar.
Ensure cabling is correctly (and firmly) attached.
Check for hardware errors in cstm or for messages in syslog or event.log.

Just a few quick things that may help.

Cheers!
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
Tan Shirley
Frequent Advisor

Re: fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

Hi Michael,

Please find the output as follows :

#ls -l /dev/rmt/0m
crw-rw-rw- 2 bin bin 205 0x003000 Jul 2 03:55 /dev/rmt/0m

#ioscan -fnkC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 1 0/0/1/0.4.0 stape CLAIMED DEVICE HP C1533A
/dev/rmt/1m /dev/rmt/c0t4d0BESTn
/dev/rmt/1mb /dev/rmt/c0t4d0BESTnb
/dev/rmt/1mn /dev/rmt/c0t4d0DDS
/dev/rmt/1mnb /dev/rmt/c0t4d0DDSb
/dev/rmt/c0t4d0BEST /dev/rmt/c0t4d0DDSn
/dev/rmt/c0t4d0BESTb /dev/rmt/c0t4d0DDSnb
twang
Honored Contributor

Re: fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

Try this if it works:
# tar cvf /dev/rmt/1m /tmp
Patrick Wallek
Honored Contributor
Solution

Re: fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

Well, it appears that you HAD a tape drive attached at some point that was assigned /dev/rmt/0m but that drive is no longer there. Use /dev/rmt/1m in your fbackup command instead and it will work.
Tan Shirley
Frequent Advisor

Re: fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

Thanks to all ! I guess i should specify /dev/rmt/1m instead of /dev/rmt/0m.
Will try and see if the backup is successful tonight.

Meanwhile, i have another HP-UX box which has the fbackup failed as well.
The /var/sam/log/br_log did reflect that the full backup started, but no exit code. But my br_index.full file wasn't updated, so I suspect the backup did not run at all.
Below is the message i got.
Any idea what went wrong ?

br_backup: Invoking fbackup. See /var/sam/log/br_log for details.
fbackup(1601): could not access -i/-e file /nfs
fbackup(1004): session begins on Fri Jul 18 02:50:01 2003
fbackup(1517): /net not backed up - 'n' option (NFS) not specified
fbackup(3203): volume 1 has been used 26 time(s)
fbackup(3024): writing volume 1 to the output file /dev/rmt/0m
Patrick Wallek
Honored Contributor

Re: fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

The last indication in the log file is that the back did start and this it is writing to the tape. The messages indicate that it could not backup /net because the switch to tell it to cross NFS mountpoints wasn't specified.

Those are warnings and your backup should be running.
Tan Shirley
Frequent Advisor

Re: fbackup fail - output file /dev/rmt/0m is not a valid device file for backup

I also share teh same thought... But when tried to restore some files, the timestamp of those files restored were much older. And some of the files could not be found on the tape 'cos they were newly created files.
Please help ! How to check what actually went wrong ?