Mailinglist Archive: opensuse (1606 mails)

< Previous Next >
Re: [opensuse] strange samba rsync problem
  • From: Damon Register <damonregister@xxxxxxxxxxxxx>
  • Date: Mon, 01 Sep 2008 08:57:43 -0400
  • Message-id: <48BBE6C7.80202@xxxxxxxxxxxxx>
Brian K. White wrote:
step one is rsync -vvvvaz --del --progress source dest

Maybe add -n and/or -i too.
I just tried that as you suggested with the -i but left out the -n
dry run.

Then based on that will probably be some tweak to rsync options to tell it to
ignore some metadata aspect that it currently looks at. Or possibly a tweak to
the mount command or possibly even the samba options on the server, or all of
the above.
Remember samba is ultimately trying to emulate a non-unix filesystem, and not
all unix fs features necessarily have any place or equivalent in ntfs or cifs,
and so the remote file looks different to rsync because of some difference in
the date/time stamps, metadata like uid/gid mapping, owndership, perms, acls,
xattrs. Even though in this case the ultimate remote filesystem is also unix
and all features probably translate fine.
I looked at the output but am not sure how to interpret it. I don't know
what tweaks I would have to make.

In this case no way would I use samba to do this sync.
Keep the samba server and the share there for the ske of the pc's, sure, but to
sync data fom the suse box I'd just use direct rsync. As in, run an rsync
daemon on the solaris box and use rsync -avz --del /local/path
user@sunbox::module/path
on the suse box.
I am not sure I still remember the details but I did it this way at the
suggestion of a sysadmin at work. If I still remember correctly, I think
there were two reasons why I let samba do the net part and use rsync as
if both source and dest were local.
1. I don't have to deal with another authentication since samba already did it
2. it is faster than through the remote rsync
Of course I could be wrong but that is what I think I remember.

I cut my test folder down to 1 file so there is less to look at with
the rsync output. I emptied the destination and ran the rsync twice
so that I expect the first to copy the file and the second should not
copy the file. Now the problem is that I don't know how to interpret
what I see. There isn't anything that stands out to me.

cmd=<NULL> machine=<NULL> user=<NULL> path=/windows/data/rosatest
cmd[0]=. cmd[1]=/windows/data/rosatest
note: iconv_open("UTF-8", "UTF-8") succeeded.
(Client) Protocol versions: remote=30, negotiated=30
(Server) Protocol versions: remote=30, negotiated=30
sending incremental file list
[sender] make_file(.,*,2)
[sender] make_file(Andrw1AD.cpp,*,2)
[sender] flist start=1, used=2, low=0, high=1
[sender] i=1 /home/rosa/and3 ./ mode=040755 len=80 uid=1000 gid=100 flags=5
[sender] i=2 /home/rosa/and3 Andrw1AD.cpp mode=0100644 len=5279 uid=1000
gid=100 flags=0
send_file_list done
file list sent
send_files starting
server_recv(2) starting pid=4953
uid 1000(rosa) maps to 1000
process has 4 gids: 14 16 33 100
gid 100(users) maps to 100
recv_file_name(.)
recv_file_name(Andrw1AD.cpp)
received 2 names
[receiver] flist start=1, used=2, low=0, high=1
[receiver] i=1 0 ./ mode=040755 len=80 gid=100 flags=5
[receiver] i=2 1 Andrw1AD.cpp mode=0100644 len=5279 gid=100 flags=0
recv_file_list done
get_local_name count=2 /windows/data/rosatest
generator starting pid=4953
delta-transmission disabled for local transfer or --whole-file
recv_generator(.,0)
recv_files(2) starting
send_files(0, /home/rosa/and3/.)
.d..tp..... ./
set modtime of . to (1220270221) Mon Sep 1 07:57:01 2008
delete_in_dir(.)
[generator] make_file(Andrw1AD.cpp,*,2)
recv_files(.)
[generator] flist start=0, used=1, low=0, high=0
[generator] i=0 0 Andrw1AD.cpp mode=0100644 len=5279 gid=100 flags=0
recv_generator(.,1)
recv_generator(Andrw1AD.cpp,2)
send_files(2, /home/rosa/and3/Andrw1AD.cpp)
> >f..t...... Andrw1AD.cpp
generate_files phase=1
send_files phase=1
recv_files(Andrw1AD.cpp)
recv_files phase=1
generate_files phase=2
send_files phase=2
send files finished
total: matches=0 hash_hits=0 false_alarms=0 data=0
recv_files phase=2
generate_files phase=3
recv_files finished
generate_files finished
client_run waiting on 4953

sent 70 bytes received 18 bytes 176.00 bytes/sec
total size is 5279 speedup is 59.99 (DRY RUN)
_exit_cleanup(code=0, file=main.c, line=1031): entered
_exit_cleanup(code=0, file=main.c, line=1031): about to call exit(0)


---------------------------------------------------------------------

cmd=<NULL> machine=<NULL> user=<NULL> path=/windows/data/rosatest
cmd[0]=. cmd[1]=/windows/data/rosatest
note: iconv_open("UTF-8", "UTF-8") succeeded.
(Server) Protocol versions: remote=30, negotiated=30
(Client) Protocol versions: remote=30, negotiated=30
sending incremental file list
[sender] make_file(.,*,2)
[sender] make_file(Andrw1AD.cpp,*,2)
[sender] flist start=1, used=2, low=0, high=1
[sender] i=1 /home/rosa/and3 ./ mode=040755 len=80 uid=1000 gid=100 flags=5
[sender] i=2 /home/rosa/and3 Andrw1AD.cpp mode=0100644 len=5279 uid=1000
gid=100 flags=0
send_file_list done
file list sent
send_files starting
server_recv(2) starting pid=5002
uid 1000(rosa) maps to 1000
process has 4 gids: 14 16 33 100
gid 100(users) maps to 100
recv_file_name(.)
recv_file_name(Andrw1AD.cpp)
received 2 names
[receiver] flist start=1, used=2, low=0, high=1
[receiver] i=1 0 ./ mode=040755 len=80 gid=100 flags=5
[receiver] i=2 1 Andrw1AD.cpp mode=0100644 len=5279 gid=100 flags=0
recv_file_list done
get_local_name count=2 /windows/data/rosatest
generator starting pid=5002
delta-transmission disabled for local transfer or --whole-file
recv_generator(.,0)
send_files(0, /home/rosa/and3/.)
.d..tp..... ./
set modtime of . to (1220270221) Mon Sep 1 07:57:01 2008
delete_in_dir(.)
[generator] make_file(Andrw1AD.cpp,*,2)
[generator] flist start=0, used=1, low=0, high=0
[generator] i=0 0 Andrw1AD.cpp mode=0100644 len=5279 gid=100 flags=0
recv_generator(.,1)
recv_generator(Andrw1AD.cpp,2)
send_files(2, /home/rosa/and3/Andrw1AD.cpp)
> >f..t...... Andrw1AD.cpp
recv_files(2) starting
generate_files phase=1
send_files phase=1
recv_files(.)
recv_files(Andrw1AD.cpp)
recv_files phase=1
generate_files phase=2
send_files phase=2
send files finished
total: matches=0 hash_hits=0 false_alarms=0 data=0
recv_files phase=2
generate_files phase=3
recv_files finished
generate_files finished
client_run waiting on 5002

sent 70 bytes received 18 bytes 176.00 bytes/sec
total size is 5279 speedup is 59.99 (DRY RUN)
_exit_cleanup(code=0, file=main.c, line=1031): entered
_exit_cleanup(code=0, file=main.c, line=1031): about to call exit(0)


Damon Register
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >