GCE Instance containing multiple kernel builds occupying full space

I'm using a GCE instance (OS: ubuntu). I could see the disk space is full, Most of the space is occupied by kernel builds. Instance has different versions of kernel builds. I'm not sure how these were generated.

Has anyone encountered this issue. Any help in identifying and fixing the issue?

Here are the different versions but it's using 3.19.0-66-generic #74~14.04.1-Ubuntu

root@bb-event-server-05:/lib/modules# ls -lrt
total 140
drwxr-xr-x 5 root root 4096 Mar 15  2016 3.19.0-56-generic
drwxr-xr-x 5 root root 4096 Apr  6  2016 3.16.0-69-generic
drwxr-xr-x 5 root root 4096 Apr  6  2016 3.19.0-58-generic
drwxr-xr-x 5 root root 4096 Apr  9  2016 3.16.0-70-generic
drwxr-xr-x 5 root root 4096 May 17  2016 3.16.0-71-generic
drwxr-xr-x 5 root root 4096 May 17  2016 3.19.0-59-generic
drwxr-xr-x 5 root root 4096 Jun 10  2016 3.16.0-73-generic
drwxr-xr-x 5 root root 4096 Jun 10  2016 3.19.0-61-generic
drwxr-xr-x 5 root root 4096 Jun 28  2016 3.16.0-76-generic
drwxr-xr-x 5 root root 4096 Jun 28  2016 3.19.0-64-generic
drwxr-xr-x 5 root root 4096 Jul 15  2016 3.16.0-77-generic
drwxr-xr-x 5 root root 4096 Jul 15  2016 3.19.0-65-generic
drwxr-xr-x 5 root root 4096 Aug  9  2016 3.19.0-66-generic
drwxr-xr-x 2 root root 4096 Sep  1 06:38 4.4.0-36-generic
drwxr-xr-x 5 root root 4096 Sep  1 06:39 3.19.0-68-generic
drwxr-xr-x 2 root root 4096 Sep 20 06:54 4.4.0-38-generic
drwxr-xr-x 5 root root 4096 Sep 20 06:55 3.19.0-69-generic
drwxr-xr-x 2 root root 4096 Oct 11 06:48 4.4.0-42-generic
drwxr-xr-x 5 root root 4096 Oct 11 06:50 3.19.0-71-generic
drwxr-xr-x 2 root root 4096 Oct 20 06:31 4.4.0-45-generic
drwxr-xr-x 5 root root 4096 Oct 20 06:33 3.19.0-73-generic
drwxr-xr-x 2 root root 4096 Nov 10 06:45 4.4.0-47-generic
drwxr-xr-x 5 root root 4096 Nov 10 06:46 3.19.0-74-generic
drwxr-xr-x 2 root root 4096 Nov 30 06:26 4.4.0-51-generic
drwxr-xr-x 5 root root 4096 Nov 30 06:27 3.19.0-75-generic
drwxr-xr-x 2 root root 4096 Dec  6 06:35 4.4.0-53-generic
drwxr-xr-x 5 root root 4096 Dec  6 06:37 3.19.0-77-generic
drwxr-xr-x 5 root root 4096 Dec 20 06:42 3.19.0-78-generic
drwxr-xr-x 2 root root 4096 Dec 21 06:51 4.4.0-57-generic
drwxr-xr-x 2 root root 4096 Jan 11 06:27 4.4.0-59-generic
drwxr-xr-x 5 root root 4096 Jan 11 06:28 3.19.0-79-generic
drwxr-xr-x 2 root root 4096 Feb  3 06:42 4.4.0-62-generic
drwxr-xr-x 5 root root 4096 Feb  3 06:43 3.19.0-80-generic
drwxr-xr-x 2 root root 4096 Feb 21 06:40 4.4.0-63-generic
drwxr-xr-x 2 root root 4096 Feb 22 06:49 4.4.0-64-generic
1
задан 12 June 2018 в 12:56
2 ответа

Вы можно попытаться удалить устаревшие зависимости с помощью apt-get autoremove --purge

0
ответ дан 4 December 2019 в 05:08

Ubuntu и Debian оставляют старые версии ядра по умолчанию в работающих системах после выполнения обновлений.

Вы можете найти пакеты ядра, запустив dpkg -l | grep linux-image . Затем вы можете использовать apt-get purge PACKAGE , чтобы удалить этот пакет из вашей системы. Замените ПАКЕТ именами пакетов, полученными из dpkg , за исключением того, который вы сейчас используете.

0
ответ дан 4 December 2019 в 05:08

Теги

Похожие вопросы