How much does my volume group use of my hard drive?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












-1















I want to know how much space of my hard drive is being used in the hard drive , let me explain:



My first hard drive is /dev/sda and the second one is /dev/sdb each one of them has a logical voume and they are in the same volume group, i can easily know how much of this volume group is used , but how much of each drive is used ? how does the lvm spread data across those volumes ?










share|improve this question


























    -1















    I want to know how much space of my hard drive is being used in the hard drive , let me explain:



    My first hard drive is /dev/sda and the second one is /dev/sdb each one of them has a logical voume and they are in the same volume group, i can easily know how much of this volume group is used , but how much of each drive is used ? how does the lvm spread data across those volumes ?










    share|improve this question
























      -1












      -1








      -1








      I want to know how much space of my hard drive is being used in the hard drive , let me explain:



      My first hard drive is /dev/sda and the second one is /dev/sdb each one of them has a logical voume and they are in the same volume group, i can easily know how much of this volume group is used , but how much of each drive is used ? how does the lvm spread data across those volumes ?










      share|improve this question














      I want to know how much space of my hard drive is being used in the hard drive , let me explain:



      My first hard drive is /dev/sda and the second one is /dev/sdb each one of them has a logical voume and they are in the same volume group, i can easily know how much of this volume group is used , but how much of each drive is used ? how does the lvm spread data across those volumes ?







      linux lvm hard-disk






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 12 at 12:57









      KingofkechKingofkech

      4831519




      4831519




















          1 Answer
          1






          active

          oldest

          votes


















          1














          You can use pvs to show all the segments in your physical volumes and the logical volumes they contain, which will allow you to get a good idea of how your devices are used:



           sudo pvs --segments -o +lv_name


          This will show something like



           PV VG Fmt Attr PSize PFree Start SSize LV
          /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 0 16384 root
          /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 16384 4096
          /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 20480 8192 usrlocal
          /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 28672 1853


          which shows that my /dev/sda1 PV, which is part of the vg-fast VG, is split into four segments, two of which are unused, and two of which are used respectively for the LVs root and usrlocal.






          share|improve this answer






















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f500168%2fhow-much-does-my-volume-group-use-of-my-hard-drive%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









            1














            You can use pvs to show all the segments in your physical volumes and the logical volumes they contain, which will allow you to get a good idea of how your devices are used:



             sudo pvs --segments -o +lv_name


            This will show something like



             PV VG Fmt Attr PSize PFree Start SSize LV
            /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 0 16384 root
            /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 16384 4096
            /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 20480 8192 usrlocal
            /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 28672 1853


            which shows that my /dev/sda1 PV, which is part of the vg-fast VG, is split into four segments, two of which are unused, and two of which are used respectively for the LVs root and usrlocal.






            share|improve this answer



























              1














              You can use pvs to show all the segments in your physical volumes and the logical volumes they contain, which will allow you to get a good idea of how your devices are used:



               sudo pvs --segments -o +lv_name


              This will show something like



               PV VG Fmt Attr PSize PFree Start SSize LV
              /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 0 16384 root
              /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 16384 4096
              /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 20480 8192 usrlocal
              /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 28672 1853


              which shows that my /dev/sda1 PV, which is part of the vg-fast VG, is split into four segments, two of which are unused, and two of which are used respectively for the LVs root and usrlocal.






              share|improve this answer

























                1












                1








                1







                You can use pvs to show all the segments in your physical volumes and the logical volumes they contain, which will allow you to get a good idea of how your devices are used:



                 sudo pvs --segments -o +lv_name


                This will show something like



                 PV VG Fmt Attr PSize PFree Start SSize LV
                /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 0 16384 root
                /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 16384 4096
                /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 20480 8192 usrlocal
                /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 28672 1853


                which shows that my /dev/sda1 PV, which is part of the vg-fast VG, is split into four segments, two of which are unused, and two of which are used respectively for the LVs root and usrlocal.






                share|improve this answer













                You can use pvs to show all the segments in your physical volumes and the logical volumes they contain, which will allow you to get a good idea of how your devices are used:



                 sudo pvs --segments -o +lv_name


                This will show something like



                 PV VG Fmt Attr PSize PFree Start SSize LV
                /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 0 16384 root
                /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 16384 4096
                /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 20480 8192 usrlocal
                /dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 28672 1853


                which shows that my /dev/sda1 PV, which is part of the vg-fast VG, is split into four segments, two of which are unused, and two of which are used respectively for the LVs root and usrlocal.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 12 at 13:13









                Stephen KittStephen Kitt

                174k24399476




                174k24399476



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f500168%2fhow-much-does-my-volume-group-use-of-my-hard-drive%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

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay