On 9/4/23 09:00, Wido den Hollander wrote:
Op 04-09-2023 om 08:20 schreef Granwille Strauss:HiI managed to resize the VM itself back to 60 GB via live/recovery method. However, now in Cloudstack it still says the volume remains 120 GB and when I want to shrink it I am presented with the errors from my previous reply. Is there a way around this? Such as making a database change. Also, is this the expected behaviour for a KVM host?This is recorded in the table 'volumes'. If you decrease the size to 60GB there is should show properly.WidoOn 9/2/23 11:22, Granwille Strauss wrote:Hi Wei It seems you're right you cannot shrink the volume in Cloudstack:Failed to resize volume operation of volume UUID: [eec8285e-8715-441b-b418-b71b231f1bab] due to - Unable to shrink volumes of type QCOW2Going from existing size of 128849018880 to size of 64424509440 would shrink the volume.Need to sign off by supplying the shrinkok parameter with value of true.On 9/2/23 10:37, Wei ZHOU wrote:Hi Wido, Does it work with kvm ? my suggestion would be - create a new vm with 60GB - copy the data using `rsync` -WeiOn Sat, 2 Sept 2023 at 08:25, Wido den Hollander<w...@widodh.nl> wrote:Hi,Yes, you should make sure the filesystem and partitions are within theto be set new boundaries. Once that's done you can shrink the volume. I would recommend: - Shrink EXT4 + Partitions to 59GB - Shrink volume to 60GB - Grow EXT4 + Partitions to 60GB The step to 59GB is to prevent that by calc mistake you chip off the last portion of your filesystem. Wido Op 01-09-2023 om 16:29 schreef Granwille Strauss:https://www.instagram.com/namhostinternetservices/>< https://www.linkedin.com/company/namhos>< https://www.youtube.com/channel/UCTd5v-kVPaic_dguGur15AA>Hi Guys Anyone willing to assist me with a quick one. What's the best andrecommended way to shrink a VM volume via UI? The VM volume was first 60 GB, we then expended it to 120 GB and increased it in the VM via parted. I now want to take it back to 60GB. How do I proceed? Do I first shrink the ext4 in the VM first then proceed to shrink the volume in CloudstackUI by selecting also the "Shrink OK" option? Detailed steps would be appreciated, please. -- Regards / Groete<https://www.namhost.com> Granwille Strauss // Senior Systems Admin*e:*granwi...@namhost.com *m:* +264 81 323 1260<tel:+264813231260> *w:*www.namhost.com <https://www.namhost.com/> <https://www.facebook.com/namhost><https://twitter.com/namhost><https://www.adsigner.com/v1/l/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818/banner<https://www.adsigner.com/v1/c/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818Namhost Internet Services (Pty) Ltd, 24 Black Eagle Rd, Hermanus, 7210, RSAThe content of this message is confidential. If you have received it by mistake, please inform us by email reply and then delete the message. It is forbidden to copy, forward, or in any way reveal the contents of thismessage to anyone without our explicit consent. The integrity and security of this email cannot be guaranteed over the Internet.Therefore, the sender will not be held liable for any damage caused by the message. For our full privacy policy and disclaimers, please go tohttps://www.namhost.com/privacy-policy Powered by AdSigner <-- Regards / Groete<https://www.namhost.com> Granwille Strauss // Senior Systems Admin*e:* granwi...@namhost.com *m:* +264 81 323 1260 <tel:+264813231260> *w:* www.namhost.com <https://www.namhost.com/><https://www.facebook.com/namhost><https://twitter.com/namhost><https://www.instagram.com/namhostinternetservices/><https://www.linkedin.com/company/namhos><https://www.youtube.com/channel/UCTd5v-kVPaic_dguGur15AA><https://www.adsigner.com/v1/l/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818/banner>Namhost Internet Services (Pty) Ltd, 24 Black Eagle Rd, Hermanus, 7210, RSAThe content of this message is confidential. If you have received it by mistake, please inform us by email reply and then delete the message. It is forbidden to copy, forward, or in any way reveal the contents of this message to anyone without our explicit consent. The integrity and security of this email cannot be guaranteed over the Internet. Therefore, the sender will not be held liable for any damage caused by the message. For our full privacy policy and disclaimers, please go to https://www.namhost.com/privacy-policyPowered by AdSigner <https://www.adsigner.com/v1/c/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818>-- Regards / Groete <https://www.namhost.com> Granwille Strauss // Senior Systems Admin *e:* granwi...@namhost.com *m:* +264 81 323 1260 <tel:+264813231260> *w:* www.namhost.com <https://www.namhost.com/><https://www.facebook.com/namhost><https://twitter.com/namhost><https://www.instagram.com/namhostinternetservices/><https://www.linkedin.com/company/namhos><https://www.youtube.com/channel/UCTd5v-kVPaic_dguGur15AA><https://www.adsigner.com/v1/l/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818/banner>Namhost Internet Services (Pty) Ltd, 24 Black Eagle Rd, Hermanus, 7210, RSAThe content of this message is confidential. If you have received it by mistake, please inform us by email reply and then delete the message. It is forbidden to copy, forward, or in any way reveal the contents of this message to anyone without our explicit consent. The integrity and security of this email cannot be guaranteed over the Internet. Therefore, the sender will not be held liable for any damage caused by the message. For our full privacy policy and disclaimers, please go to https://www.namhost.com/privacy-policyPowered by AdSigner <https://www.adsigner.com/v1/c/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818>
-- Regards / Groete <https://www.namhost.com> Granwille Strauss // Senior Systems Admin *e:* granwi...@namhost.com *m:* +264 81 323 1260 <tel:+264813231260> *w:* www.namhost.com <https://www.namhost.com/> <https://www.facebook.com/namhost><https://twitter.com/namhost><https://www.instagram.com/namhostinternetservices/><https://www.linkedin.com/company/namhos><https://www.youtube.com/channel/UCTd5v-kVPaic_dguGur15AA> <https://www.adsigner.com/v1/l/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818/banner> Namhost Internet Services (Pty) Ltd, 24 Black Eagle Rd, Hermanus, 7210, RSAThe content of this message is confidential. If you have received it by mistake, please inform us by email reply and then delete the message. It is forbidden to copy, forward, or in any way reveal the contents of this message to anyone without our explicit consent. The integrity and security of this email cannot be guaranteed over the Internet. Therefore, the sender will not be held liable for any damage caused by the message. For our full privacy policy and disclaimers, please go to https://www.namhost.com/privacy-policy
Powered by AdSigner <https://www.adsigner.com/v1/c/631091998d4670001fe43ec2/621c9b76c140bb001ed0f818>
smime.p7s
Description: S/MIME Cryptographic Signature