Why does renaming a guest take so long?
It should only take a few moments, but it takes almost forever, it’s stupid.
And then files are lost in the meantime as well.
A qube’s name is immutable, so what happens under the hood is that “renaming” a qube actually clones it to a qube with the new name and then removes the old qube. If you’re using the deprecated legacy ‘file’ storage driver (on a filesystem that doesn’t support reflinks), cloning the qube’s storage requires copying all of the volume data.
?
A qubes name is NOT immutable…
It just needs to change in a few locations, it isn’t hard…
To change the name only takes a few seconds…
To create a new and clone takes ages…
It isn’t hard to change the XML and the folder name… I mean it’s 2 strings… I’ve done it manually before to test it…
Well, I lost all the backups in that VMs folder because it creates a new guest, performs unnecessary actions, then deletes all the old folder and data…
Files are the way virtuals should work… I’ve even disabled the “cow” system and the “old” system so that starting the guests doesn’t fill the drives for no reason…
I mean there isn’t any other real way to create and use the guests anyway that is reliable.
I know that they tried using LVM, but I found that to be very slow an unreliable, causing too many systems to have issues and crash. Thus I stick to files, as it should be. It isn’t LEGACY, and it shouldn’t be DEPRECATED either.
Not to mention that LVM is just as slow as file based… Not 100% equal, but there is no benefit to leaving file based since I can backup the file based and work on guests, then just shift them to another machine… Like upgrading templates and all, then just copy them over to the other system instead of having to update them on the other system, have them break, and not being able to do anything about it.
So, from a security standpoint, safety standpoint, and speed standpoint, file based is better and more efficient and stable.
So why does renaming take so long? What is the reason behind it? Why does it take forever instead of moments?
Because renaming is done by cloning.
Still doesn’t answer the question that I’m asking… I’m asking WHY when there is a fast way… Or can’t you read?