What does pvmove do?

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












-1















man pvmove says




pvmove moves the allocated physical extents (PEs) on a source PV to one or more destination
PVs. You can optionally specify a source LV in which case only extents used by that LV will be
moved to free (or specified) extents on the destination PV. If no destination PV is specified, the
normal allocation rules for the VG are used.




What does "moves the allocated physical extents (PEs) on a source PV to one or more destination
PVs" mean?



What is the difference between pvmove and pvresize? Does pvmove shrink a PV and then use the freed up space to enlarge another PV?



There is a device ( a disk or partition) underlying each PV. Does pvmove work along with another command which resizes the underlying devices of the two PVs involved?



Thanks.










share|improve this question






















  • Two nice examples of pvmove for further reading: Removing an Old Disk

    – Freddy
    Feb 25 at 17:52















-1















man pvmove says




pvmove moves the allocated physical extents (PEs) on a source PV to one or more destination
PVs. You can optionally specify a source LV in which case only extents used by that LV will be
moved to free (or specified) extents on the destination PV. If no destination PV is specified, the
normal allocation rules for the VG are used.




What does "moves the allocated physical extents (PEs) on a source PV to one or more destination
PVs" mean?



What is the difference between pvmove and pvresize? Does pvmove shrink a PV and then use the freed up space to enlarge another PV?



There is a device ( a disk or partition) underlying each PV. Does pvmove work along with another command which resizes the underlying devices of the two PVs involved?



Thanks.










share|improve this question






















  • Two nice examples of pvmove for further reading: Removing an Old Disk

    – Freddy
    Feb 25 at 17:52













-1












-1








-1








man pvmove says




pvmove moves the allocated physical extents (PEs) on a source PV to one or more destination
PVs. You can optionally specify a source LV in which case only extents used by that LV will be
moved to free (or specified) extents on the destination PV. If no destination PV is specified, the
normal allocation rules for the VG are used.




What does "moves the allocated physical extents (PEs) on a source PV to one or more destination
PVs" mean?



What is the difference between pvmove and pvresize? Does pvmove shrink a PV and then use the freed up space to enlarge another PV?



There is a device ( a disk or partition) underlying each PV. Does pvmove work along with another command which resizes the underlying devices of the two PVs involved?



Thanks.










share|improve this question














man pvmove says




pvmove moves the allocated physical extents (PEs) on a source PV to one or more destination
PVs. You can optionally specify a source LV in which case only extents used by that LV will be
moved to free (or specified) extents on the destination PV. If no destination PV is specified, the
normal allocation rules for the VG are used.




What does "moves the allocated physical extents (PEs) on a source PV to one or more destination
PVs" mean?



What is the difference between pvmove and pvresize? Does pvmove shrink a PV and then use the freed up space to enlarge another PV?



There is a device ( a disk or partition) underlying each PV. Does pvmove work along with another command which resizes the underlying devices of the two PVs involved?



Thanks.







lvm






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 25 at 17:36









TimTim

28k78269488




28k78269488












  • Two nice examples of pvmove for further reading: Removing an Old Disk

    – Freddy
    Feb 25 at 17:52

















  • Two nice examples of pvmove for further reading: Removing an Old Disk

    – Freddy
    Feb 25 at 17:52
















Two nice examples of pvmove for further reading: Removing an Old Disk

– Freddy
Feb 25 at 17:52





Two nice examples of pvmove for further reading: Removing an Old Disk

– Freddy
Feb 25 at 17:52










1 Answer
1






active

oldest

votes


















3















What does "moves the allocated physical extents (PEs) on a source PV to one or more destination PVs" mean?




It means what it says. The extents (blocks of data) in one PV are moved to another one. For example, if you have two PVs /dev/sda1 and /dev/sdb1 for a VG you can move the extents from /dev/sda1 to /dev/sdb1). Assuming you had enough space on /dev/sdb1 this would allow you to remove /dev/sda1 from the VG, possibly even removing the entire /dev/sda from the system.




What is the difference between pvmove and pvresize? Does pvmove shrink a PV and then use the freed up space to enlarge another PV




pvmove moves data from one physical device in a VG to another. pvresize changes the size used by a PV. An example from the man page suggests this might be done after changing the size of a partition with fdisk.




Does pvmove work along with another command which resizes the underlying devices of the two PVs involved?




pvresize resizes a PV. pvmove moves the extents (data blocks) from one PV to another.






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%2f502949%2fwhat-does-pvmove-do%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









    3















    What does "moves the allocated physical extents (PEs) on a source PV to one or more destination PVs" mean?




    It means what it says. The extents (blocks of data) in one PV are moved to another one. For example, if you have two PVs /dev/sda1 and /dev/sdb1 for a VG you can move the extents from /dev/sda1 to /dev/sdb1). Assuming you had enough space on /dev/sdb1 this would allow you to remove /dev/sda1 from the VG, possibly even removing the entire /dev/sda from the system.




    What is the difference between pvmove and pvresize? Does pvmove shrink a PV and then use the freed up space to enlarge another PV




    pvmove moves data from one physical device in a VG to another. pvresize changes the size used by a PV. An example from the man page suggests this might be done after changing the size of a partition with fdisk.




    Does pvmove work along with another command which resizes the underlying devices of the two PVs involved?




    pvresize resizes a PV. pvmove moves the extents (data blocks) from one PV to another.






    share|improve this answer



























      3















      What does "moves the allocated physical extents (PEs) on a source PV to one or more destination PVs" mean?




      It means what it says. The extents (blocks of data) in one PV are moved to another one. For example, if you have two PVs /dev/sda1 and /dev/sdb1 for a VG you can move the extents from /dev/sda1 to /dev/sdb1). Assuming you had enough space on /dev/sdb1 this would allow you to remove /dev/sda1 from the VG, possibly even removing the entire /dev/sda from the system.




      What is the difference between pvmove and pvresize? Does pvmove shrink a PV and then use the freed up space to enlarge another PV




      pvmove moves data from one physical device in a VG to another. pvresize changes the size used by a PV. An example from the man page suggests this might be done after changing the size of a partition with fdisk.




      Does pvmove work along with another command which resizes the underlying devices of the two PVs involved?




      pvresize resizes a PV. pvmove moves the extents (data blocks) from one PV to another.






      share|improve this answer

























        3












        3








        3








        What does "moves the allocated physical extents (PEs) on a source PV to one or more destination PVs" mean?




        It means what it says. The extents (blocks of data) in one PV are moved to another one. For example, if you have two PVs /dev/sda1 and /dev/sdb1 for a VG you can move the extents from /dev/sda1 to /dev/sdb1). Assuming you had enough space on /dev/sdb1 this would allow you to remove /dev/sda1 from the VG, possibly even removing the entire /dev/sda from the system.




        What is the difference between pvmove and pvresize? Does pvmove shrink a PV and then use the freed up space to enlarge another PV




        pvmove moves data from one physical device in a VG to another. pvresize changes the size used by a PV. An example from the man page suggests this might be done after changing the size of a partition with fdisk.




        Does pvmove work along with another command which resizes the underlying devices of the two PVs involved?




        pvresize resizes a PV. pvmove moves the extents (data blocks) from one PV to another.






        share|improve this answer














        What does "moves the allocated physical extents (PEs) on a source PV to one or more destination PVs" mean?




        It means what it says. The extents (blocks of data) in one PV are moved to another one. For example, if you have two PVs /dev/sda1 and /dev/sdb1 for a VG you can move the extents from /dev/sda1 to /dev/sdb1). Assuming you had enough space on /dev/sdb1 this would allow you to remove /dev/sda1 from the VG, possibly even removing the entire /dev/sda from the system.




        What is the difference between pvmove and pvresize? Does pvmove shrink a PV and then use the freed up space to enlarge another PV




        pvmove moves data from one physical device in a VG to another. pvresize changes the size used by a PV. An example from the man page suggests this might be done after changing the size of a partition with fdisk.




        Does pvmove work along with another command which resizes the underlying devices of the two PVs involved?




        pvresize resizes a PV. pvmove moves the extents (data blocks) from one PV to another.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 25 at 18:35









        roaimaroaima

        45.8k758124




        45.8k758124



























            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%2f502949%2fwhat-does-pvmove-do%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?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?