Additional disk space is not showing up on Fog server
-
I recently added more disk space to my virtual fog server. I can see the additional disk space in the Linux os, but in Fog server the disk space is the same size before I added space.
-
First, what version of FOG are you using?
Second, can you see the additional disk space if you key in
sudo df -h
on the fog server console? -
Version 1.3.0
There is a fog console? I use the GUI. -
@sjensen fog console, i.e. logging into the fog server via ssh or the fog server monitor and keyboard.
-
@sjensen said in Additional disk space is not showing up on Fog server:
Version 1.3.0
There is a fog console? I use the GUI.There is a Linux console, all Linux have a console. Terminal or SSH is what George is talking about using.
What OS is your fog server running on? -
@Wayne-Workman
Ok I thought he might be talking about terminal, but was not sure. I thought I missed something in Fog.Ubuntu 14.04
-
@sjensen ok now that I wasn’t totally clear
If you connect via ssh to your fog (linux) server console and key in
df -h
can you see the added space you created? -
@sjensen Can you post the output of all of these commands actually? If you are like most people you used all the defaults when installing Ubuntu, and there are volume groups setup.
sudo -i df -h lsblk fdisk -l pvdisplay vgdisplay lvdisplay
Please post using the code formatting tool, preferably with the output of each command in it’s own box.
-
Here is what I got. I added around 300gb to the linux vm.
-
@sjensen Did you expand the volume?
It may require you to run a live cd to expand seeing as, if I’m understanding correctly, you’re trying to expand the root partition.
While it is possible to resize the root partition live, I’d recommend against it.
If you can create a snapshot of the system before you make any partition changes, I think it may help you out too.
-
@Wayne-Workman
Here you go. -
@Tom-Elliott
Its already done. I used Gparted live cd. -
@sjensen I think, then, all you need is
vgextend FOGserver-vg /dev/FOGserver-vg/root
Edited as I copied from another site, and forgot to modify the vg_tecmint portion.
-
@Tom-Elliott said in Additional disk space is not showing up on Fog server:
vgextend FOGserver-vg /dev/FOGserver-vg/root
Sorry im still new to linux where would i place that at?
-
@sjensen linux console…
What may be confusing you is that linux (here) is using LVM (logical volume manager) to manage your disks. It doesn’t have an equivalent in the windows realm. But LVM is an abstract layer between the hardware and the OS. If you close one eye and squint with the other one, one might says its a kind to a disk virtualization layer. Between the hardware and the OS. (even if the system is running as a virtual machine). LVM allows you to add more disks to an operating system without needing to reformat your hard drive to extend it. Granted its much easier now with linux running on a vm to extend the vmdk and add space, when you are talking about physical servers, it a bit harder. That is where LVM comes into play.
-
@sjensen Open a terminal.
Gain root: (If ubuntu typically
sudo -i
).Once at the root prompt, run the command.
Root prompt looks similar to:
[root@fogserver ~] #
-
@Tom-Elliott
ok done -
@sjensen Did it work?
-
@sjensen now do you see the additional space when you do a
df -h
? -