If you're running in VMware (ESXi or other), you may want to increase the disk size. After you've increased the disk capacity in VMware then you need to update the guest OS (Ubuntu Linux) to recognize the new capacity.
Here's how:
1. Reboot VM or run these commands in shell :
sudo su -
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan
echo "1" > /sys/class/scsi_disk/2\:0\:0\:0/device/rescan
exit
2. sudo cfdisk /dev/sda
Select the "Free Space" item that represents the new disk space (usually the last entry).
Create new, logical partition, type == Linux LVM (8e), write (note the partition number created e.g. sda6), quit.
3. Reboot VM or run sudo partprobe
4. sudo pvcreate /dev/sda6
5. sudo vgextend visiblethreadserver /dev/sda6
Standard deployment | Encrypted deployment |
---|---|
6. sudo lvextend /dev/visiblethreadserver/root /dev/sda6 | 6. sudo lvextend /dev/visiblethreadserver/db /dev/sda6 |
7. sudo resize2fs /dev/visiblethreadserver/root | 7. sudo cryptsetup resize encrypted-db |
8. sudo resize2fs -p /dev/mapper/encrypted-db |
To confirm that the new disk capacity is recognized run df -h