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

Résumé: 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. ...

Cet article concerne Cet article ne concerne pas Cet article n’est associé à aucun produit spécifique. Toutes les versions du produit ne sont pas identifiées dans cet article.

Symptômes

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

 

Résolution

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

 

Informations supplémentaires


 
Propriétés de l’article
Numéro d’article: 000212510
Type d’article: Solution
Dernière modification: 16 juil. 2024
Version:  2
Trouvez des réponses à vos questions auprès d’autres utilisateurs Dell
Services de support
Vérifiez si votre appareil est couvert par les services de support.