Author Topic: /dev/mapper/cl-root %93 Full  (Read 2556 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
/dev/mapper/cl-root %93 Full
« on: February 05, 2021, 02:54:55 PM »
How do I expand without formatting


Disk /dev/sda: 107.4 GB, 107374182400 bytes, 209715200 sectors  <<<<<<<<<100 GB
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000a7393

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    39845887    18873344   8e  Linux LVM
/dev/sda3        39845888    73400319    16777216   83  Linux
/dev/sda4        73400320   209715199    68157440   8e  Linux LVM

Disk /dev/mapper/cl-root: 104.2 GB, 104245231616 bytes, 203603968 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/cl-swap: 2042 MB, 2042626048 bytes, 3989504 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

----------------------------------------------------------------------------------------------------------
Filesystem           Size  Used Avail Use% Mounted on
devtmpfs             4.8G     0  4.8G   0% /dev
tmpfs                4.9G     0  4.9G   0% /dev/shm
tmpfs                4.9G  8.9M  4.8G   1% /run
tmpfs                4.9G     0  4.9G   0% /sys/fs/cgroup
/dev/mapper/cl-root   33G   30G  2.4G  93% /  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<%93
/dev/sda1           1014M  279M  736M  28% /boot
tmpfs                984M     0  984M   0% /run/user/0

Re: /dev/mapper/cl-root %93 Full
« Reply #1 on: February 05, 2021, 06:03:32 PM »
BEFORE DOING ANYTHING.. You need to determine what is swallowing up the space! I'll hazard a guess that you haven't bothered looking at the CWP supplied Logrotate Manager.
When you've cleaned up the mess, then follow an online guide or two, for example (not a recommendation):
https://www.golinuxhub.com/2014/03/how-to-extendresize-lvm-and-volume/

My typical layouts are similar to the following:
Code: [Select]
/boot ext4
/ ext4
/tmp ext2
swap
/var ext4 (usually)
/var/lib/mysql ext4 (sometimes)
/home ext4
/backup ext2 (local backups, sometimes sshfs)
This way it becomes easier to spot space hogs amongst other benefits.

It appears that you have plenty of free VG space to add additional LVs, then move files to them. Much better than just expanding root.
« Last Edit: February 05, 2021, 06:12:06 PM by cynique »