Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uptemplate's partition layout make it hard to extend root volume #3173
Comments
marmarek
added
bug
C: core
C: templates
P: major
labels
Oct 13, 2017
marmarek
added this to the Release 4.0 milestone
Oct 13, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
woju
Oct 14, 2017
Member
Online resizing of partitions is possible, but not with util-linux tools (blockdev --rereadpt). It is possible with fdisk + partprobe, the latter being part of parted.
Andrew Clausen, author of partprobe, commented on qubes-devel:
The BLKRRPART ioctl is no good because it can't accommodate busy block
devices at all, i.e. resizing partition 1 when partition 2 on the same disk
is mounted.Instead, Parted primarily uses the BLKPG family of ioctl to inform the
kernel of partition table changes. (It also has "new" support for the
device mapper -- but that's probably not relevant here.) You can read
about the BLKPG ioctl in /usr/include/linux/blkpg.h. Since 2012, the linux
kernel supports a new BLKPG feature to do online partition resizing, i.e.
telling the kernel to modify a mounted partition. I think this is what is
being used here.The relevant Parted code is in the function linux_disk_commit(), which
calls _disk_sync_part_table() and _blkpg_resize_partition() inside
http://git.savannah.gnu.org/cgit/parted.git/tree/libparted/arch/linux.cIf the BLKPG ioctl fails, then partprobe/parted will throw an exception and
tell you about it.
|
Online resizing of partitions is possible, but not with util-linux tools ( Andrew Clausen, author of
|
added a commit
to marmarek/qubes-core-admin
that referenced
this issue
Oct 16, 2017
added a commit
to marmarek/qubes-core-admin
that referenced
this issue
Oct 16, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 16, 2017
Member
The outcome of the discussion: delay 4.0rc2 a week and change partition layout to:
- xvda1: EFI system partition (empty, prepared for PVHv2 boot with VM-provided kernel)
- xvda2: BIOS boot (grub2 installed, used when kernel='')
- xvda3: root filesystem (almost all space)
|
The outcome of the discussion: delay 4.0rc2 a week and change partition layout to:
|
marmarek
closed this
in
marmarek/qubes-linux-utils@09e6d2a
Oct 17, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 17, 2017
Automated announcement from builder-github
The package linux-utils has been pushed to the r4.0 testing repository for the CentOS centos7 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Oct 17, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-centos7-cur-test
label
Oct 17, 2017
qubesos-bot
referenced this issue
in QubesOS/updates-status
Oct 17, 2017
Closed
linux-utils v4.0.9 (r4.0) #273
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 17, 2017
Automated announcement from builder-github
The package qubes-utils_4.0.9+deb8u1 has been pushed to the r4.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 17, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-jessie-cur-test
label
Oct 17, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 17, 2017
Automated announcement from builder-github
The package qubes-utils_4.0.9+deb9u1 has been pushed to the r4.0 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 17, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-stretch-cur-test
label
Oct 17, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 17, 2017
Automated announcement from builder-github
The package python2-qubesimgconverter-4.0.9-1.fc25 has been pushed to the r4.0 testing repository for dom0.
To test this update, please install it with the following command:
sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing
qubesos-bot
commented
Oct 17, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-dom0-cur-test
label
Oct 17, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 17, 2017
Automated announcement from builder-github
The package python2-qubesimgconverter-4.0.9-1.fc24 has been pushed to the r4.0 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Oct 17, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc24-cur-test
label
Oct 17, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 17, 2017
Automated announcement from builder-github
The package python2-qubesimgconverter-4.0.9-1.fc25 has been pushed to the r4.0 testing repository for the Fedora fc25 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Oct 17, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc25-cur-test
label
Oct 17, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 17, 2017
Automated announcement from builder-github
The package python2-qubesimgconverter-4.0.9-1.fc26 has been pushed to the r4.0 testing repository for the Fedora fc26 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Oct 17, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc26-cur-test
label
Oct 17, 2017
added a commit
to marmarek/qubes-linux-template-builder
that referenced
this issue
Oct 17, 2017
added a commit
to marmarek/qubes-core-agent-linux
that referenced
this issue
Oct 18, 2017
added a commit
to marmarek/qubes-core-agent-linux
that referenced
this issue
Oct 18, 2017
added a commit
to marmarek/qubes-core-agent-linux
that referenced
this issue
Oct 18, 2017
added a commit
to marmarek/qubes-core-agent-linux
that referenced
this issue
Oct 18, 2017
added a commit
to marmarek/qubes-core-agent-linux
that referenced
this issue
Oct 18, 2017
added a commit
to marmarek/qubes-core-agent-linux
that referenced
this issue
Oct 18, 2017
marmarek
referenced this issue
in QubesOS/qubes-core-agent-linux
Oct 18, 2017
Merged
Handle resize of root filesystem with new partition layout #61
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 19, 2017
Automated announcement from builder-github
The package core-agent-linux has been pushed to the r4.0 testing repository for the CentOS centos7 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Oct 19, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-centos7-cur-test
label
Oct 19, 2017
qubesos-bot
referenced this issue
in QubesOS/updates-status
Oct 19, 2017
Closed
core-agent-linux v4.0.12 (r4.0) #277
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 19, 2017
Automated announcement from builder-github
The package qubes-core-agent_4.0.12-1+deb8u1 has been pushed to the r4.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 19, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-jessie-cur-test
label
Oct 19, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 19, 2017
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-4.0.12-1.fc24 has been pushed to the r4.0 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r4.0-current-testing
qubesos-bot
commented
Oct 19, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc24-cur-test
label
Oct 19, 2017
added a commit
to marmarek/qubes-core-admin
that referenced
this issue
Oct 20, 2017
added a commit
to marmarek/qubes-core-admin
that referenced
this issue
Oct 20, 2017
added a commit
to marmarek/qubes-core-admin
that referenced
this issue
Oct 20, 2017
added a commit
to marmarek/qubes-core-admin
that referenced
this issue
Oct 21, 2017
added a commit
to marmarek/qubes-core-admin
that referenced
this issue
Oct 21, 2017
added a commit
to marmarek/qubes-core-admin
that referenced
this issue
Oct 21, 2017
qubesos-bot
referenced this issue
in QubesOS/updates-status
Oct 21, 2017
Closed
core-admin v4.0.11 (r4.0) #284
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package linux-utils has been pushed to the r4.0 stable repository for the Fedora centos7 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-centos7-stable
and removed
r4.0-centos7-cur-test
labels
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package python2-qubesimgconverter-4.0.9-1.fc24 has been pushed to the r4.0 stable repository for the Fedora fc24 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-fc24-stable
and removed
r4.0-fc24-cur-test
labels
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package python2-qubesimgconverter-4.0.9-1.fc25 has been pushed to the r4.0 stable repository for the Fedora fc25 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-fc25-stable
and removed
r4.0-fc25-cur-test
labels
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package python2-qubesimgconverter-4.0.9-1.fc26 has been pushed to the r4.0 stable repository for the Fedora fc26 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-fc26-stable
and removed
r4.0-fc26-cur-test
labels
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package core-agent-linux has been pushed to the r4.0 stable repository for the Fedora centos7 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-centos7-stable
label
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-4.0.12-1.fc24 has been pushed to the r4.0 stable repository for the Fedora fc24 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc24-stable
label
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-4.0.12-1.fc25 has been pushed to the r4.0 stable repository for the Fedora fc25 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-fc25-stable
label
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-4.0.12-1.fc26 has been pushed to the r4.0 stable repository for the Fedora fc26 template.
To install this update, please use the standard update command:
sudo yum update
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package qubes-core-agent_4.0.12-1+deb8u1 has been pushed to the r4.0 stable repository for the Debian jessie template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-fc26-stable
r4.0-jessie-stable
and removed
r4.0-jessie-cur-test
labels
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package qubes-core-agent_4.0.12-1+deb9u1 has been pushed to the r4.0 stable repository for the Debian stretch template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
r4.0-stretch-stable
and removed
r4.0-stretch-cur-test
labels
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package qubes-utils_4.0.9+deb8u1 has been pushed to the r4.0 stable repository for the Debian jessie template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-jessie-stable
label
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package qubes-utils_4.0.9+deb9u1 has been pushed to the r4.0 stable repository for the Debian stretch template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-stretch-stable
label
Oct 30, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Oct 30, 2017
Automated announcement from builder-github
The package python2-qubesimgconverter-4.0.9-1.fc25 has been pushed to the r4.0 stable repository for dom0.
To install this update, please use the standard update command:
sudo qubes-dom0-update
Or update dom0 via Qubes Manager.
qubesos-bot
commented
Oct 30, 2017
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
marmarek commentedOct 13, 2017
•
edited by woju
Edited 1 time
-
woju
edited Oct 14, 2017 (most recent)
Qubes OS version: R4.0
Affected TemplateVMs: all
Current partition layout of template in Qubes 4.0 is:
kernel='')This makes resizing root volume hard, because one need to move xvda[23] data to the (new) end of the disk first. Also, having partitions at all (de facto required by grub2), makes online resize of root volume hard/impossible.
[edit by @woju] qubes-devel thread: https://groups.google.com/d/msg/qubes-devel/23FwvVd-pjU/P4Y-h91rAAAJ