Is it safe to use lvresize -r to reduce LVM

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











up vote
0
down vote

favorite












I know I can increase the size of file system and LV in one go using lvresize -r but is it safe to use the sam approach to reduce a LV file system ?



here is the man page of -r



-r, --resizefs
Resize underlying file system together with the logical volume using fsadm(8).


I would thought it should be safe if file system gets reduce first.



Thanks










share|improve this question





















  • i'm having the same problem. Did you find any solution ? Bernd
    – user82305
    Aug 28 '14 at 15:09










  • @Bernd Hi there, I did some testing myself, resize2fs is called before the LV is reduced but there is a minimum requirement, if the new size is less than minimum, the resize will just fail.
    – Ask and Learn
    Sep 1 '14 at 5:49














up vote
0
down vote

favorite












I know I can increase the size of file system and LV in one go using lvresize -r but is it safe to use the sam approach to reduce a LV file system ?



here is the man page of -r



-r, --resizefs
Resize underlying file system together with the logical volume using fsadm(8).


I would thought it should be safe if file system gets reduce first.



Thanks










share|improve this question





















  • i'm having the same problem. Did you find any solution ? Bernd
    – user82305
    Aug 28 '14 at 15:09










  • @Bernd Hi there, I did some testing myself, resize2fs is called before the LV is reduced but there is a minimum requirement, if the new size is less than minimum, the resize will just fail.
    – Ask and Learn
    Sep 1 '14 at 5:49












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I know I can increase the size of file system and LV in one go using lvresize -r but is it safe to use the sam approach to reduce a LV file system ?



here is the man page of -r



-r, --resizefs
Resize underlying file system together with the logical volume using fsadm(8).


I would thought it should be safe if file system gets reduce first.



Thanks










share|improve this question













I know I can increase the size of file system and LV in one go using lvresize -r but is it safe to use the sam approach to reduce a LV file system ?



here is the man page of -r



-r, --resizefs
Resize underlying file system together with the logical volume using fsadm(8).


I would thought it should be safe if file system gets reduce first.



Thanks







filesystems lvm






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 24 '14 at 4:46









Ask and Learn

84231225




84231225











  • i'm having the same problem. Did you find any solution ? Bernd
    – user82305
    Aug 28 '14 at 15:09










  • @Bernd Hi there, I did some testing myself, resize2fs is called before the LV is reduced but there is a minimum requirement, if the new size is less than minimum, the resize will just fail.
    – Ask and Learn
    Sep 1 '14 at 5:49
















  • i'm having the same problem. Did you find any solution ? Bernd
    – user82305
    Aug 28 '14 at 15:09










  • @Bernd Hi there, I did some testing myself, resize2fs is called before the LV is reduced but there is a minimum requirement, if the new size is less than minimum, the resize will just fail.
    – Ask and Learn
    Sep 1 '14 at 5:49















i'm having the same problem. Did you find any solution ? Bernd
– user82305
Aug 28 '14 at 15:09




i'm having the same problem. Did you find any solution ? Bernd
– user82305
Aug 28 '14 at 15:09












@Bernd Hi there, I did some testing myself, resize2fs is called before the LV is reduced but there is a minimum requirement, if the new size is less than minimum, the resize will just fail.
– Ask and Learn
Sep 1 '14 at 5:49




@Bernd Hi there, I did some testing myself, resize2fs is called before the LV is reduced but there is a minimum requirement, if the new size is less than minimum, the resize will just fail.
– Ask and Learn
Sep 1 '14 at 5:49










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Do you find the solution?



from XFS FAQ, RedHat and CentOS QA.



You can't shrink xfs.



The only way to do this is to backup your data, create another smaller LV...





share








New contributor




Tony Chou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f146259%2fis-it-safe-to-use-lvresize-r-to-reduce-lvm%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Do you find the solution?



    from XFS FAQ, RedHat and CentOS QA.



    You can't shrink xfs.



    The only way to do this is to backup your data, create another smaller LV...





    share








    New contributor




    Tony Chou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote













      Do you find the solution?



      from XFS FAQ, RedHat and CentOS QA.



      You can't shrink xfs.



      The only way to do this is to backup your data, create another smaller LV...





      share








      New contributor




      Tony Chou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



















        up vote
        0
        down vote










        up vote
        0
        down vote









        Do you find the solution?



        from XFS FAQ, RedHat and CentOS QA.



        You can't shrink xfs.



        The only way to do this is to backup your data, create another smaller LV...





        share








        New contributor




        Tony Chou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        Do you find the solution?



        from XFS FAQ, RedHat and CentOS QA.



        You can't shrink xfs.



        The only way to do this is to backup your data, create another smaller LV...






        share








        New contributor




        Tony Chou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.








        share


        share






        New contributor




        Tony Chou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 4 mins ago









        Tony Chou

        11




        11




        New contributor




        Tony Chou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Tony Chou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Tony Chou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f146259%2fis-it-safe-to-use-lvresize-r-to-reduce-lvm%23new-answer', 'question_page');

            );

            Post as a guest













































































            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?