LVM Entire Disk option does not use entire disk
Bug #1785321 reported by
Joshua Powers
This bug affects 8 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Summary:
When using the "Use An Entire Disk And Set Up LVM" option during an install the partitioner will create a 4GB partition for / and leave the rest of the disk unused. Ideally, since we are choosing to use "An Entire Disk" we should be using *the entire disk*.
Expected Behavior:
/ uses the entire disk
Actual Behavior:
4GB volume for /
Steps to Reproduce:
1. Download the 18.04.1 server ISO (md5sum: 9b15b331455c0f7
2. Accept all default, until File system setup: choose "Use An Entire Disk And Set Up LVM"
3. On the File system summary page observe that / is only given 4GB and in available devices, the rest of the disk is shown as free space.
Changed in subiquity: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in subiquity: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
LVM is using the entire disk - it has allocated the 19GiB partition 3 to the LVM Volume Group and 1GiB to the separate /boot/ partition 2.
The reason only 4GiB is allocated to the root file-system is that the remaining space is there to be allocated for other purposes by the system administrator.
E.g. The administrator may want to allocated separate block devices to host virtual machine or container images, and so on.
To view the free space in the parent Volume Group (VG) look at the Free PE: (Physical Extents):
$ sudo vgdisplay
To grow an existing Logical Volume (LV) and the (ext*) file-system within it to use 25% of the Free PE:
$ sudo lvextend -l 25%FREE VG_NAME/LV_NAME VG_NAME- LV_NAME
$ sudo resize2fs /dev/mapper/
See "man lvextend" for more options.
To create additional LVs do e.g:
$ sudo lvcreate -L 6G -n LV_NEW_NAME VG_NAME VG_NAME- LV_NEW_ NAME VG_NAME- LV_NEW_ NAME /mnt/more_storage
$ sudo mkfs.ext /dev/mapper/
$ sudo mkdir /mnt/more_storage
$ sudo mount /dev/mapper/
See "man lvcreate" for more options.