0

I have some partitions out of size. Can I make room for them?

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            476M     0  476M   0% /dev
tmpfs            98M  808K   98M   1% /run
/dev/xvda1       15G  7.5G  7.1G  52% /
tmpfs           490M     0  490M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           490M     0  490M   0% /sys/fs/cgroup
tmpfs           490M  8.0K  490M   1% /tmp
/dev/loop2       34M   34M     0 100% /snap/agent/3552
/dev/loop1       56M   56M     0 100% /snap/core18/1006
/dev/loop0       56M   56M     0 100% /snap/core18/2074

I tried this one but it didn't work

vresize -L+100M /dev/loop0 /dev/xvda1:0-1 /dev/xvda1:0-1

"/dev/loop0": Invalid path for Logical Volume.

5
  • If you used lvresize (not vresize) then that would be for a LVM system. You don't have Logical Volumes etc. Jun 25, 2021 at 22:35
  • Add the output of fdisk -l | grep xvda as root to your question. Jun 25, 2021 at 23:19
  • How can increase the size of /dev/loop2 then? @JeremyBoden
    – Okan
    Jun 25, 2021 at 23:42
  • Do you have any errors saying that you have insufficient storage/memory for any processes? Jun 26, 2021 at 11:50
  • Yes I do. I use OSSEC and receive lots of emails with the alert Level 7 - Partition usage reached 100% (disk space monitor). That's how I found this. I'm just looking a way to fix this issue. @JeremyBoden
    – Okan
    Jun 26, 2021 at 17:47

1 Answer 1

0

The loop devices used by snap packages are supposed to be using 100 % of the space, that's normal. Snaps are squashfs images that are mounted using loop devices, they don't need extra space and you can't resize them.

4
  • Thank you for the information. I receive lots of alerts from OSSEC — Level 7 - Partition usage reached 100% (disk space monitor). In this case, how can I fix this problem?
    – Okan
    Jun 26, 2021 at 17:49
  • Use less disk storage. Do you have extra storage not shown in the question? Jun 27, 2021 at 9:28
  • I'm not familiar with OSSEC, I found this issue on their github, there are some suggestions for workarounds/custom rules there. If this doesn't work, I'd recommend asking a new question about this. Jun 27, 2021 at 9:43
  • @VojtechTrefny thanks for sharing that suggestion. It didn't work on my end. I just asked it as a new question.
    – Okan
    Jun 27, 2021 at 18:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.