Increase the disk space of a ServiceNav Box

On the page

Need some help?

To enlarge a Linux partition here is the procedure to follow


Have achieved an increase in the size of the VM disk

Steps to follow

  1. Connect to SSH as root (if you are connected with the coadmin account run the command sudo su - )
  2. Issue the following command: echo 1 > /sys/block/sda/device/rescan
  3. Issue the following command:  cfdisk
  4. Go to " Free Space " then choose in the menu News partition / Logic Example: /dev/sda4 => WRITE
  5. Note the name of the new partition: ex /dev/sda4
  6. Issue the following command: partprobe
  7. Issue the following command: pvcreate /dev/sdaX  Example: pvcreate /dev/sda4 (if that doesn't work restart the box)
  8. Retrieve the name of the logical volume to be increased :  lvdisplay
  9. Enter the command : vgextend GRPE_VOLUME_NAME /dev/sdaX
    • For example: vgextend template-ubuntu-snb-16-04-vg /dev/sda4
  10. Retrieve the path of the LV PATH logical volume and resize it.
    • lvresize -l +100%FREE LV PATH  (to set 100%)
    • For example: lvresize -l +100%FREE /dev/template-ubuntu-snb-16-04-vg/root
  11. Retrieve the name of the partition to be resized with the command df -h

Enter the following command: resize2fs /dev/mapper/template-ubuntu-snb-16-04-vg-root

Check with the command : df -h

information icon IMPORTANT 

If you need to create a primary partition, be careful not to exceed
exceed 3 partitions. Beyond that it is not possible to add

This may also be of interest to you

Replace a ServiceNav Box Ubuntu 16.04 with a ServiceNav Box 4.17 Ubuntu 20.04

Setting up a proxy on a ServiceNav Box

servicenav hyperV1

Deploying a ServiceNav Box


Welcome to ServiceNav!

Need help? More information about our products? Write to us!
You have taken note of our privacy policy.


While the epidemic lasts, ensure the availability and performance of your IT services for teleworking, with ServiceNav!

Following the government's call to mobilize to help businesses overcome the current health and economic context, we help you, free of charge, to ensure the complete monitoring of your teleworking environments: VPN, VDI, Teams, Skype Enterprise, Citrix... Objectives: collection, availability and usage indicators, dashboards to support your communication.
We use cookies to ensure that you have the best possible experience on our site, and if you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

You have taken note of our privacy policy.