These first steps are for deleting the partition. This process is NOT destructive, the data still remains on the disk. Also, we make sure to place the beginning of the new partition at the same sector/cylinder as the old one started. To resize a partition, we actually “delete” it and then add a new one with the new size. We take a screenshot or copy the screen contents into a text file in case we want to reference it later. Next, we print the current partition table so we can keep track of the changes. sda2 is the device for all logical volumes, this is the partition we need to editįirst, we start fdisk by executing the following command.For the virtual machine provided by Nagios Enterprises: We need to modify the Linux partition table within the virtual machine to recognize that the disk size has changed. Here are the steps to manually resize the VM partition and filesystem. This completes the automatic steps for increasing the VM disk size. In the above message, the sizes differ depending on how much extra disk space we add. We will see output similar to the below one:Īfter the server reboots, we login as the root user in a terminal session. After the completion of the script, it will automatically restart the Nagios server. We run the below commands to automatically resize the partition and filesystem on VM. We can follow any of the below 2 methods to resize the partition and filesystem. We power the VM back on after increasing the disk space. (VM) > Edit virtual machine settings > Hardware > Hard Disk (SCSI) > Utilities > Expand > Maximum disk size. (VM) > Summary > Commands > Edit Settings > Hardware > Hard Disk 1 > Capacity > New Size.įor VMware Player, we can find the disk size setting using the following options on the overview page: We can find the virtual disk size setting under: We recommend shutdown and power the VM off before resizing the virtual disk. If we are using another hypervisor like Hyper-V or VirtualBox then these settings will be slightly different from the steps below. However, we recommend taking a proper backup before proceeding with resizing the virtual machine.įirst, we modify the amount of disk space VMware is allocating to Nagios image. If the version is 7, the output will be something like: CentOS Linux release (Core) If the version is 6, the output will be something like: CentOS release 6.9 (Final) Now let’s see how our Support Engineers resize the Nagios virtual machine (VM) disk for CentOS 7.įirst, we check the version of CentOS by running the below command. Resizing the Nagios VM disk size for centos 7 Today we’ll take a look at how to fix this Nagios disk space problem. Here at Bobcares, we have seen several such Nagios-related errors as part of our Server Management Services for web hosts and online service providers. Resizing the Nagios VM disk size for centos 7 can be done either manually or automatically using a script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |