How to resize / and add another logical volume without data lossHow can I create one logical volume over two disks using LVM?Unable to resize LVM partition just after Ubuntu install with 'use lvm' optionShrink extended partition containing lvmIncreasing the filesystem and partition size - vgdisplay “no volume groups found”How to shrink LVM2-designated partition without recreating it?Attept to reduce partition size using Logical Volume Managment ran into problemsHow to see the volume group name of an LVM logical volume on an external Hard Drive?How get ubuntu to boot after reducing size of encrypted logical volume?How to recover missing logical volumes from a volume groupUbuntu 18.04 Partition my harddrive with GParted after installing the OS

What exactly are the `size issues' preventing formation of presheaves being a left adjoint to some forgetful functor?

Are pressure-treated posts that have been submerged for a few days ruined?

Is the set of non invertible matrices simply connected? What are their homotopy and homology groups?

Are the Night's Watch still required?

Has the Hulk always been able to talk?

How to increase the size of the cursor in Lubuntu 19.04?

What was the first sci-fi story to feature the plot "the humans were the monsters all along"?

Appropriate certificate to ask for a fibre installation (ANSI/TIA-568.3-D?)

As a Bard multi-classing into Warlock, what spells do I get?

Why is "breaking the mould" positively connoted?

What is the solution to this metapuzzle from a university puzzling column?

I need a disease

How can internet speed be 10 times slower without a router than when using a router?

Where are the "shires" in the UK?

Where is the documentation for this ex command?

Find the cheapest shipping option based on item weight

Are there any of the Children of the Forest left, or are they extinct?

IP addresses from public IP block in my LAN

Why do people keep telling me that I am a bad photographer?

How can I roleplay a follower-type character when I as a player have a leader-type personality?

How to write a 12-bar blues melody

Will 700 more planes a day fly because of the Heathrow expansion?

Out of scope work duties and resignation

Should homeowners insurance cover the cost of the home?



How to resize / and add another logical volume without data loss


How can I create one logical volume over two disks using LVM?Unable to resize LVM partition just after Ubuntu install with 'use lvm' optionShrink extended partition containing lvmIncreasing the filesystem and partition size - vgdisplay “no volume groups found”How to shrink LVM2-designated partition without recreating it?Attept to reduce partition size using Logical Volume Managment ran into problemsHow to see the volume group name of an LVM logical volume on an external Hard Drive?How get ubuntu to boot after reducing size of encrypted logical volume?How to recover missing logical volumes from a volume groupUbuntu 18.04 Partition my harddrive with GParted after installing the OS






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Ubuntu 16.04 installed with these settings "Erase Disk and install Ubuntu" with "Use LVM with the new Ubuntu installation". Now have 3 partitions:




  • /dev/sda1 mounted as /boot/efi


  • /dev/sda2 Linux file system mounted as /boot and


  • /dev/sda3 Linux LVM as 255 GB LVM2 PV with inside 2 Logical Volume /dev/ubuntu-vg/root (247 GB) and /dev/ubuntu-vg/swap_1 (8,5 GB).

Have searched for a clear and safe tutorial to be able to safely shrink the root partition to something like 30 GB (more or less) and create a new Logical Volume with the rest for a home/data partition.



Can't use system-config-lvm because of an error. The GUI shows up but doesn't display anything:




Unable to show VG because it contains features that are not supported in current version of system-config-lvm.




So I need to use the command line but not sure if it takes care of the data on the root partition (got a backup of important data).



Can anybody give me directions on what to do?










share|improve this question



















  • 1





    Related: unix.stackexchange.com/questions/67822/…

    – Melebius
    Nov 27 '17 at 12:28

















1















Ubuntu 16.04 installed with these settings "Erase Disk and install Ubuntu" with "Use LVM with the new Ubuntu installation". Now have 3 partitions:




  • /dev/sda1 mounted as /boot/efi


  • /dev/sda2 Linux file system mounted as /boot and


  • /dev/sda3 Linux LVM as 255 GB LVM2 PV with inside 2 Logical Volume /dev/ubuntu-vg/root (247 GB) and /dev/ubuntu-vg/swap_1 (8,5 GB).

Have searched for a clear and safe tutorial to be able to safely shrink the root partition to something like 30 GB (more or less) and create a new Logical Volume with the rest for a home/data partition.



Can't use system-config-lvm because of an error. The GUI shows up but doesn't display anything:




Unable to show VG because it contains features that are not supported in current version of system-config-lvm.




So I need to use the command line but not sure if it takes care of the data on the root partition (got a backup of important data).



Can anybody give me directions on what to do?










share|improve this question



















  • 1





    Related: unix.stackexchange.com/questions/67822/…

    – Melebius
    Nov 27 '17 at 12:28













1












1








1








Ubuntu 16.04 installed with these settings "Erase Disk and install Ubuntu" with "Use LVM with the new Ubuntu installation". Now have 3 partitions:




  • /dev/sda1 mounted as /boot/efi


  • /dev/sda2 Linux file system mounted as /boot and


  • /dev/sda3 Linux LVM as 255 GB LVM2 PV with inside 2 Logical Volume /dev/ubuntu-vg/root (247 GB) and /dev/ubuntu-vg/swap_1 (8,5 GB).

Have searched for a clear and safe tutorial to be able to safely shrink the root partition to something like 30 GB (more or less) and create a new Logical Volume with the rest for a home/data partition.



Can't use system-config-lvm because of an error. The GUI shows up but doesn't display anything:




Unable to show VG because it contains features that are not supported in current version of system-config-lvm.




So I need to use the command line but not sure if it takes care of the data on the root partition (got a backup of important data).



Can anybody give me directions on what to do?










share|improve this question
















Ubuntu 16.04 installed with these settings "Erase Disk and install Ubuntu" with "Use LVM with the new Ubuntu installation". Now have 3 partitions:




  • /dev/sda1 mounted as /boot/efi


  • /dev/sda2 Linux file system mounted as /boot and


  • /dev/sda3 Linux LVM as 255 GB LVM2 PV with inside 2 Logical Volume /dev/ubuntu-vg/root (247 GB) and /dev/ubuntu-vg/swap_1 (8,5 GB).

Have searched for a clear and safe tutorial to be able to safely shrink the root partition to something like 30 GB (more or less) and create a new Logical Volume with the rest for a home/data partition.



Can't use system-config-lvm because of an error. The GUI shows up but doesn't display anything:




Unable to show VG because it contains features that are not supported in current version of system-config-lvm.




So I need to use the command line but not sure if it takes care of the data on the root partition (got a backup of important data).



Can anybody give me directions on what to do?







partitioning 16.04 filesystem lvm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 '17 at 10:38









Melebius

5,12652142




5,12652142










asked Jul 3 '16 at 9:57









alExalEx

2115




2115







  • 1





    Related: unix.stackexchange.com/questions/67822/…

    – Melebius
    Nov 27 '17 at 12:28












  • 1





    Related: unix.stackexchange.com/questions/67822/…

    – Melebius
    Nov 27 '17 at 12:28







1




1





Related: unix.stackexchange.com/questions/67822/…

– Melebius
Nov 27 '17 at 12:28





Related: unix.stackexchange.com/questions/67822/…

– Melebius
Nov 27 '17 at 12:28










1 Answer
1






active

oldest

votes


















0














You need to try LVM terminal mode commands. For that you need to make sure that you have lvm2 package installed.



You can install it by typing:



sudo apt-get install lvm2



After this you can go through the following URLs and play with LVM.



https://www.howtoforge.com/linux_lvm
https://wiki.ubuntu.com/Lvm



P.S.: Always use display commands first to view the present volume status. Then you can go for create/resize etc commands as per your need. Think twice before you press enter for resize/remove. I always prefer to do some test setups using a different machine with no important data, learn the thing properly and then apply on a machine with valuable data.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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%2faskubuntu.com%2fquestions%2f794246%2fhow-to-resize-and-add-another-logical-volume-without-data-loss%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









    0














    You need to try LVM terminal mode commands. For that you need to make sure that you have lvm2 package installed.



    You can install it by typing:



    sudo apt-get install lvm2



    After this you can go through the following URLs and play with LVM.



    https://www.howtoforge.com/linux_lvm
    https://wiki.ubuntu.com/Lvm



    P.S.: Always use display commands first to view the present volume status. Then you can go for create/resize etc commands as per your need. Think twice before you press enter for resize/remove. I always prefer to do some test setups using a different machine with no important data, learn the thing properly and then apply on a machine with valuable data.






    share|improve this answer



























      0














      You need to try LVM terminal mode commands. For that you need to make sure that you have lvm2 package installed.



      You can install it by typing:



      sudo apt-get install lvm2



      After this you can go through the following URLs and play with LVM.



      https://www.howtoforge.com/linux_lvm
      https://wiki.ubuntu.com/Lvm



      P.S.: Always use display commands first to view the present volume status. Then you can go for create/resize etc commands as per your need. Think twice before you press enter for resize/remove. I always prefer to do some test setups using a different machine with no important data, learn the thing properly and then apply on a machine with valuable data.






      share|improve this answer

























        0












        0








        0







        You need to try LVM terminal mode commands. For that you need to make sure that you have lvm2 package installed.



        You can install it by typing:



        sudo apt-get install lvm2



        After this you can go through the following URLs and play with LVM.



        https://www.howtoforge.com/linux_lvm
        https://wiki.ubuntu.com/Lvm



        P.S.: Always use display commands first to view the present volume status. Then you can go for create/resize etc commands as per your need. Think twice before you press enter for resize/remove. I always prefer to do some test setups using a different machine with no important data, learn the thing properly and then apply on a machine with valuable data.






        share|improve this answer













        You need to try LVM terminal mode commands. For that you need to make sure that you have lvm2 package installed.



        You can install it by typing:



        sudo apt-get install lvm2



        After this you can go through the following URLs and play with LVM.



        https://www.howtoforge.com/linux_lvm
        https://wiki.ubuntu.com/Lvm



        P.S.: Always use display commands first to view the present volume status. Then you can go for create/resize etc commands as per your need. Think twice before you press enter for resize/remove. I always prefer to do some test setups using a different machine with no important data, learn the thing properly and then apply on a machine with valuable data.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 23 '16 at 4:55









        Pradip K MajumderPradip K Majumder

        18114




        18114



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f794246%2fhow-to-resize-and-add-another-logical-volume-without-data-loss%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

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?