<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic rsync generates &amp;quot;Invalid argument (22)&amp;quot; when transferring certain files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782426#M607014</link>
    <description>We have a HP-UX server that periodically updates a Linux server which acts like a virtual tape server.  We transfer everything (except databases) and when it comes to _certain_ files, the following error occurs:&lt;BR /&gt;rsync: mknod "/rsync/Apr28/dev/root" failed: Invalid argument (22)&lt;BR /&gt;Here is a list of some of the files that cause the errors:&lt;BR /&gt;/dev/root&lt;BR /&gt;/dev/rroot&lt;BR /&gt;/dev/ptym/clone&lt;BR /&gt;/dev/rmt/stape_config&lt;BR /&gt;&lt;BR /&gt;The error seems to occur on Block and Character special files.  I searched the Internet and was able to find that error, but it was a bug in rsync where when it was transferring sockets, a function was called with too few parameters and caused this error.  This may be a similar problem, but they are not occurring on sockets.&lt;BR /&gt;&lt;BR /&gt;The rsync version on the HP-UX 11i is 3.0.6 (I even tried 3.0.7 from our test server and got the same thing) and 3.0.4 on the Linux box.&lt;BR /&gt;&lt;BR /&gt;I can exclude these files, but I think this is a bug and may need fixing and I also don't want to have to maintain the exclusion list every time one of these files cause a problem.  The way our synchronization works is that it does it silently and only reports when there are errors.  In this situation, it always reports errors.&lt;BR /&gt;&lt;BR /&gt;I am aware that HP does not maintain rsync, but I was hoping if anyone has come across this and what the solution was (patch?).</description>
    <pubDate>Thu, 28 Apr 2011 16:54:18 GMT</pubDate>
    <dc:creator>Daniel Robert</dc:creator>
    <dc:date>2011-04-28T16:54:18Z</dc:date>
    <item>
      <title>rsync generates "Invalid argument (22)" when transferring certain files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782426#M607014</link>
      <description>We have a HP-UX server that periodically updates a Linux server which acts like a virtual tape server.  We transfer everything (except databases) and when it comes to _certain_ files, the following error occurs:&lt;BR /&gt;rsync: mknod "/rsync/Apr28/dev/root" failed: Invalid argument (22)&lt;BR /&gt;Here is a list of some of the files that cause the errors:&lt;BR /&gt;/dev/root&lt;BR /&gt;/dev/rroot&lt;BR /&gt;/dev/ptym/clone&lt;BR /&gt;/dev/rmt/stape_config&lt;BR /&gt;&lt;BR /&gt;The error seems to occur on Block and Character special files.  I searched the Internet and was able to find that error, but it was a bug in rsync where when it was transferring sockets, a function was called with too few parameters and caused this error.  This may be a similar problem, but they are not occurring on sockets.&lt;BR /&gt;&lt;BR /&gt;The rsync version on the HP-UX 11i is 3.0.6 (I even tried 3.0.7 from our test server and got the same thing) and 3.0.4 on the Linux box.&lt;BR /&gt;&lt;BR /&gt;I can exclude these files, but I think this is a bug and may need fixing and I also don't want to have to maintain the exclusion list every time one of these files cause a problem.  The way our synchronization works is that it does it silently and only reports when there are errors.  In this situation, it always reports errors.&lt;BR /&gt;&lt;BR /&gt;I am aware that HP does not maintain rsync, but I was hoping if anyone has come across this and what the solution was (patch?).</description>
      <pubDate>Thu, 28 Apr 2011 16:54:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782426#M607014</guid>
      <dc:creator>Daniel Robert</dc:creator>
      <dc:date>2011-04-28T16:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: rsync generates "Invalid argument (22)" when transferring certain files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782427#M607015</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you paste the exact syntax, which you have used while copying.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vivek</description>
      <pubDate>Thu, 28 Apr 2011 19:05:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782427#M607015</guid>
      <dc:creator>Vivek_Pendse</dc:creator>
      <dc:date>2011-04-28T19:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: rsync generates "Invalid argument (22)" when transferring certain files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782428#M607016</link>
      <description>rsync -avz -stats --progress --delete-excluded --itemize-changes --numeric-ids -e/usr/bin/ssh --hard-links --link-dest=/rsync/Apr27 --exclude-from=/usr/rsync/config/backup.exc / backup:/rsync/Apr28&lt;BR /&gt;&lt;BR /&gt;the backup.exc file contains directories which contain database files.</description>
      <pubDate>Thu, 28 Apr 2011 19:39:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782428#M607016</guid>
      <dc:creator>Daniel Robert</dc:creator>
      <dc:date>2011-04-28T19:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: rsync generates "Invalid argument (22)" when transferring certain files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782429#M607017</link>
      <description>Linux follows the traditional Unix practice of having the device node minor and major numbers be (unsigned) 8-bit values, while HP-UX has extended the minor number to 3 bytes (0xNNNNNN).&lt;BR /&gt;&lt;BR /&gt;Because of this, it will be impossible to reproduce at least some HP-UX device nodes in Linux at the filesystem level.&lt;BR /&gt;&lt;BR /&gt;The rsync utility may be able to reproduce the devices with minor numbers between 0..255 (0x000000..0x0000ff). But larger values won't fit into Linux/x86 dev_t data type definition, so Linux mknod() system call cannot accept them.&lt;BR /&gt;&lt;BR /&gt;(On 64-bit hardware architectures like Alpha and Itanium, Linux seems to use a bigger dev_t. But one of the selling points of x86_64 is the seamless compatibility with 32-bit x86 code, so the x86_64 apparently has the same restriction as its 32-bit precedessor.)&lt;BR /&gt;&lt;BR /&gt;In general, copying device nodes from one OS to another is somewhat risky: as each OS interprets the minor &amp;amp; major numbers in its own way, a device node that is a harmless /dev/urandom with permissions 666 on its native architecture may be something completely different (and not so harmless) on another architecture. The name of the device node is just a human-comfort string with no meaning for the kernel: the minor &amp;amp; major numbers determine what the device node actually does.&lt;BR /&gt;&lt;BR /&gt;If you want to keep using your scheme, you should use something like tar or pax to package the entire /dev directory hierarchy and backup the resulting file. Any changes in HP-UX /dev are usually accompanied by corresponding hardware configuration changes, so just restoring an old /dev backup without paying attention to hardware configuration might be unwise.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Thu, 28 Apr 2011 19:49:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782429#M607017</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-04-28T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: rsync generates "Invalid argument (22)" when transferring certain files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782430#M607018</link>
      <description>Thanks Matti, that makes total sense and explains why most block and character files were transfered properly.&lt;BR /&gt;&lt;BR /&gt;The suggestion to tar the /dev directory then rsync the tar is a _great_ idea and I will implement that.&lt;BR /&gt;&lt;BR /&gt;Thanks again for the prompt response.</description>
      <pubDate>Thu, 28 Apr 2011 20:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rsync-generates-quot-invalid-argument-22-quot-when-transferring/m-p/4782430#M607018</guid>
      <dc:creator>Daniel Robert</dc:creator>
      <dc:date>2011-04-28T20:30:16Z</dc:date>
    </item>
  </channel>
</rss>

