Re-sizing the Partition/Adding More Storage
-
I’m using Citrix XenCenter version 6.5 and built a Fog virtual server. Originally it was allocated 80GB of storage. I changed it to 160GB on XenCenter but can’t figure out how to do it on the Fog server. I’ve tried GParted and some command line stuff but nothing is working for me. How do I re-size this? Please let me know if you need any additional information or screen shots.
-
Not exactly what you are asking but the end goals are about the same.
https://forums.fogproject.org/topic/6642/moving-fog-s-images-files-off-the-root-partition
-
I think @george1421’s suggestion is the best choice, especially if you may be needing to dynamically add more storage at anytime. This would also allow for easier rebuilds in case of OS corruption.
-
There is a way to expand the filesystem using fdisk. It is scary as hell to delete the partition and then add it back on a live system but worked when I did it.
https://codesilence.wordpress.com/2013/03/14/live-resizing-of-an-ext4-filesytem-on-linux/
You may try gpartd to work for you. I think I was able to do that before too.
-
@ITSolutions It looks like the OP is using normal partitions so it is easier to extend those than the ones managed by lvm. With lvm you would just create a new disk and add it to the vg.
-
This one may get the OP close with his original post (gives pictures)
https://www.rootusers.com/use-gparted-to-increase-disk-size-of-a-linux-native-partition/
But the right answer (IMO) is to move the images off the root partition and onto its own disk, where you can manage them and expend them from there.
-
@george1421 Yea I tried to do the fdisk thing and also thought it was scary so stopped before I could do any damage. I might try again because I have a snapshot of the server so If I do anything I can just revert to the snapshot. I just wanted to be pointed in the right direction before I put time into it. I’m reading the first article you posted and if that doesn’t work I will try using fdisk. Thank you for replying, I’ll let you know what happens