zdb doesn’t recognize my pool? The Next CEO of Stack OverflowMissing whole disk device in OpenSolarisZFS pool question“zpool replace” hangs and locks up the poolWhy is a ZFS pool not persisting over server restart?What happens to missed writes after a zpool clear?ZFS: bringing a disk online in an unavailable poolzpool import: volume FAULTED with corrupted data, is it possible to save some data?FreeNAS zfs zraid two failing disksZFS (Freenas) off-lining an apparently healthy drive during scrubHow to correctly attach a disk to a zpool to create a mirror? - zpool attach says no such pool or dataset

Getting Stale Gas Out of a Gas Tank w/out Dropping the Tank

Defamation due to breach of confidentiality

Towers in the ocean; How deep can they be built?

Strange use of "whether ... than ..." in official text

Expectation in a stochastic differential equation

What steps are necessary to read a Modern SSD in Medieval Europe?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Does the Idaho Potato Commission associate potato skins with healthy eating?

what's the use of '% to gdp' type of variables?

0-rank tensor vs vector in 1D

Prepend last line of stdin to entire stdin

Reference request: Grassmannian and Plucker coordinates in type B, C, D

How to find image of a complex function with given constraints?

How to Implement Deterministic Encryption Safely in .NET

How to avoid supervisors with prejudiced views?

In the "Harry Potter and the Order of the Phoenix" video game, what potion is used to sabotage Umbridge's speakers?

Can someone explain this formula for calculating Manhattan distance?

Audio Conversion With ADS1243

Players Circumventing the limitations of Wish

Do scriptures give a method to recognize a truly self-realized person/jivanmukta?

Is it ok to trim down a tube patch?

Can you teleport closer to a creature you are Frightened of?

Can Sneak Attack be used when hitting with an improvised weapon?

How did Beeri the Hittite come up with naming his daughter Yehudit?



zdb doesn’t recognize my pool?



The Next CEO of Stack OverflowMissing whole disk device in OpenSolarisZFS pool question“zpool replace” hangs and locks up the poolWhy is a ZFS pool not persisting over server restart?What happens to missed writes after a zpool clear?ZFS: bringing a disk online in an unavailable poolzpool import: volume FAULTED with corrupted data, is it possible to save some data?FreeNAS zfs zraid two failing disksZFS (Freenas) off-lining an apparently healthy drive during scrubHow to correctly attach a disk to a zpool to create a mirror? - zpool attach says no such pool or dataset










5















On my freenas server, zpool status tells me I have 2 zfs pool : data & freenas-boot :



% zpool status
pool: data
state: ONLINE
scan: scrub repaired 0 in 0 days 04:16:16 with 0 errors on Mon Nov 20 00:59:24 2017
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
gptid/3e08fdba-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/3eba62c2-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/3f704246-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/40249d11-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0

errors: No known data errors

pool: freenas-boot
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:13 with 0 errors on Sun Mar 4 03:45:14 2018
config:

NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
ada0p2 ONLINE 0 0 0

errors: No known data errors


I would like to get statistics about my data zpool but zdb gives me an error :



% sudo zdb -b data
zdb: can't open 'data': No such file or directory


But it works on the freenas-boot pool :



% sudo zdb -b freenas-boot 

Traversing all blocks to verify nothing leaked ...

loading space map for vdev 0 of 1, metaslab 55 of 119 ...
2.56G completed ( 881MB/s) estimated time remaining: 0hr 00min 00sec
No leaks (block sum matches space maps exactly)

bp count: 281124
ganged count: 0
bp logical: 5928553472 avg: 21088
bp physical: 2636954624 avg: 9380 compression: 2.25
bp allocated: 3376803840 avg: 12011 compression: 1.76
bp deduped: 0 ref>1: 0 deduplication: 1.00
SPA allocated: 3376803840 used: 2.64%
Dittoed blocks on same vdev: 50961


What am I doing wrong ?










share|improve this question
























  • Any chance you have imported that pool with readonly=on? There seems to be a bug around that and you can come around this with the -e flag with zdb, treating that pool as if it was exported.

    – Thomas
    Mar 3 '18 at 15:32











  • No. The data pool was the one I created for storing my data and it’s read & write.

    – paulgreg
    Mar 3 '18 at 16:10











  • Okay, but does it change anything if you use zdb -e -b data?

    – Thomas
    Mar 3 '18 at 18:14











  • No, same result.

    – paulgreg
    Mar 4 '18 at 10:06











  • I think best would then be to open a bug report at freenas.

    – Thomas
    Mar 4 '18 at 11:20















5















On my freenas server, zpool status tells me I have 2 zfs pool : data & freenas-boot :



% zpool status
pool: data
state: ONLINE
scan: scrub repaired 0 in 0 days 04:16:16 with 0 errors on Mon Nov 20 00:59:24 2017
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
gptid/3e08fdba-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/3eba62c2-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/3f704246-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/40249d11-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0

errors: No known data errors

pool: freenas-boot
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:13 with 0 errors on Sun Mar 4 03:45:14 2018
config:

NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
ada0p2 ONLINE 0 0 0

errors: No known data errors


I would like to get statistics about my data zpool but zdb gives me an error :



% sudo zdb -b data
zdb: can't open 'data': No such file or directory


But it works on the freenas-boot pool :



% sudo zdb -b freenas-boot 

Traversing all blocks to verify nothing leaked ...

loading space map for vdev 0 of 1, metaslab 55 of 119 ...
2.56G completed ( 881MB/s) estimated time remaining: 0hr 00min 00sec
No leaks (block sum matches space maps exactly)

bp count: 281124
ganged count: 0
bp logical: 5928553472 avg: 21088
bp physical: 2636954624 avg: 9380 compression: 2.25
bp allocated: 3376803840 avg: 12011 compression: 1.76
bp deduped: 0 ref>1: 0 deduplication: 1.00
SPA allocated: 3376803840 used: 2.64%
Dittoed blocks on same vdev: 50961


What am I doing wrong ?










share|improve this question
























  • Any chance you have imported that pool with readonly=on? There seems to be a bug around that and you can come around this with the -e flag with zdb, treating that pool as if it was exported.

    – Thomas
    Mar 3 '18 at 15:32











  • No. The data pool was the one I created for storing my data and it’s read & write.

    – paulgreg
    Mar 3 '18 at 16:10











  • Okay, but does it change anything if you use zdb -e -b data?

    – Thomas
    Mar 3 '18 at 18:14











  • No, same result.

    – paulgreg
    Mar 4 '18 at 10:06











  • I think best would then be to open a bug report at freenas.

    – Thomas
    Mar 4 '18 at 11:20













5












5








5








On my freenas server, zpool status tells me I have 2 zfs pool : data & freenas-boot :



% zpool status
pool: data
state: ONLINE
scan: scrub repaired 0 in 0 days 04:16:16 with 0 errors on Mon Nov 20 00:59:24 2017
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
gptid/3e08fdba-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/3eba62c2-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/3f704246-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/40249d11-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0

errors: No known data errors

pool: freenas-boot
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:13 with 0 errors on Sun Mar 4 03:45:14 2018
config:

NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
ada0p2 ONLINE 0 0 0

errors: No known data errors


I would like to get statistics about my data zpool but zdb gives me an error :



% sudo zdb -b data
zdb: can't open 'data': No such file or directory


But it works on the freenas-boot pool :



% sudo zdb -b freenas-boot 

Traversing all blocks to verify nothing leaked ...

loading space map for vdev 0 of 1, metaslab 55 of 119 ...
2.56G completed ( 881MB/s) estimated time remaining: 0hr 00min 00sec
No leaks (block sum matches space maps exactly)

bp count: 281124
ganged count: 0
bp logical: 5928553472 avg: 21088
bp physical: 2636954624 avg: 9380 compression: 2.25
bp allocated: 3376803840 avg: 12011 compression: 1.76
bp deduped: 0 ref>1: 0 deduplication: 1.00
SPA allocated: 3376803840 used: 2.64%
Dittoed blocks on same vdev: 50961


What am I doing wrong ?










share|improve this question
















On my freenas server, zpool status tells me I have 2 zfs pool : data & freenas-boot :



% zpool status
pool: data
state: ONLINE
scan: scrub repaired 0 in 0 days 04:16:16 with 0 errors on Mon Nov 20 00:59:24 2017
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
gptid/3e08fdba-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/3eba62c2-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/3f704246-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0
gptid/40249d11-4564-11e7-bdef-00fd45fc38ec ONLINE 0 0 0

errors: No known data errors

pool: freenas-boot
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:13 with 0 errors on Sun Mar 4 03:45:14 2018
config:

NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
ada0p2 ONLINE 0 0 0

errors: No known data errors


I would like to get statistics about my data zpool but zdb gives me an error :



% sudo zdb -b data
zdb: can't open 'data': No such file or directory


But it works on the freenas-boot pool :



% sudo zdb -b freenas-boot 

Traversing all blocks to verify nothing leaked ...

loading space map for vdev 0 of 1, metaslab 55 of 119 ...
2.56G completed ( 881MB/s) estimated time remaining: 0hr 00min 00sec
No leaks (block sum matches space maps exactly)

bp count: 281124
ganged count: 0
bp logical: 5928553472 avg: 21088
bp physical: 2636954624 avg: 9380 compression: 2.25
bp allocated: 3376803840 avg: 12011 compression: 1.76
bp deduped: 0 ref>1: 0 deduplication: 1.00
SPA allocated: 3376803840 used: 2.64%
Dittoed blocks on same vdev: 50961


What am I doing wrong ?







zfs freenas






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 7 '18 at 7:05







paulgreg

















asked Mar 3 '18 at 14:46









paulgregpaulgreg

2,43752531




2,43752531












  • Any chance you have imported that pool with readonly=on? There seems to be a bug around that and you can come around this with the -e flag with zdb, treating that pool as if it was exported.

    – Thomas
    Mar 3 '18 at 15:32











  • No. The data pool was the one I created for storing my data and it’s read & write.

    – paulgreg
    Mar 3 '18 at 16:10











  • Okay, but does it change anything if you use zdb -e -b data?

    – Thomas
    Mar 3 '18 at 18:14











  • No, same result.

    – paulgreg
    Mar 4 '18 at 10:06











  • I think best would then be to open a bug report at freenas.

    – Thomas
    Mar 4 '18 at 11:20

















  • Any chance you have imported that pool with readonly=on? There seems to be a bug around that and you can come around this with the -e flag with zdb, treating that pool as if it was exported.

    – Thomas
    Mar 3 '18 at 15:32











  • No. The data pool was the one I created for storing my data and it’s read & write.

    – paulgreg
    Mar 3 '18 at 16:10











  • Okay, but does it change anything if you use zdb -e -b data?

    – Thomas
    Mar 3 '18 at 18:14











  • No, same result.

    – paulgreg
    Mar 4 '18 at 10:06











  • I think best would then be to open a bug report at freenas.

    – Thomas
    Mar 4 '18 at 11:20
















Any chance you have imported that pool with readonly=on? There seems to be a bug around that and you can come around this with the -e flag with zdb, treating that pool as if it was exported.

– Thomas
Mar 3 '18 at 15:32





Any chance you have imported that pool with readonly=on? There seems to be a bug around that and you can come around this with the -e flag with zdb, treating that pool as if it was exported.

– Thomas
Mar 3 '18 at 15:32













No. The data pool was the one I created for storing my data and it’s read & write.

– paulgreg
Mar 3 '18 at 16:10





No. The data pool was the one I created for storing my data and it’s read & write.

– paulgreg
Mar 3 '18 at 16:10













Okay, but does it change anything if you use zdb -e -b data?

– Thomas
Mar 3 '18 at 18:14





Okay, but does it change anything if you use zdb -e -b data?

– Thomas
Mar 3 '18 at 18:14













No, same result.

– paulgreg
Mar 4 '18 at 10:06





No, same result.

– paulgreg
Mar 4 '18 at 10:06













I think best would then be to open a bug report at freenas.

– Thomas
Mar 4 '18 at 11:20





I think best would then be to open a bug report at freenas.

– Thomas
Mar 4 '18 at 11:20










2 Answers
2






active

oldest

votes


















1














I had this problem on OmniOS where zdb couldn't open my rpool. The problem was caused by guid mismatch in zfs metadata versus actual guids of my disks. I guess this is a result of replacing broken hardware and shuffling disks between zpools...



The solution was to zfs detach one device of the mirror and zfs attach it back.






share|improve this answer






























    1














    For whatever reason, the cache path is different on FreeNAS. They haven't patched zdb to know where to look by default.



    Add -U /data/zfs/zpool.cache <POOLNAME> to all uses of zdb to get it to work.



    For your example, the command would be: zdb -U /data/zfs/zpool.cache -b data






    share|improve this answer

























    • This solved my problem. Searching the freeNas bugs list I found this bug that was closed in 2016.

      – Brandon McClure
      yesterday











    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f899814%2fzdb-doesn-t-recognize-my-pool%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    I had this problem on OmniOS where zdb couldn't open my rpool. The problem was caused by guid mismatch in zfs metadata versus actual guids of my disks. I guess this is a result of replacing broken hardware and shuffling disks between zpools...



    The solution was to zfs detach one device of the mirror and zfs attach it back.






    share|improve this answer



























      1














      I had this problem on OmniOS where zdb couldn't open my rpool. The problem was caused by guid mismatch in zfs metadata versus actual guids of my disks. I guess this is a result of replacing broken hardware and shuffling disks between zpools...



      The solution was to zfs detach one device of the mirror and zfs attach it back.






      share|improve this answer

























        1












        1








        1







        I had this problem on OmniOS where zdb couldn't open my rpool. The problem was caused by guid mismatch in zfs metadata versus actual guids of my disks. I guess this is a result of replacing broken hardware and shuffling disks between zpools...



        The solution was to zfs detach one device of the mirror and zfs attach it back.






        share|improve this answer













        I had this problem on OmniOS where zdb couldn't open my rpool. The problem was caused by guid mismatch in zfs metadata versus actual guids of my disks. I guess this is a result of replacing broken hardware and shuffling disks between zpools...



        The solution was to zfs detach one device of the mirror and zfs attach it back.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 21 '18 at 9:46









        Jaakko LinnosaariJaakko Linnosaari

        113




        113























            1














            For whatever reason, the cache path is different on FreeNAS. They haven't patched zdb to know where to look by default.



            Add -U /data/zfs/zpool.cache <POOLNAME> to all uses of zdb to get it to work.



            For your example, the command would be: zdb -U /data/zfs/zpool.cache -b data






            share|improve this answer

























            • This solved my problem. Searching the freeNas bugs list I found this bug that was closed in 2016.

              – Brandon McClure
              yesterday















            1














            For whatever reason, the cache path is different on FreeNAS. They haven't patched zdb to know where to look by default.



            Add -U /data/zfs/zpool.cache <POOLNAME> to all uses of zdb to get it to work.



            For your example, the command would be: zdb -U /data/zfs/zpool.cache -b data






            share|improve this answer

























            • This solved my problem. Searching the freeNas bugs list I found this bug that was closed in 2016.

              – Brandon McClure
              yesterday













            1












            1








            1







            For whatever reason, the cache path is different on FreeNAS. They haven't patched zdb to know where to look by default.



            Add -U /data/zfs/zpool.cache <POOLNAME> to all uses of zdb to get it to work.



            For your example, the command would be: zdb -U /data/zfs/zpool.cache -b data






            share|improve this answer















            For whatever reason, the cache path is different on FreeNAS. They haven't patched zdb to know where to look by default.



            Add -U /data/zfs/zpool.cache <POOLNAME> to all uses of zdb to get it to work.



            For your example, the command would be: zdb -U /data/zfs/zpool.cache -b data







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited yesterday









            Brandon McClure

            1033




            1033










            answered Dec 15 '18 at 20:16









            ohmanticsohmantics

            1111




            1111












            • This solved my problem. Searching the freeNas bugs list I found this bug that was closed in 2016.

              – Brandon McClure
              yesterday

















            • This solved my problem. Searching the freeNas bugs list I found this bug that was closed in 2016.

              – Brandon McClure
              yesterday
















            This solved my problem. Searching the freeNas bugs list I found this bug that was closed in 2016.

            – Brandon McClure
            yesterday





            This solved my problem. Searching the freeNas bugs list I found this bug that was closed in 2016.

            – Brandon McClure
            yesterday

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f899814%2fzdb-doesn-t-recognize-my-pool%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company