LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Backup failed:DUMP (http://www.linuxquestions.org/questions/linux-newbie-8/backup-failed-dump-4175439291/)

rafiahmadjan 11-29-2012 04:47 AM

Backup failed:DUMP
 
While trying to backup a filesystem using dump on a remote host, i get the following error ON RHEL 6

dump 0uf test@172.31.7.1:/dev/rmt/0n backups/
DUMP: rcmd: socket: Permission denied
DUMP: login to 172.31.7.1 as root failed.

The remote host is a solaris 10 machine

Regards
Rafi

chrism01 11-29-2012 06:27 AM

Well, its telling you root is not allowed to connect on the relevant port; you need to enable that.
You should check the logs on the target system for details.

rafiahmadjan 11-30-2012 04:44 AM

Dear chrism01,

I checked the logs of the remote server and it showed the in.rshd wasnt allowed on the rehttp://www.linuxquestions.org/questions/usercp.phpmote server so i edited the
hosts.allow of the same to allow the service as:
in.rshd,sshd,in.telnetd,in.ftpd:172.31.8.5

after this i tried to backup to this remote server but the result is as shown:

/sbin/dump -0u -f rafi@172.31.7.1:/dev/rmt/0n /unused/backups/
DUMP: poll: protocol failure in circuit setup
DUMP: login to 172.31.7.1 as rafi failed.

I will really appreciate the help..Thanks

linosaurusroot 11-30-2012 05:40 AM

> protocol failure in circuit setup

http://www.novell.com/support/kb/doc.php?id=3077223

rafiahmadjan 11-30-2012 01:17 PM

Dear linosaurusroot,

The link is not working...could u crosscheck plz.

Rafi

Habitual 11-30-2012 01:43 PM

http://goo.gl/SGUeY

linosaurusroot 11-30-2012 01:50 PM

Quote:

Originally Posted by rafiahmadjan (Post 4840379)
Dear linosaurusroot,

The link is not working...could u crosscheck plz.

Rafi

Just search for the error message - the article I read explained that firewall rules on the client side could be the problem.

Or if you omit rsh and use ssh you may get better results (dump to "-" meaning stdout and pipe to ssh).

Aarif 11-30-2012 10:57 PM

Rafi,

try to stop the firewall on local machine and take dump.


Thanks,
Arif

rafiahmadjan 12-01-2012 12:04 AM

Thankyou guys,


I stopped the firewall on the client and the dump is done .

>[root@DATABASE sysconfig]# /sbin/dump -0f 172.31.7.1:/dev/rmt/0 /unused/backups/
> DUMP: Connection to 172.31.7.1 established.
> DUMP: Date of this level 0 dump: Sat Dec 1 10:52:19 2012
> DUMP: Dumping /dev/sda10 (/unused (dir /backups)) to /dev/rmt/0 on host 172.31.7.1
> DUMP: Label: none
> DUMP: Writing 10 Kilobyte records
> DUMP: mapping (Pass I) [regular files]
> DUMP: mapping (Pass II) [directories]
> DUMP: estimated 3068875 blocks.
> DUMP: Volume 1 started with block 1 at: Sat Dec 1 10:52:19 2012
> DUMP: dumping (Pass III) [directories]
> DUMP: dumping (Pass IV) [regular files]
> DUMP: 61.97% done at 6339 kB/s, finished in 0:03
> DUMP: Closing /dev/rmt/0
> DUMP: Volume 1 completed at: Sat Dec 1 11:00:45 2012
> DUMP: Volume 1 3068880 blocks (2996.95MB)
> DUMP: Volume 1 took 0:08:26
> DUMP: Volume 1 transfer rate: 6064 kB/s
> DUMP: 3068880 blocks (2996.95MB) on 1 volume(s)
> DUMP: finished in 478 seconds, throughput 6420 kBytes/sec
> DUMP: Date of this level 0 dump: Sat Dec 1 10:52:19 2012
> DUMP: Date this dump completed: Sat Dec 1 11:00:45 2012
> DUMP: Average transfer rate: 6064 kB/s
> DUMP: DUMP IS DONE

I put an exception in the firewall for ports 1011:1023 and started the backup using dump again and it worked..

I really appreciate the help

regards
Rafi


All times are GMT -5. The time now is 11:18 AM.