Page MenuHomeSoftware Heritage

Sentry: Increase disk space
Closed, ResolvedPublic

Description

After the last upgrades, the disk remains almost full.
@olasd has changed the kafka retention policy from 24h to 6h, but the free disk space remains around 1% actually (1.1 Go available)

The space will be extended by 16Go for a total of 80Go to avoid any out of disk issue

Related Objects

Event Timeline

vsellier changed the task status from Open to Work in Progress.Dec 21 2020, 6:58 PM
vsellier triaged this task as High priority.
vsellier created this task.
  • before :
root@riverside:~# pvscan
  PV /dev/sda1   VG riverside-vg    lvm2 [<63.98 GiB / 0    free]
  Total: 1 [<63.98 GiB] / in use: 1 [<63.98 GiB] / in no VG: 0 [0   ]
root@riverside:~# df -h /
Filesystem                      Size  Used Avail Use% Mounted on
/dev/mapper/riverside--vg-root   60G   56G  1.4G  98% /

(2% some cleanup seems to have occur since the creation of the task :) )

  • disk extended on proxmox by 16Go on proxmox
(extract of dmesg of riverside)
[350521.461023] sd 2:0:0:0: Capacity data has changed
[350521.461339] sd 2:0:0:0: [sda] 167772160 512-byte logical blocks: (85.9 GB/80.0 GiB)
[350521.461484] sda: detected capacity change from 68719476736 to 85899345920
  • partition resized :
root@riverside:~# parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print free                                                       
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 85.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
        32.3kB  1049kB  1016kB           Free Space
 1      1049kB  68.7GB  68.7GB  primary               boot, lvm
        68.7GB  85.9GB  17.2GB           Free Space

(parted) resizepart 1
End?  [68.7GB]? 85.9GB                                                    
(parted) print                                                            
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 85.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  85.9GB  85.9GB  primary               boot, lvm
  • LVM physical volume resized :
root@riverside:~# pvscan
  PV /dev/sda1   VG riverside-vg    lvm2 [<63.98 GiB / 0    free]
  Total: 1 [<63.98 GiB] / in use: 1 [<63.98 GiB] / in no VG: 0 [0   ]
root@riverside:~# pvresize /dev/sda1
  Physical volume "/dev/sda1" changed
  1 physical volume(s) resized or updated / 0 physical volume(s) not resized
root@riverside:~# pvscan
  PV /dev/sda1   VG riverside-vg    lvm2 [<80.00 GiB / <16.02 GiB free]
  Total: 1 [<80.00 GiB] / in use: 1 [<80.00 GiB] / in no VG: 0 [0   ]
  • lvm logical volume extended :
root@riverside:~# lvscan
  ACTIVE            '/dev/riverside-vg/root' [60.16 GiB] inherit
  ACTIVE            '/dev/riverside-vg/swap_1' [3.81 GiB] inherit
root@riverside:~# df -h /
Filesystem                      Size  Used Avail Use% Mounted on
/dev/mapper/riverside--vg-root   60G   56G  1.3G  98% /

root@riverside:~# lvresize --extents +100%FREE --resizefs /dev/mapper/riverside--vg-root
  Size of logical volume riverside-vg/root changed from 60.16 GiB (15402 extents) to 76.18 GiB (19503 extents).
  Logical volume riverside-vg/root successfully resized.
resize2fs 1.44.5 (15-Dec-2018)
Filesystem at /dev/mapper/riverside--vg-root is mounted on /; on-line resizing required
old_desc_blocks = 8, new_desc_blocks = 10
The filesystem on /dev/mapper/riverside--vg-root is now 19971072 (4k) blocks long.

root@riverside:~# lvscan
  ACTIVE            '/dev/riverside-vg/root' [76.18 GiB] inherit
  ACTIVE            '/dev/riverside-vg/swap_1' [3.81 GiB] inherit
root@riverside:~# df -h /
Filesystem                      Size  Used Avail Use% Mounted on
/dev/mapper/riverside--vg-root   75G   56G   17G  78% /