Adding a New Disk
This section describes the procedures needed to add a new disk to a VM.
Prerequisites
-
All the VMs were created using the deployment process.
-
This procedure assumes the datastore that will be used to have the virtual disk has sufficient space to add the virtual disk.
-
This procedure assumes the datastore has been mounted to the VMware ESX server, regardless of the backend NAS device (SAN or iSCSI, etc).
ESX Server Configuration
Procedure
Step 1 |
Login to the ESX server shell, and make sure the datastore has enough space:
|
Step 2 |
Execute
|
Step 3 |
Assign the disk to the VM. The xxxx is the disk name, and 0 and 1 indicate the SCSI device number. In this example, this is the second disk:
|
Target VM Configuration
Procedure
Step 1 |
Log in as root user on your Linux virtual machine. |
||
Step 2 |
Open a terminal session. |
||
Step 3 |
Execute the
|
||
Step 4 |
Create an ext4 file system on the new disk:
|
||
Step 5 |
Execute the following command to verify the existence of the disk you created:
|
||
Step 6 |
Execute the following command to create a mount point for the new disk:
|
||
Step 7 |
Execute the following command to display the current /etc/fstab:
|
||
Step 8 |
Execute the following command to add the disk to /etc/fstab so that it is available across reboots:
|
||
Step 9 |
Reboot the VM.
|
||
Step 10 |
Execute the
|
Update the collectd process to use the new file system to store KPIs
After the disk is added successfully, collectd can use the new disk to store the KPIs.
Procedure
Step 1 |
SSH into pcrfclient01/pcrfclient02. |
||
Step 2 |
Execute the following command to open the logback.xml file for editing:
|
||
Step 3 |
Update the file element <file> with the new directory that was added in the /etc/fstab. |
||
Step 4 |
Execute the
following command to restart
|