Client takes on full responsibility for the execution of this task. This should not be attempted unless you are qualified. |
This being said, there are a number of huge advantages to extend your Diskspace via LVM over other means (e.G. you do not have to split up your storage over several logical mountpoints) and this has proven to be reliable, scalable and fast.
Regardless of your Usage of VMWare, Xen, Hyper V or other, when you intend to grow the Diskspace of the eDMS OVA, it is neccesary to assign Diskspace to your VM
Please refer to the Manual of your Virtualization Platform for this.
The Standard Size while deploying the OVA is 100 GB. This will naturally not suffice anymore after a while of adding Documents, Versions Previews etc.
We cannot give a general Recommendation as to how large your extension should become, but please contact us if this is unclear in your specific Situation.
SSH into the CentOS OVA and sudo to root (unless you are already root)
sudo -i |
List the block device to see the newly assigned vSphere hard disk.
lsblk |
If you do not see the vSphere hard disk, force a rescan (or reboot which is less elegant but just as effective)
for host in $(ls -1d /sys/class/scsi_host/*); do echo "- - -" > ${host}/scan ; done for device in $(ls -1d /sys/class/scsi_disk/*); do echo "1" > ${device}/device/rescan ; done |
Format the disk partition. Get the device name from the previous lsblk output
fdisk /dev/sdb n (new partition) p (primary) (Press ENTER) (Use default partition number) (Press ENTER) (Use default first sector) (Press ENTER) (Use default last sector) t (change the partition type) 8e (Linux LVM) w (write) |
in order to see this partition, read the partition table with "partprobe" (or reboot which is less elegant but just as effective)
and check afterwards with pvs
first check for the group with "vgs" then "vgextend centos" then check again:
first check for the Volume with "lvs" then "lvextend" then check again:
now in order to actually use the additional space we need to resize the filesystem.
first check the existing file system
then actually resize the file system - for newer systems it's recommended to use "xfs_growfs /dev/mapper/centos-root".
Otherwise, use:
and check again:
Voila!
pvcreate
vgextend
lvextend
resize2fs
Following above example, if sda would have received an additional 200GB instead of integrating a different (sdb) partition.