Resize zfs pool





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







5















We are using Digital Oceans block storage feature on our FreeBSD system.



When we add a new block storage we get:



da0 at vtscsi0 bus 0 scbus0 target 0 lun 1
da0: <DO Volume 1.5.> Fixed Direct Access SPC-3 SCSI device
da0: 300.000MB/s transfers
da0: Command Queueing enabled
da0: 5120MB (10485760 512 byte sectors)
da0 at vtscsi0 bus 0 scbus0 target 0 lun 1



and it works fine. We created a zpool and a zfs dataset.
On the zpool we set:
zpool set autoexpand=on tank



And then we resize the block storage disc on Digital Ocean.



Here is our problem



geom disk list does not pick up the change UNTIL we export the zpool. And we cannot resize the zpool until system has recognized the new size for the disc.



If we export the zpool it will correctly show the new size with geom disk list. But not until we have done so.



Now we can run zpool online -e tank da0 and the pool and its datasets will have the new size.



We have tried running camcontrol rescan da0but to no avail.



Is there any way to force a rescan to recognize the new disk size? Because now we have to export/unmount all the datasets, and that is not possible on an live envorionment.










share|improve this question





























    5















    We are using Digital Oceans block storage feature on our FreeBSD system.



    When we add a new block storage we get:



    da0 at vtscsi0 bus 0 scbus0 target 0 lun 1
    da0: <DO Volume 1.5.> Fixed Direct Access SPC-3 SCSI device
    da0: 300.000MB/s transfers
    da0: Command Queueing enabled
    da0: 5120MB (10485760 512 byte sectors)
    da0 at vtscsi0 bus 0 scbus0 target 0 lun 1



    and it works fine. We created a zpool and a zfs dataset.
    On the zpool we set:
    zpool set autoexpand=on tank



    And then we resize the block storage disc on Digital Ocean.



    Here is our problem



    geom disk list does not pick up the change UNTIL we export the zpool. And we cannot resize the zpool until system has recognized the new size for the disc.



    If we export the zpool it will correctly show the new size with geom disk list. But not until we have done so.



    Now we can run zpool online -e tank da0 and the pool and its datasets will have the new size.



    We have tried running camcontrol rescan da0but to no avail.



    Is there any way to force a rescan to recognize the new disk size? Because now we have to export/unmount all the datasets, and that is not possible on an live envorionment.










    share|improve this question

























      5












      5








      5








      We are using Digital Oceans block storage feature on our FreeBSD system.



      When we add a new block storage we get:



      da0 at vtscsi0 bus 0 scbus0 target 0 lun 1
      da0: <DO Volume 1.5.> Fixed Direct Access SPC-3 SCSI device
      da0: 300.000MB/s transfers
      da0: Command Queueing enabled
      da0: 5120MB (10485760 512 byte sectors)
      da0 at vtscsi0 bus 0 scbus0 target 0 lun 1



      and it works fine. We created a zpool and a zfs dataset.
      On the zpool we set:
      zpool set autoexpand=on tank



      And then we resize the block storage disc on Digital Ocean.



      Here is our problem



      geom disk list does not pick up the change UNTIL we export the zpool. And we cannot resize the zpool until system has recognized the new size for the disc.



      If we export the zpool it will correctly show the new size with geom disk list. But not until we have done so.



      Now we can run zpool online -e tank da0 and the pool and its datasets will have the new size.



      We have tried running camcontrol rescan da0but to no avail.



      Is there any way to force a rescan to recognize the new disk size? Because now we have to export/unmount all the datasets, and that is not possible on an live envorionment.










      share|improve this question














      We are using Digital Oceans block storage feature on our FreeBSD system.



      When we add a new block storage we get:



      da0 at vtscsi0 bus 0 scbus0 target 0 lun 1
      da0: <DO Volume 1.5.> Fixed Direct Access SPC-3 SCSI device
      da0: 300.000MB/s transfers
      da0: Command Queueing enabled
      da0: 5120MB (10485760 512 byte sectors)
      da0 at vtscsi0 bus 0 scbus0 target 0 lun 1



      and it works fine. We created a zpool and a zfs dataset.
      On the zpool we set:
      zpool set autoexpand=on tank



      And then we resize the block storage disc on Digital Ocean.



      Here is our problem



      geom disk list does not pick up the change UNTIL we export the zpool. And we cannot resize the zpool until system has recognized the new size for the disc.



      If we export the zpool it will correctly show the new size with geom disk list. But not until we have done so.



      Now we can run zpool online -e tank da0 and the pool and its datasets will have the new size.



      We have tried running camcontrol rescan da0but to no avail.



      Is there any way to force a rescan to recognize the new disk size? Because now we have to export/unmount all the datasets, and that is not possible on an live envorionment.







      freebsd zfs digital-ocean bsd






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 5 at 12:00









      larsemillarsemil

      21928




      21928






















          1 Answer
          1






          active

          oldest

          votes


















          5














          camcontrol reprobe da0


          will reprobe. after that I only needed: zpool online -e tank da0






          share|improve this answer
























            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%2f961684%2fresize-zfs-pool%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            5














            camcontrol reprobe da0


            will reprobe. after that I only needed: zpool online -e tank da0






            share|improve this answer




























              5














              camcontrol reprobe da0


              will reprobe. after that I only needed: zpool online -e tank da0






              share|improve this answer


























                5












                5








                5







                camcontrol reprobe da0


                will reprobe. after that I only needed: zpool online -e tank da0






                share|improve this answer













                camcontrol reprobe da0


                will reprobe. after that I only needed: zpool online -e tank da0







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 5 at 12:30









                larsemillarsemil

                21928




                21928






























                    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%2f961684%2fresize-zfs-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

                    If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                    Alcedinidae

                    Can an atomic nucleus contain both particles and antiparticles? [duplicate]