<div class="bbWrapper">I'm new to FreeNAS. Decided to doing some benchmarking. I rsynced about 375 GB data to a dataset without dedup enabled (using NFS share). Then did the same to a data set with dedup enabled. I expected to run some zdb commands to get some finer grained statistics but when I do it does not recognize my zpool.<br />
<br />
[root@freenas] ~# zpool list<br />
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT<br />
freenas-boot 14.9G 482M 14.4G - - 3% 1.00x ONLINE -<br />
storage 5.44T 753G 4.70T - 10% 13% 1.79x ONLINE /mnt<br />
[root@freenas] ~# zdb -D storage<br />
zdb: can't open 'storage': No such file or directory<br />
[root@freenas] ~#<br />
<br />
I found a similar report in a bug report<br />
<br />
<a href="https://bugs.freenas.org/issues/7877" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://bugs.freenas.org/issues/7877</a><br />
<br />
Should I be able to see output from the zdb command for my zpool "storage"?<br />
<br />
zdb commands work just fine for zpool "freenas-boot" <br />
<br />
Any thoughts?</div>
<div class="bbWrapper">I guess I better describe my system so I don't get my hand slapped. :)<br />
<br />
I repurposed me an old Dell R610 and am running the latest FreeNAS (installed this week). It has 49113MB of RAM and 6x1TB HD's join a RaidZ1.</div>
<div class="bbWrapper"><blockquote data-attributes="member: 47987" data-quote="Jared Smith" data-source="post: 192617"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=192617"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-192617">Jared Smith said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
I guess I better describe my system so I don't get my hand slapped. :)<br />
<br />
I repurposed me an old Dell R610 and am running the latest FreeNAS (installed this week). It has 49113MB of RAM and 6x1TB HD's join a RaidZ1.
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote>Is your goal to find out how well your data de-duplicates on a test system, or how de-duplication affects real-world performance on a system you plan to deploy? If the former, you might sneak through without anyone slapping you. If the latter, someone will definitely slap you for having less than the minimum recommended RAM, while trying to use a feature that requires masses of RAM.<br />
<br />
And sorry, I don't have the answer to your question about zdb.</div>
<div class="bbWrapper"><blockquote data-attributes="member: 40195" data-quote="Robert Trevellyan" data-source="post: 192641"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=192641"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-192641">Robert Trevellyan said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
If the latter, someone will definitely slap you for having less than the minimum recommended RAM, while trying to use a feature that requires masses of RAM.
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote><br />
He's got 48GB to support 5TB. I think he's going to be just fine. If he's going to get his hand slapped for anything it'll be for using RAIDZ1 instead of RAIDZ2 or mirrors.<br />
<br />
As far as your ZDB question, zdb -D poolname works for me. Not sure what's going on there.<br />
<br />
Do <b>zpool status -D storage</b> and you should get some useful bits at least.</div>
<div class="bbWrapper">I get the same error message when I run:<br />
zpool status -D storage<br />
cannot open 'storage': no such pool<br />
<br />
I know why now! I should have entered the pool <b>name</b>. Doh!</div>
<div class="bbWrapper">Thanks to everyone that has responded.<br />
<br />
<a href="https://www.truenas.com/community/members/36971/" class="username" data-xf-init="member-tooltip" data-user-id="36971" data-username="@HoneyBadger">@HoneyBadger</a> - Yes that command worked for me but I was hoping to get the information zdb offers as well. <br />
<br />
<a href="https://www.truenas.com/community/members/31801/" class="username" data-xf-init="member-tooltip" data-user-id="31801" data-username="@Bidule0hm">@Bidule0hm</a> - I don't think the issue is name being "storage" since the person that submitted <a href="https://bugs.freenas.org/issues/7877" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://bugs.freenas.org/issues/7877</a> had the same issue without having the name storage for his pool.<br />
<br />
Any other thoughts. Could it really be a bug? Possibly me setting something up incorrectly? Any thoughts would be welcome.</div>
<div class="bbWrapper">That's a terrible bug to quote. They guy put the FreeNAS boot device on a damn hardware RAID! Then, he did dedup! The person that wrote that should be committed. :P</div>
<div class="bbWrapper"><blockquote data-attributes="member: 22572" data-quote="cyberjock" data-source="post: 194545"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=194545"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-194545">cyberjock said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
That's a terrible bug to quote. They guy put the FreeNAS boot device on a damn hardware RAID! Then, he did dedup! The person that wrote that should be committed. :p
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote><br />
Hello,<br />
<br />
I know it is a terrible bug to quote, but I am hitting the same issue, no dedup nor hardware RAID however cyberjock :D<br />
<br />
Except the standard freenas-boot one, zdb doesn't seem to find my two pools. I did not use the GUI to create them but the command line (I know my SLOG is not mirrored, this is temporary).<br />
<br />
I updated the bug request with my details and a screenshot.<br />
<br />
<a href="https://bugs.freenas.org/issues/7877" target="_blank" class="link link--external" rel="nofollow ugc noopener">https://bugs.freenas.org/issues/7877</a></div>
<div class="bbWrapper"><blockquote data-attributes="member: 53160" data-quote="Mirfster" data-source="post: 271672"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=271672"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-271672">Mirfster said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
Umm, maybe because if this?:
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote><br />
Well, zdb is not a freeNAS/GUI functionality, so I fail to see why creating a pool using the command line will make it not to appear under zdb which is a standard diagnostic tool from zfs, and secondly, I exported/reimported the pool under the GUI anyway to get rid of the missing gptid labels (with no luck). Still no visibility under zdb.</div>
<div class="bbWrapper">I understand your suggestion and it sounds practical, thank you for it - but specifically, this pool now contains 25 TB of data and re-transferring the whole thing could take days.<br />
In addition, using the command line is not a hack or an exceptional zfs usercase. I don't think the destroy-and-recreate-everything is a good approach in general when no particular mistake was made.</div>
<div class="bbWrapper">Interestingly enough, I was just testing some stuff out and saw similar behavior...<br />
<br />
Here is what I did:<br />
<ol>
<li data-xf-list-type="ol">Created Pool called "TestPool"<ul>
<li data-xf-list-type="ul">Was on a instance of FreeNas runing "Nightlies"<br />
</li>
<li data-xf-list-type="ul">Using a 6 disk RaidZ2 vDev (different sized drives; was testing something else)</li>
</ul></li>
<li data-xf-list-type="ol">Shutdown and then installed FreeNas Stable on a new SSD</li>
<li data-xf-list-type="ol">Updated Stable with the latest version</li>
<li data-xf-list-type="ol">Then I SSH'd and ran command: <b>zpool import -f TestPool</b><ul>
<li data-xf-list-type="ul">GUI "Volumes" did NOT show pool<br />
</li>
<li data-xf-list-type="ul"><b>zdb</b> showed pool correctly</li>
<li data-xf-list-type="ul"><b>zpool status</b> showed pool correctly</li>
</ul></li>
<li data-xf-list-type="ol">Rebooted (just to be safe) and tried again with the same results<br />
</li>
<li data-xf-list-type="ol">Back in SSH; I then ran command: <b>zpool export -f TestPool</b></li>
<li data-xf-list-type="ol">In the GUI; I imported the pool using the "<b>Import Volume</b>" button<ul>
<li data-xf-list-type="ul">GUI "Volumes" showed "TestPool"</li>
<li data-xf-list-type="ul"><b>zpool status</b> showed pool correctly<br />
</li>
<li data-xf-list-type="ul"><b>zdb</b> did not??</li>
</ul></li>
<li data-xf-list-type="ol">Closed SSH Session and tried again... Same results...<br />
</li>
<li data-xf-list-type="ol">I then rebooted the Server; tried again and got same results...<ul>
<li data-xf-list-type="ul">GUI "Volumes" showed "TestPool"</li>
<li data-xf-list-type="ul"><b>zpool status</b> showed pool correctly</li>
<li data-xf-list-type="ul"><b>zdb</b> did not?</li>
</ul></li>
</ol>Since this is a "dev" machine; I can test it out again in case I did anything blatantly incorrect... Anyone have some stuff you want me to try? <br />
There is not any data on this test machine and I am will to run whatever...</div>
<div class="bbWrapper"><blockquote data-attributes="member: 53160" data-quote="Mirfster" data-source="post: 271728"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=271728"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-271728">Mirfster said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
Interestingly enough, I was just testing some stuff out and saw similar behavior...<br />
<br />
Here is what I did:<br />
<ol>
<li data-xf-list-type="ol">Created Pool called "TestPool"<ul>
<li data-xf-list-type="ul">Was on a instance of FreeNas runing "Nightlies"<br />
</li>
<li data-xf-list-type="ul">Using a 6 disk RaidZ2 vDev (different sized drives; was testing something else)</li>
</ul></li>
<li data-xf-list-type="ol">Shutdown and then installed FreeNas Stable on a new SSD</li>
<li data-xf-list-type="ol">Updated Stable with the latest version</li>
<li data-xf-list-type="ol">Then I SSH'd and ran command: <b>zpool import -f TestPool</b><ul>
<li data-xf-list-type="ul">GUI "Volumes" did NOT show pool<br />
</li>
<li data-xf-list-type="ul"><b>zdb</b> showed pool correctly</li>
<li data-xf-list-type="ul"><b>zpool status</b> showed pool correctly</li>
</ul></li>
<li data-xf-list-type="ol">Rebooted (just to be safe) and tried again with the same results<br />
</li>
<li data-xf-list-type="ol">Back in SSH; I then ran command: <b>zpool export -f TestPool</b></li>
<li data-xf-list-type="ol">In the GUI; I imported the pool using the "<b>Import Volume</b>" button<ul>
<li data-xf-list-type="ul">GUI "Volumes" showed "TestPool"</li>
<li data-xf-list-type="ul"><b>zpool status</b> showed pool correctly<br />
</li>
<li data-xf-list-type="ul"><b>zdb</b> did not??</li>
</ul></li>
<li data-xf-list-type="ol">Closed SSH Session and tried again... Same results...<br />
</li>
<li data-xf-list-type="ol">I then rebooted the Server; tried again and got same results...<ul>
<li data-xf-list-type="ul">GUI "Volumes" showed "TestPool"</li>
<li data-xf-list-type="ul"><b>zpool status</b> showed pool correctly</li>
<li data-xf-list-type="ul"><b>zdb</b> did not?</li>
</ul></li>
</ol>Since this is a "dev" machine; I can test it out again in case I did anything blatantly incorrect... Anyone have some stuff you want me to try? <br />
There is not any data on this test machine and I am will to run whatever...
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote><br />
Thank you, interesting - as I have noticed, export/import does not solve the problem. I do not really have any particular idea for testing and remediation at this stage, I think there is a bug lurking here however.</div>
<div class="bbWrapper"><blockquote data-attributes="member: 38791" data-quote="stilgars" data-source="post: 271863"
class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
<div class="bbCodeBlock-title">
<a href="/community/goto/post?id=271863"
class="bbCodeBlock-sourceJump"
rel="nofollow"
data-xf-click="attribution"
data-content-selector="#post-271863">stilgars said:</a>
</div>
<div class="bbCodeBlock-content">
<div class="bbCodeBlock-expandContent js-expandContent ">
Thank you, interesting - as I have noticed, export/import does not solve the problem. I do not really have any particular idea for testing and remediation at this stage, I think there is a bug lurking here however.
</div>
<div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
</div>
</blockquote>I am tending to agree. Have some other things to work on today; but if I get a chance I will run a few more tests. If results show similar behavior; I will file a bug and post back.</div>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.