LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-23-2017, 03:59 AM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
rsync failed to set times on a file/dir located on SSHFS mountpoint


Hello,

i wanted to ask how i need to modify my SSHFS mounting command so it allows rsync to properly sync files with it.

Currently this is the error i receive:
Quote:
INFO: rsync: failed to set times on "/sshfs/mountpoint/file" No such file or directory (2)
it shows for both files & dirs

$ mount:
root@remoteip:/sshfs/mountpoint on /sshfs/mountpoint type fuse.sshfs (rw)

/etc/fstab:
root@remoteip:/sshfs/mountpoint /sshfs/mountpoint fuse.sshfs defaults,_netdev 0 0

initial sshfs command:
sshfs user@remoteip:/sshfs/mountpoint /remotestorage -o idmap=user,reconnect,ServerAliveInterval=10,ServerAliveCountMax=4,nonempty,port=22

The rsync is called not by mine command but using vzdump utility, so i prefer if i can tweak SSHFS settings instead of rsync as i am unsure if/how to update vzdumps rsync parameters:
-t, --times preserve modification times
-O, --omit-dir-times omit directories from --times
(standalone rsync command works: rsync -av xy /sshfs/mountpoint)

How can i please mount the SSHFS so the rsync do not complains?

fuse-sshfs-2.4-1.el6.x86_64
centos 6
 
Old 08-23-2017, 10:38 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by postcd View Post
Hello,
i wanted to ask how i need to modify my SSHFS mounting command so it allows rsync to properly sync files with it. Currently this is the error i receive:
Code:
INFO: rsync: failed to set times on "/sshfs/mountpoint/file" No such file or directory (2)
it shows for both files & dirs

$ mount:
root@remoteip:/sshfs/mountpoint on /sshfs/mountpoint type fuse.sshfs (rw)

/etc/fstab:
root@remoteip:/sshfs/mountpoint /sshfs/mountpoint fuse.sshfs defaults,_netdev 0 0

initial sshfs command:
sshfs user@remoteip:/sshfs/mountpoint /remotestorage -o idmap=user,reconnect,ServerAliveInterval=10,ServerAliveCountMax=4,nonempty,port=22

The rsync is called not by mine command but using vzdump utility, so i prefer if i can tweak SSHFS settings instead of rsync as i am unsure if/how to update vzdumps rsync parameters:
-t, --times preserve modification times
-O, --omit-dir-times omit directories from --times
(standalone rsync command works: rsync -av xy /sshfs/mountpoint)

How can i please mount the SSHFS so the rsync do not complains?

fuse-sshfs-2.4-1.el6.x86_64
centos 6
Your question is NOT about rsync but about vzdump. Read the man page on vzdump; pay attention to the tmpdir flag.
 
Old 08-26-2017, 03:55 AM   #3
postcd
Member
 
Registered: Oct 2013
Posts: 527

Original Poster
Rep: Reputation: Disabled
Thx for pointing that out. I see i can use different tmpdir, but i want it to be on the sshfs mount point and it shows above mentioned error which is the core of my question.

Quote:
INFO: starting first sync /vz/private/3410 to /sshfs/mountpoint/tmp/vzdumptmp230769
INFO: rsync: failed to set times on "/sshfs/mountpoint/tmp/vzdumptmp230769/3410/aquota.group": No such file or directory (2)
INFO: rsync: failed to set times on "/sshfs/mountpoint/tmp/vzdumptmp230769/3410/aquota.user": No such file or directory (2)
INFO: rsync: failed to set times on "/sshfs/mountpoint/tmp/vzdumptmp230769/3410/bin/lsmod": No such file or directory (2)
INFO: rsync: failed to set times on "/sshfs/mountpoint/tmp/vzdumptmp230769/3410/bin/mt": No such file or directory (2)
INFO: rsync: failed to set times on "/sshfs/mountpoint/tmp/vzdumptmp230769/3410/bin/sh": No such file or directory (2)
INFO: rsync: failed to set times on "/sshfs/mountpoint/tmp/vzdumptmp230769/3410/bin/sh.distrib": No such file or directory (2)
INFO: rsync: mknod "/sshfs/mountpoint/tmp/vzdumptmp230769/3410/dev/console" failed: Operation not permitted (1)
INFO: rsync: mknod "/sshfs/mountpoint/tmp/vzdumptmp230769/3410/dev/null" failed: Operation not permitted (1)
...
 
Old 08-26-2017, 08:49 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by postcd View Post
Thx for pointing that out.
You have been asked and told MANY TIMES over the years to quit using text-speak. Is there a reason you continue to ignore the LQ Rules???
Quote:
I see i can use different tmpdir, but i want it to be on the sshfs mount point and it shows above mentioned error which is the core of my question.
Did you read and understand those messages??? First, they're INFO messages...nothing more. Secondly, you have JUST NOW posted these details. And going by what you bolded, the first one says, very plainly, it CANNOT FIND THE FILE. That's what "No such file or directory" means. The second one is also obvious: why back ANYTHING up in /dev, when those things get created??? That utility can't back it up, period.

And again, as we've seen many, MANY times, you are not providing any useful details. What swtiches are you using for vzdump? Command line? Are the vm's RUNNING when you back them up? Again, YOU need to read the man page on vzdump...there are options on how to exclude files/directories, places to specify local storage, places to put scripts to move things to other file systems after, etc.

Have you done/tried anything?

Last edited by TB0ne; 08-26-2017 at 08:50 AM.
 
Old 08-27-2017, 02:08 PM   #5
postcd
Member
 
Registered: Oct 2013
Posts: 527

Original Poster
Rep: Reputation: Disabled
I think VMs are suspended (unmounted?) when the vzdump runs, because there is no LVM.

So the error "failed to set times on ...: No such file or directory (2)" can be ignored or there is any way i can tweak sshfs mountpoint so the error do not display? Because error do not display when the destination is not sshfs moun point. As said i want tmpdir and destination dir be on the sshfs mount point. Thx
 
Old 08-27-2017, 04:00 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by postcd View Post
I think VMs are suspended (unmounted?) when the vzdump runs, because there is no LVM.
You *THINK*? Do you not know??? Because again, as you have been told many, MANY times...unless you provide actual details we cannot help. And having to ask over and over again isn't good for anyone here.
Quote:
So the error "failed to set times on ...: No such file or directory (2)" can be ignored or there is any way i can tweak sshfs mountpoint so the error do not display? Because error do not display when the destination is not sshfs moun point. As said i want tmpdir and destination dir be on the sshfs mount point. Thx
AGAIN, you need to stop using text speak...you've been told dozens of times...why do you continue?

The messages were explained to you; if you don't understand the explanation, there isn't much else we're going to tell you. And again, what you WANT and what you CAN DO with that command are two different things. AGAIN...read the man page.

Last edited by TB0ne; 08-27-2017 at 04:37 PM.
 
Old 08-27-2017, 04:42 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
sshfs is a fuse filesystem based on the sftp protocol which does not have direct access to file/directory modification times. I don't know of any way except for changing the rsync options to omit times using the -o option as indicated in your first post.
 
Old 08-27-2017, 05:22 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by michaelk View Post
sshfs is a fuse filesystem based on the sftp protocol which does not have direct access to file/directory modification times. I don't know of any way except for changing the rsync options to omit times using the -o option as indicated in your first post.
Indeed, but the OP isn't using standard rsync, but the vzdump utility. They also won't say/don't know details about those systems, and have been directed to the man page of the utility. Several things the OP *COULD* do, such as backing up to local storage, and having the utility automatically move the file via script to the sshfs mount-point, etc.

But as he was told...those are just info messages, not errors. Backing up the /dev folder isn't good, but you can omit those (see previous comments about the vzdump utility), but the OP doesn't seem to accept this. And they've still not given much in the way of useful details despite being asked several times now, which isn't unusual for the OP. We don't know:
  • The command(s) being used to run this
  • State of the VM's in question (re: state of files/existence of files/permissions/etc)
Not sure what to tell the OP when they ignore what they're told, won't answer questions when asked, and continue with the text-speak.
 
Old 08-27-2017, 06:06 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Your correct and I don't know how vzdump is using the rsync command. I was just confirming that as far as I know there is no sshfs option that will fix the rsync warnings.
 
  


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
[SOLVED] How do I rsync a local dir to a remote dir over ssh with a custom port? wh33t Linux - Software 4 12-03-2015 02:17 AM
[SOLVED] rsync: failed to set times on "/data/directoryname/.": Operation not permitted (1) anon091 Linux - Newbie 2 04-23-2014 05:14 PM
[SOLVED] sync: failed to set times Read-only file system (30) premnath.bangar Linux - Networking 4 01-23-2014 06:20 AM
GDB - How to set breakpoints in files located outside the current dir chogall Programming 2 02-17-2011 03:25 PM
rsync -u Does it update the contents of a dir if that dir is changed? crazyivan Linux - Software 1 04-02-2008 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:48 AM.

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