Secure Connect Gateway: Extending the /var/lib/docker Disk Space Using Logical Volume

Summary: The /var/lib/docker directory is where the local system stores the logs of the SCG. The SCG user interface container services operate on this directory. If it is fully used, this could render the user interface of the SCG inaccessible. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

The SCG user interface became suddenly not accessible even after rebooting the VM.

exapme2.png

Cause

This is caused by the storage /dev/mapper/scgVG-LVvar_lib_docker being nearly full making the SCG user interface container saede-app not able to run its services.

Note that the old versions of the Secure Remote Services or upgraded to SCG appliances have /dev/mapper/esrsVG-LVvar_lib_docker or /dev/mapper/saeVG-LVvar_lib_docker instead of /dev/mapper/scgVG-LVvar_lib_docker.

df -h result with locked services

 

Resolution

1. Using the VSphere client, access the VM and ensure you Power-Off the VM before modifying any settings:

Vsphere Powering Off the VM
2. Right click the VM and choose "Edit Settings" option:

  • In the Edit Settings pane, increase Disk Size and click "OK" button.

Editing the settings of the VM

3. Power on the VM and Verify the modified settings.

  • Verifying increase in DISK size:
    • Run command: fdisk -l
Executing command: fdisk -l
4. Creating new partition with the using below command
  • Run command: fdisk /dev/sda
Executing command: fdisk /dev/sda
5. Physical Volume creation use by the Logical Volume Manager(LVM)
  • Run: pvcreate "partition name"

Executing pvcreate “partition name”

  • To check: pvdisplay or pvs

Use command pvdisplay or pvs for checking
6. Volume Group Extend

  • Ex: vgextend "name" "partition name" instead of saeVG , you have to use esrsVG
    • Note that if SCG appliance is installed instead of upgraded from SRS, the volume group name will be scgVG not saeVG.

Command to extend Volume Group

  • To check: vgdisplay or vgs
    • Note that if SCG appliance is installed instead of upgraded from SRS, the volume group name will be scgVG not saeVG.

Checking with  vgdisplay or vgs
7. Extending LV size Ex: lvextend -L+19GB "LV path" for lvextend command needs to use the path /dev/mapper/esrsVG-LVvar_lib_esrsve

  • Note that if SCG appliance is installed instead of upgraded from SRS, the volume group name will be /dev/mapper/scgVG-LVvar_lib_docker not /dev/mapper/saeVG-LVvar_lib_docker .


Result of lvextend -L+19GB “LV path”

  • To check before resize LV: df -h

Using command df -h
8. Resize the LV

  • Note that if SCG appliance is installed instead of upgraded from SRS, the volume group name will be /dev/mapper/scgVG-LVvar_lib_docker not /dev/mapper/saeVG-LVvar_lib_docker .

Resizing the LV

  • To check: lvdisplay

Checking with: lvdisplay

  • To check after resize LV: df -h or lsblk

checking after resize LV: df -h or lsblk

 

Additional Information


 
Article Properties
Article Number: 000212510
Article Type: Solution
Last Modified: 16 Jul 2024
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.