LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 06-26-2017, 09:19 PM   #1
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Rep: Reputation: Disabled
backing up xfs on centos7


Having trouble specifying a remote dump file...

Code:
[root@centos7~]# ssh backup touch /backup/centos7/centos7.boot.2017-06-26.L0.xfsdump.tmp
[root@centos7~]# /usr/sbin/xfsdump -l 0 -f backup:/backup/centos7/centos7.boot.2017-06-26.L0.xfsdump.tmp /boot
sh: /usr/bin/rsh: No such file or directory
WARNING: rmtopen: failed to detect remote host type reading "/usr/bin/rsh backup uname"
librmt: problem finding either RSH(/usr/bin/rsh) or RMT(/etc/rmt): No such file or directory
xfsdump: mlog.c:774: mlog_exit_flush: Assertion `((mlog_main_exit_code) == 0 || (mlog_main_exit_code) == 1 || (mlog_main_exit_code) == 2 || (mlog_main_exit_code) == 4)' failed.
/usr/sbin/xfsdump: using file dump (drive_simple) strategy
sh: /usr/bin/rsh: No such file or directory
WARNING: rmtopen: failed to detect remote host type reading "/usr/bin/rsh backup uname"
*** buffer overflow detected ***: /usr/sbin/xfsdump terminated
======= Backtrace: =========
 
Old 06-26-2017, 10:11 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,991

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Seems you are trying to do it over a network. This fails first. "sh: /usr/bin/rsh:"

Start there. Might be some problems if this is NFS too.

http://forums.nekochan.net/viewtopic.php?t=16725078
 
Old 06-27-2017, 09:39 AM   #3
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Original Poster
Rep: Reputation: Disabled
I installed 'rsh', and still get the following error.
1) I can ping the 'backup' server just fine.
2) Why is it using 'rmt' commands, this is a dump to a file in a remote host, not a tape drive.

Code:
[root@centos7 ~]# /usr/sbin/xfsdump -l 0 -f backup:/backup/centos7/centos7.boot.2017-06-27.L0.xfsdump.tmp /boot
backup: No route to host
WARNING: rmtopen: failed to detect remote host type reading "/usr/bin/rsh backup uname"
backup: No route to host
/usr/sbin/xfsdump: using file dump (drive_simple) strategy
backup: No route to host
WARNING: rmtopen: failed to detect remote host type reading "/usr/bin/rsh backup uname"
*** buffer overflow detected ***: /usr/sbin/xfsdump terminated

[root@centos7 ~]# ping backup
PING backup (10.0.0.254) 56(84) bytes of data.
64 bytes from backup (10.0.0.254): icmp_seq=1 ttl=64 time=0.248 ms
64 bytes from backup (10.0.0.254): icmp_seq=2 ttl=64 time=0.395 ms
 
Old 06-27-2017, 10:00 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,721

Rep: Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914
I assume the linux verion of xfsdump is the same as the unix version. It appears the remote file has to be in the /dev directory. Alternative methods would be to use nfs or a pipe.

http://docs.cray.com/books/S-2311-22...g2wmwkw45.html
 
Old 06-27-2017, 10:22 AM   #5
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Original Poster
Rep: Reputation: Disabled
Yes, xfsdump is installed by 'yum' to match the current OS version.
I tried dumping to stdout but it's aparently not supported:

Code:
[root@centos7 ~]# /usr/sbin/xfsdump -l 0 -f - /boot | ssh backup "dd of=/backup/centos7/centos7.boot.2017-06-27.L0.xfsdump.tmp"
/usr/sbin/xfsdump: usage: xfsdump [ -a (dump DMF dualstate files as offline) ]
                                  [ -b <blocksize> ]
                                  [ -c <media change alert program>  ]
                                  [ -d <dump media file size>  ]
                                  [ -e (allow files to be excluded) ]
                                  [ -f <destination> ... ]
                                  [ -h (help) ]
                                  [ -l <level> ]
                                  [ -m (force usage of minimal rmt) ]
                                  [ -o (overwrite tape) ]
                                  [ -p <seconds between progress reports> ]
                                  [ -q <use QIC tape settings> ]
                                  [ -s <subtree> ... ]
                                  [ -t <file> (use file mtime for dump time ]
                                  [ -v <verbosity {silent, verbose, trace}> ]
                                  [ -z <maximum file size> ]
                                  [ -A (don't dump extended file attributes) ]
                                  [ -B <base dump session id> ]
                                  [ -D (skip unchanged directories) ]
                                  [ -E (pre-erase media) ]
                                  [ -F (don't prompt) ]
                                  [ -I (display dump inventory) ]
                                  [ -J (inhibit inventory update) ]
                                  [ -K (generate format 2 dump) ]
                                  [ -L <session label> ]
                                  [ -M <media label> ... ]
                                  [ -O <options file> ]
                                  [ -R (resume) ]
                                  [ -T (don't timeout dialogs) ]
                                  [ -Y <I/O buffer ring length> ]
                                  [ - (stdout) ]
                                  [ <source (mntpnt|device)> ]
 
Old 06-27-2017, 10:32 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,721

Rep: Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914
For stdout you do not specify the -f option. Untested but try this:
Code:
/usr/sbin/xfsdump -l 0 - /boot | ssh backup "cat - > /backup/centos7/centos7.boot.2017-06-27.L0.xfsdump.tmp"
 
Old 06-27-2017, 10:56 AM   #7
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Original Poster
Rep: Reputation: Disabled
That seems to work.
Next question... Is there a way to make xfsdump avoid spanning filesystems (sub directories which are mount points)?
 
Old 06-27-2017, 11:16 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,721

Rep: Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914
My xfsdump knowledge is very limited... The -s option is used to exclude files and directories but not sure of its exact syntax.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewalld on Centos7 trackstar2000 Linux - Newbie 12 04-17-2017 04:29 PM
CentOS7 / squid_ldap_auth saavik Linux - Server 2 12-12-2016 06:42 AM
[SOLVED] CentOS6 to CentOS7 - How To? etpoole60 Linux - Software 2 05-04-2016 07:48 PM
How to install Centos7 manh12a3 Linux - Desktop 3 12-10-2015 01:29 AM
kdebase not recognizing XFree86-xfs package as xfs mikeyt_333 Linux - Software 1 08-17-2004 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 04:44 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
Open Source Consulting | Domain Registration