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.
1. Detect changes in disk
Reboot VM or run these commands in the 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. Add a new LVM partition
sudo cfdisk /dev/sda
Select the "Free Space" item that represents the new disk space (usually the last entry).
Select:
- Create new
- logical partition
- type == Linux LVM (8e)
- write (note the partition number created e.g. sda6), quit.
3. Detect changes
Reboot VM or run:
sudo partprobe
4. Create a new Physical Volume
sudo pvcreate /dev/sda6
5. Extend the Volume Group
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