LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Restore from Tape: /bin/tar: /dev/rmt/0bn: Cannot read: Cannot allocate memory (https://www.linuxquestions.org/questions/linux-newbie-8/restore-from-tape-bin-tar-dev-rmt-0bn-cannot-read-cannot-allocate-memory-780767/)

simransab 01-08-2010 01:10 AM

Restore from Tape: /bin/tar: /dev/rmt/0bn: Cannot read: Cannot allocate memory
 
Hi All,

i'm having a problem here, where i cannot restore certain file from tape. This is the first time i'm using tape backup in linux.

Successful file restore with tar command:
--------------------
emlxmba[mb]% /bin/mt -f /dev/rmt/0bn rewind
emlxmba[mb]% /bin/mt -f /dev/rmt/0bn asf 2
emlxmba[mb]% /bin/tar xvf /dev/rmt/0bn
raw_flex_ft_db1327.1

Failed fail restoration with tar command:
-----------------------------------------
emlxmba[mb]% /bin/mt -f /dev/rmt/0bn rewind
emlxmba[mb]% /bin/mt -f /dev/rmt/0bn asf 1
emlxmba[mb]% /bin/tar xvf /dev/rmt/0bn
/bin/tar: /dev/rmt/0bn: Cannot read: Cannot allocate memory
/bin/tar: At beginning of tape, quitting now
/bin/tar: Error is not recoverable: exiting now

Certain file id (2,4,6,7,8,9..) able to restore successfully.
Certain file is (1,3,5,10..) not able to restore with above error.

I try search in the net, it says may due to block size different.
I dont understand the concept and tried the command to determine/fix block size but failed.

Anyone can help here?

Thanks,
Sabrina

ginda 01-09-2010 06:03 PM

What does "mt -f /dev/rmt/0bn status" show?


All times are GMT -5. The time now is 05:59 PM.