https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082009-10-02T22:30:04ZDragonFlyBSD bugtrackerDragonFlyBSD - Bug #1549: hammer mirror-copy from old hammer version to new hammer version screws up completelyhttps://bugs.dragonflybsd.org/issues/1549?journal_id=75262009-10-02T22:30:04Zdillon
<ul></ul><p>:<br />:When performing a mirror-copy from an old hammer version to a new <br />:version, no directory contents appear. the pfs is basically unusable, <br />:yet uses up disk space.<br />:<br />:THIS IS EXTREMELY ANNOYING AND DANGEROUS. WHY IS THIS STILL NOT FIXED?<br />:<br />:This is a great opportunity to completely destroy all your data. EXCELLENT!</p>
<pre><code>Well, this is the first time I've heard of this. A mirror-copy<br /> from an old hammer to a new one should work fine in theory. Are you<br /> sure you weren't copying the other way around? Copying a new hammer<br /> to an old hammer would not work.</code></pre>
<pre><code>Was it a clean mirror-copy or did you forcefully downgrade a master<br /> into a slave first?</code></pre>
<pre><code>-Matt<br /> Matthew Dillon <br /> &lt;<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>&gt;</code></pre> DragonFlyBSD - Bug #1549: hammer mirror-copy from old hammer version to new hammer version screws up completelyhttps://bugs.dragonflybsd.org/issues/1549?journal_id=75272009-10-02T22:33:15Zcorecode
<ul></ul><p>Matthew Dillon wrote:</p>
<blockquote>
<p>:<br />:When performing a mirror-copy from an old hammer version to a new <br />:version, no directory contents appear. the pfs is basically unusable, <br />:yet uses up disk space.<br />:<br />:THIS IS EXTREMELY ANNOYING AND DANGEROUS. WHY IS THIS STILL NOT FIXED?<br />:<br />:This is a great opportunity to completely destroy all your data. EXCELLENT!</p>
<p>Well, this is the first time I've heard of this. A mirror-copy<br />from an old hammer to a new one should work fine in theory. Are you<br />sure you weren't copying the other way around? Copying a new hammer<br />to an old hammer would not work.</p>
</blockquote>
<p>It was certainly from old to new. This happened before and I reported <br />on IRC, but considered it as an error on my part. Now it happening <br />again means that something is really wrong.</p>
<blockquote>
<p>Was it a clean mirror-copy or did you forcefully downgrade a master<br />into a slave first?</p>
</blockquote>
<p>Clean hammer mirror-copy /path/to/old-pfs /path/to/nonexisting-new-pfs</p>
<p>cheers<br /> simon</p> DragonFlyBSD - Bug #1549: hammer mirror-copy from old hammer version to new hammer version screws up completelyhttps://bugs.dragonflybsd.org/issues/1549?journal_id=75282009-10-02T23:24:08Zdillon
<ul></ul><p>:<br />:Matthew Dillon wrote:<br />:> :<br />:> :When performing a mirror-copy from an old hammer version to a new <br />:> :version, no directory contents appear. the pfs is basically unusable, <br />:> :yet uses up disk space.<br />:> :<br />:> :THIS IS EXTREMELY ANNOYING AND DANGEROUS. WHY IS THIS STILL NOT FIXED?<br />:> :<br />:> :This is a great opportunity to completely destroy all your data. EXCELLENT!<br />:> <br />:> Well, this is the first time I've heard of this. A mirror-copy<br />:> from an old hammer to a new one should work fine in theory. Are you<br />:> sure you weren't copying the other way around? Copying a new hammer<br />:> to an old hammer would not work.<br />:<br />:It was certainly from old to new. This happened before and I reported <br />:on IRC, but considered it as an error on my part. Now it happening <br />:again means that something is really wrong.<br />:<br />:> Was it a clean mirror-copy or did you forcefully downgrade a master<br />:> into a slave first?<br />:<br />:Clean hammer mirror-copy /path/to/old-pfs /path/to/nonexisting-new-pfs<br />:<br />:cheers<br />: simon</p>
<pre><code>Ok, it is definitely a bug. The HAMMER code is creating a root inode<br /> for the slave PFS, which causes it to ignore the root inode it would<br /> otherwise copy from the master. This combined with the directory<br /> capabilities being different between version 1 and version 2 is<br /> breaking the root directory.</code></pre>
<pre><code>I have committed fixes to both master and DragonFly_RELEASE_2_4.<br /> Any newly created slave PFSs should work as expect when doing a<br /> mirror-copy from an older HAMMER filesystem to a newer one.</code></pre>
<pre><code>-Matt<br /> Matthew Dillon <br /> &lt;<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>&gt;</code></pre> DragonFlyBSD - Bug #1549: hammer mirror-copy from old hammer version to new hammer version screws up completelyhttps://bugs.dragonflybsd.org/issues/1549?journal_id=81752010-03-01T03:00:38Zthomas.nikolajsen
<ul></ul><p>Fixed in commit 9a032a4a6043b9cbd16e28fa42266da57a854b40</p>