LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2002, 02:43 PM   #1
Jason Foat
LQ Newbie
 
Registered: May 2002
Posts: 3

Rep: Reputation: 0
Angry Trouble using dd for remote back ups


Hi,

I'm having trouble using to dd in conjunction with
dump for remote backups.

In particular, I'm attempting to use a combination of
ssh/dump/dd to back up remote systems to a tape drive on my local linuxbox. I'm using dd 4.1 with Linux 7.2, on an i686
architecture. For example,

#ssh REMOTELINUXBOX /sbin/dump -0 -f - /dev/sda2 | dd
of=/dev/nst0

yields the following sequence:

DUMP: Date of this level 0 dump: Thu May 16 21:03:40
2002
DUMP: Dumping /dev/sda2 (/) to standard output
DUMP: Exclude ext3 journal inode 8
DUMP: Label: /
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 10472849 tape blocks.
DUMP: Volume 1 started with block 1 at: Thu May 16
21:03:53 2002
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: 2.40% done at 837 kB/s, finished in 3:23
DUMP: 4.84% done at 844 kB/s, finished in 3:16
DUMP: 7.24% done at 842 kB/s, finished in 3:12
DUMP: 9.64% done at 841 kB/s, finished in 3:07
DUMP: 12.03% done at 839 kB/s, finished in 3:02
DUMP: 14.41% done at 838 kB/s, finished in 2:58
dd: writing `/dev/nst0': Invalid argument
3156720+41 records in
3156740+0 records out

Note the 'Invalid argument' error that comes up 15% of

the way through the dump.

I can also generate a similar error by attempting to
write a simple file to the tape:

# echo `date` | dd of=/dev/nst0

yields

dd: writing `/dev/nst0': Invalid argument
0+1 records in
0+0 records out

For a truley bizaare twist to this, if I issue a
simliar dump command to a REMOTESOLARISBOX, the dump completes just fine.

Is this a bug, or am I doing something wrong?

Thanks,

Jason Foat
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apc Back-ups 650 a10392 Linux - Software 1 12-03-2004 11:51 AM
apc Back-ups a10392 Debian 1 12-03-2004 11:24 AM
Back ups vswr31 Linux - General 2 10-25-2004 01:56 AM
USB Support for APC Battery back up UPS gway600 Linux - Hardware 2 08-06-2004 09:59 PM
trouble using dd for remote back ups Jason Foat Linux - Networking 1 05-21-2002 03:05 PM


All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration