...
Virtual appliance
There With a virtual deployment, there are two strategies options available for increasing DPOD's Store disk space:
Anchor Extend Existinf Disk Extend Existinf Disk
Extend
Extend Existinf Disk | |
Extend Existinf Disk |
...
The Existing Virtual Disk
Use the vSphere Client in order to edit the
...
DPOD virtual machine
- Stop the DPOD virtual machine.
...
- Select Edit virtual machine
...
- settings
...
- Select the 3rd hard drive (which is the data disk, as described in
...
- the Hardware and Software Requirements page).
- Increase the
...
- Provisioned size of the hard drive and press OK.
- Wait for the increase process to finish.
- Start DPOD virtual machine.
Anchorconfigure extended disk configure extended disk
Configure the extended disk on OS level
configure extended disk | |
configure extended disk |
...
Verify the current size of mount point /data:
Code Block df -h /data
- The system output should resemble the following:
...
Verify the new disk size:
Code Block fdisk -l |grep /dev/sdc
The system output should resemble the following:
...
Use fdisk to create a new partition for the new size:
Code Block fdisk /dev/sdc
and perform the following steps:
- Press p to print the partition table to identify the number of partitions
...
- :
If this is the first
- :
...
- time the disk is extended, you should only see sdc1. If this is
...
- a subsequent extension - you will see additional sdcX listed (e.g. sdc2 for the second extension)
- Press n to create a new primary partition.
- Press p for primary.
...
- When the system prompts for a partition number enter the next number depending on the output of the partition table print
...
- . If this is the first extension and you see only one row of output - enter 1. If this is the second disk
...
- extension then the partition number will be 3
...
- , and so on.
- Press Enter
...
- twice
- Press t to change the system's partition ID.
- Press 2 to select the newly creation partition.
- Type 8e to change the Hex Code of the partition for Linux LVM.
Press w to write the changes to the partition table.
Note the following warning is valid, the system reboot will fix the issue :
“WARNING: Re-reading the partition table failed with error 16: Device or resource busy.The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8)”Reboot the system:
Code Block reboot
- twice
...
When the system is back up,
...
ensure the new partition is available:
Code Block fdisk -l | grep /dev/sdc
- The system output should resemble the following (note the new sdcX added)
- stop the application using app-util.sh -> option 2 (stop all)
- create new LVM physical volume (PV) : pvcreate /dev/sdc2
if this is the second disk extending the device will be /dev/sdc3 - extend the LVM volume group (VG) : vgextend vg_data /dev/sdc2
- extend the LVM logical volume (LV) :
lvextend -l +100%FREE /dev/vg_data/lv_data - identify the /data file system type (for CentOS 7.2 based appliance the type is xfs) : cat /etc/fstab |grep /data
- resize the file system according to the file system type :
- ext4 : resize2fs /dev/vg_data/lv_data
- xfs : xfs_growfs /dev/vg_data/lv_data
- Display the new size of mount point / data : df -h /data
...
AnchorAdd New Disk Add New Disk
Add new virtual disk
Add New Disk | |
Add New Disk |
Use the vSphere Client in order to edit the DPODs virtual machine
- Stop DPOD virtual machine.
- Press “Edit virtual machine settings”
- Choose “add” -> “hard drive”
make sure you configure the new hard drive as “Thick Provision Eager Zeroed” - Wait for the increase process to finish.
- Wait for the increase process to finish.
- Start DPOD virtual machine.
...