[TriLUG] Modify LVM

Mauricio Tavares via TriLUG trilug at trilug.org
Sun Jan 24 21:46:28 EST 2016


On Sun, Jan 24, 2016 at 9:18 PM, Matt Pusateri
<mpusateri at wickedtrails.com> wrote:
> Also if you boot to a live cd/rescue cd then you wouldn't be working on a live system.
>
      Well, it really boils down to whether he has free space in the
volume group. If he does he can expand a logical volume live.
Shrinking is doable but require more steps.

      Crap. I just realized the free space he wants is already in the
ubuntu-vg volume group. Shame on me! Still, if he run those commands
and gives the results we can explain the shape of the beast including
which partition is being used for the physical volume.

So, he should be good to go.

MvER: If you let Ubuntu partition your HD and do the LVM thingie, it
will create an extended partition, sda5, in sda2. Annoying like hell
in my book but that is me. I also have a thing against adding the
volume group name to the logical volume since even df can tell you
that.

Once you give the output for the two commands we can talk about
resizing the logical volumes. Unfortunately I only know how to do that
from command line, so if you need to do it in the GUI someone else on
the list will have to help you out.

> Matt P
>
> Sent from my iPhone
>
>> On Jan 24, 2016, at 9:02 PM, Mauricio Tavares via TriLUG <trilug at trilug.org> wrote:
>>
>> On Sun, Jan 24, 2016 at 8:50 PM, MvER - TrLUG via TriLUG
>> <trilug at trilug.org> wrote:
>>> Below is some data on my 750 GB disk, holding ubuntu 14.04, my /home
>>> folder, etc.
>>> The LVM GUI  tool shows unmounted /dev/sda2 with 698.40 GB, which I tend
>>> not to believe, in my ignorance.
>>>
>>> Anyhow, what I want to do is to expand /dev/sda5 to use 239.5 GB
>>> currently listed as free space in ubuntu-vg.
>>>
>>> I've been reading:
>>> http://www.howtogeek.com/howto/40702/how-to-manage-and-use-lvm-logical-volume-management-in-ubuntu/
>>> and others, but am really fearful of working on the live disk with lots
>>> of needed files in case I do it wrong with the various create and extend
>>> commands.
>>>
>>> I can supply output from sudo fdisk, etc upon request.
>>>
>>> Anyone up for providing guidance?
>>>
>>>
>>> mver at mver-RV415-RV515:~$ sudo df
>>>
>>> Filesystem                       1K-blocks     Used Available Use%
>>> Mounted on
>>> udev                               4012060       12   4012048   1% /dev
>>> tmpfs                               804444     1572    802872   1% /run
>>> /dev/mapper/ubuntu--vg-root       26704124 11114816  14209780  44% /
>>> none                                     4        0         4   0%
>>> /sys/fs/cgroup
>>> none                                  5120        0      5120   0% /run/lock
>>> none                               4022208      540   4021668   1% /run/shm
>>> none                                102400       64    102336   1% /run/user
>>> /dev/sda1                           240972   186388     42143  82% /boot
>>> /dev/mapper/ubuntu--vg-home       25671996 21556176   4073224  85% /home
>>> /dev/mapper/ubuntu--vg-docs      103081248 45715688  57244320  45%
>>> /home/mver/docs
>>> /dev/mapper/ubuntu--vg-tbird      25671996   601800  25027600   3%
>>> /home/mver/.thunderbird
>>> /dev/mapper/ubuntu--vg-winsamdta  25671996 18480568   7148832  73%
>>> /home/mver/winsamdta
>>
>>      What is the output for
>>
>> sudo pvs
>> sudo lvs
>>
>>> --
>>> This message was sent to: raubvogel at gmail.com <raubvogel at gmail.com>
>>> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
>>> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
>>> Unsubscribe or edit options on the web  : http://www.trilug.org/mailman/options/trilug/raubvogel%40gmail.com
>>> Welcome to TriLUG: http://trilug.org/welcome
>> --
>> This message was sent to: M. Pusateri <mpusateri at wickedtrails.com>
>> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
>> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
>> Unsubscribe or edit options on the web    : http://www.trilug.org/mailman/options/trilug/mpusateri%40wickedtrails.com
>> Welcome to TriLUG: http://trilug.org/welcome


More information about the TriLUG mailing list