Score:0

Do I have to extend the partition hosting a LVM VG or could I directly extend the LVM VG to use the free disk space

cn flag
s.k

How to extend this LVM disk to use the extra space of the sda disk:

$ sudo lsblk
NAME                           MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
fd0                              2:0    1    4K  0 disk 
sda                              8:0    0  100G  0 disk        <-- this disk has been allocated more space but it's not used yet
├─sda1                           8:1    0  487M  0 part /boot
├─sda2                           8:2    0    1K  0 part 
└─sda5                           8:5    0 45.5G  0 part        <-- do I need to do something on this?
  ├─Ubun--1804--srv--vg-root   253:0    0 43.5G  0 lvm  /      <-- or could I directly resize this one?
  └─Ubun--1804--srv--vg-swap   253:1    0    2G  0 lvm  [SWAP]

Do I have to resize the /dev/sda1 partition prior to resizing the lvm vg-root or could I directly resize the lvm vg-root (and how)?

I ideally want to add 2 GB to the swap and the remaining free space to the root volume.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.