100 % fulls space used

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
Gio71
Posts: 3
Joined: Mon Sep 19, 2022 1:06 am

100 % fulls space used

Post by Gio71 »

hello,
how can i extend space c-root

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/cl-root 17G 17G 299M 99% /
devtmpfs 908M 0 908M 0% /dev
tmpfs 918M 0 918M 0% /dev/shm
tmpfs 918M 33M 886M 4% /run
tmpfs 918M 0 918M 0% /sys/fs/cgroup
/dev/sda1 1014M 139M 876M 14% /boot
tmpfs 918M 11M 908M 2% /opt/omd/sites/aurore/tmp
tmpfs 184M 0 184M 0% /run/user/0

[root@omd ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 40G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 39G 0 part
├─cl-root 253:0 0 17G 0 lvm /
└─cl-swap 253:1 0 2G 0 lvm [SWAP]
sr0 11:0 1 1024M 0 rom
[root@omd ~]# lvextend /dev/mapper/cl-root -l+100%FREE
New size (4351 extents) matches existing size (4351 extents).

[root@omd ~]# sudo lvextend --resizefs --extents +2000 /dev/mapper/cl-root
Insufficient free space: 2000 extents needed, but only 0 available

thanks in advance
erano
Posts: 2
Joined: Fri Sep 23, 2022 1:14 am

Re: 100 % fulls space used

Post by erano »

Hi Gio71,

you need to extend the disk in the virtual disk first, did you do that?
you can also boot the vm with a gparted image, this will help you understant your partition and the free space available.
Gio71
Posts: 3
Joined: Mon Sep 19, 2022 1:06 am

Re: 100 % fulls space used

Post by Gio71 »

thanks for your replay
i extended the disk, and then
i free some space from the logs and then i extended the cl-root
know is working fin



thanks
Post Reply