Mike.MacCana@nab.com.au
2006-Mar-31 03:28 UTC
Small local dir refuses to sync, others AOK.
Hi guys, I'm having a problem rsyncing between two directories on local disk. I wish to sync the local directory /local/CA/eTrustDirectory/dxserver/ldif to the other local directory /local/CA/archive. 'rsync -vvvr --progress /local/CA/eTrustDirectory/dxserver/ldif /local/CA/archive' pauses at: make_file(4,ldif/MELLDRBIB11-ldsau004wm1/ldbau004v1_20060330.0204.raw) make_file(4,ldif/MELLDRBIB11-ldsau004wm1/ldbau004v1_20060331.0204.raw) 782 files to consider For at least 50 minutes (I cancel it at this point - it's only 27MB of files). Running an 'strace -f' gives [pid 17960] lstat64("ldif/MELLDRBIB11-ldsau004wm1/ldbau004v1_20060331.0204.raw", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0 [pid 17960] write(1, "make_file(4,ldif/MELLDRBIB11-lds"..., 71make_file(4,ldif/MELLDRBIB11-ldsau004wm1/ldbau004v1_20060331.0204.raw) ) = 71 [pid 17960] getdents64(6, /* 0 entries */, 4096) = 0 [pid 17960] close(6) = 0 [pid 17960] getdents64(3, /* 0 entries */, 4096) = 0 [pid 17960] close(3) = 0 [pid 17960] chdir("/local/CA/eTrustDirectory/dxserver") = 0 [pid 17960] write(1, "782 files to consider\n", 22782 files to consider ) = 22 [pid 17960] open("/etc/mtab", O_RDONLY) = 3 [pid 17960] fstat64(3, {st_mode=S_IFREG|0644, st_size=509, ...}) = 0 [pid 17960] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75f9000 [pid 17960] read(3, "/dev/sda2 / ext3 rw 0 0\nnone /pr"..., 4096) = 509 [pid 17960] close(3) = 0 [pid 17960] munmap(0xb75f9000, 4096) = 0 [pid 17960] open("/proc/meminfo", O_RDONLY) = 3 [pid 17960] fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 [pid 17960] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75f8000 [pid 17960] read(3, " total: used: free:"..., 4096) = 786 [pid 17960] close(3) = 0 [pid 17960] munmap(0xb75f8000, 4096) = 0 [pid 17960] select(5, NULL, [4], NULL, {60, 0} (then very long pause with no updates). I'm using rsync 2.5.7, release 5.3E on Red Hat Enterprise Linux 3. The command is running as root. Weird thing is: there's another directory on the machine called 'logs', with 490MB of data. Running: rsync -vvvr --progress /local/CA/eTrustDirectory/dxserver/logs /local/CA/archive works fine. Syncing the ldif dir to /tmp/foo also fails. So it looks like there's something wrong with the ldif dir - the only thing that makes it different from the dir that works is that it's got subdirs (indeed, I can sync the ldif dir non-recursively fine). Mike Mike MacCana | Technical Specialist - Platform Services Engineering | Institutional Markets & Services | National Australia Bank Phone +61 4 1939 4504 | Email mike.maccana@ nab.com.au | Lvl 14, 500 Bourke St, Melbourne National Australia Bank Limited - ACN 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at postmaster@nab.com.au or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Limited. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe" in the subject line to Unsubscribe@nab.com.au in order to stop marketing emails from this sender. National Australia Bank Limited does not represent that this email is free of errors, viruses or interference
Mike.MacCana@nab.com.au
2006-Mar-31 03:41 UTC
Small local dir refuses to sync, others AOK.
Hi guys, I'm having a problem rsyncing between two directories on local disk. I wish to sync the local directory /local/CA/eTrustDirectory/dxserver/ldif with the other local directory /local/CA/archive. 'rsync -vvvr --progress /local/CA/eTrustDirectory/dxserver/ldif /local/CA/archive' pauses at: make_file(4,ldif/MELLDRBIB11-ldsau004wm1/ldbau004v1_20060330.0204.raw) make_file(4,ldif/MELLDRBIB11-ldsau004wm1/ldbau004v1_20060331.0204.raw) 782 files to consider For at least 50 minutes (I cancel it at this point - it's only 27MB of files). Running an 'strace -f' gives [pid 17960] lstat64("ldif/MELLDRBIB11-ldsau004wm1/ldbau004v1_20060331.0204.raw", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0 [pid 17960] write(1, "make_file(4,ldif/MELLDRBIB11-lds"..., 71make_file(4,ldif/MELLDRBIB11-ldsau004wm1/ldbau004v1_20060331.0204.raw) ) = 71 [pid 17960] getdents64(6, /* 0 entries */, 4096) = 0 [pid 17960] close(6) = 0 [pid 17960] getdents64(3, /* 0 entries */, 4096) = 0 [pid 17960] close(3) = 0 [pid 17960] chdir("/local/CA/eTrustDirectory/dxserver") = 0 [pid 17960] write(1, "782 files to consider\n", 22782 files to consider ) = 22 [pid 17960] open("/etc/mtab", O_RDONLY) = 3 [pid 17960] fstat64(3, {st_mode=S_IFREG|0644, st_size=509, ...}) = 0 [pid 17960] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75f9000 [pid 17960] read(3, "/dev/sda2 / ext3 rw 0 0\nnone /pr"..., 4096) = 509 [pid 17960] close(3) = 0 [pid 17960] munmap(0xb75f9000, 4096) = 0 [pid 17960] open("/proc/meminfo", O_RDONLY) = 3 [pid 17960] fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 [pid 17960] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75f8000 [pid 17960] read(3, " total: used: free:"..., 4096) = 786 [pid 17960] close(3) = 0 [pid 17960] munmap(0xb75f8000, 4096) = 0 [pid 17960] select(5, NULL, [4], NULL, {60, 0} (then very long pause with no updates). I'm using rsync 2.5.7, release 5.3E on Red Hat Enterprise Linux 3. The command is running as root. Weird thing is: there's another directory on the machine called 'logs', with 490MB of data. Running: rsync -vvvr --progress /local/CA/eTrustDirectory/dxserver/logs /local/CA/archive works fine. Syncing the ldif dir to /tmp/foo also fails. So it looks like there's something wrong with the ldif dir - the only thing that makes it different from the dir that works is that it's got subdirs (indeed, I can sync the ldif dir non-recursively fine). Mike Mike MacCana | Technical Specialist - Platform Services Engineering | Institutional Markets & Services | National Australia Bank Phone +61 4 1939 4504 | Email mike.maccana@ nab.com.au | Lvl 14, 500 Bourke St, Melbourne National Australia Bank Limited - ACN 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at postmaster@nab.com.au or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Limited. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe" in the subject line to Unsubscribe@nab.com.au in order to stop marketing emails from this sender. National Australia Bank Limited does not represent that this email is free of errors, viruses or interference
On Fri, Mar 31, 2006 at 02:27:57PM +1100, Mike.MacCana@nab.com.au wrote:> I'm using rsync 2.5.7, release 5.3E on Red Hat Enterprise Linux 3.Try reducing the verbosity (use no more than 2 -v options) and if the hang goes away, upgrade to at leat 2.6.5 (the latest rsync is 2.6.7). ..wayne..