[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: btrfs install over an existing rootfs

On 04/22/2014 08:43 AM, David Lehman wrote:

On 04/21/2014 03:23 PM, Gene Czarcinski wrote:
Not all directory trees are created equal and anaconda requires that the
directory tree (partition) for the rootfs (that is "/") must be either
new or reformatted.  This works for regular partitions and the LVMLVs.
However, there is no real concept of "reformatting" an existing btrfs

This applies to kickstart only as the regular gui/text installers handle
the situation already.

Proposal: Add code to implement a new feature for btrfs subvolumes which
will implement the equivalent of reformatting.  This equivalent will
consist of deleting the subvolume and then recreating it.

As I originally implemented this I added a new operand to the btrfs
command for a subvolume: --reclaim
[This involves a small patch to pykickstart]

While I considered using and existing operand in some fashion, I believe
that the "safe" approach is to require the user to specify this new
operand is the intent is to reclaim the subvolume's name and then reuse it.


You can already do this by simply creating a new subvolume for the root filesystem. There is no reason to spend more time on this.
Well, I believe that your both correct and incorrect. You are correct that you can install if you specify a new name for the rootfs subvol.

However, this is for kickstart where I am using this to install virtual system which sometimes require reinstalling several times. Sooner or later (likely sooner) I am going to run out of disk space. This change simply deletes the specified subvol to reclaim both the name AND THE DISK SPACE so that the system can be (re)installed.

This is really a rather trivial update consisting of:
Gene Czarcinski (1):
  v3 add reclaim capability for btrfs subvolumes

 pyanaconda/kickstart.py | 8 ++++++++
 1 file changed, 8 insertions(+)

Gene Czarcinski (1):
  v3 add reclaim option to kickstart btrfs command

 pykickstart/commands/btrfs.py | 5 +++++
 1 file changed, 5 insertions(+)

I was under the impression that functionality was to be added to kickstart first and then added to the gui interface. I can reclaim for btrfs under the gui but not under kickstart.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]