Partição acusando espaço - LVM /var

1. Partição acusando espaço - LVM /var

Leonardo Soares da Silva
LeytorXD

(usa Debian)

Enviado em 09/04/2018 - 15:40h

Olá pessoal!

Estou com uma duvida relacionada a partições.
Uso o Zabbix aqui na empresa e recentemente apareceu um alerta sobre o /var do servidor, onde a mesma estaria com menos de 5% do espaço.
A partição é do tipo LVM, onde em sistema me mostra que tem 137G.
Acessando o /var, verifiquei que ela possui apenas 25G, porem usando o comando "df -h" me mostra o seguinte:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/system-var 135G 126G 3.9G 98% /var

Segue informações do sistema:
-----------------------------------------------------------------------------------------------------------------------
Comando "du -lh --max-depth=1" no /var:

25G ./lib
16K ./lost+found
20K ./www
28K ./spool
9.3M ./backups
4.0K ./mail
26M ./log
4.0K ./crash
4.0K ./agentx
268M ./cache
4.0K ./tmp
4.0K ./opt
4.0K ./local
25G .

Comando "lsblk" no /:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 120G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 244M 0 part /boot
└─sda3 8:3 0 99.3G 0 part
├─system-root 252:0 0 18.6G 0 lvm /
├─system-swap 252:1 0 3.7G 0 lvm [SWAP]
├─system-usr 252:2 0 18.6G 0 lvm /usr
├─system-home 252:3 0 4.7G 0 lvm /home
├─system-tmp 252:4 0 952M 0 lvm /tmp
└─system-var 252:5 0 137.3G 0 lvm /var
sdb 8:16 0 100G 0 disk
└─sdb1 8:17 0 100G 0 part
└─system-var 252:5 0 137.3G 0 lvm /var
sr0 11:0 1 1024M 0 rom

Comando "df -h" no /:

Filesystem Size Used Avail Use% Mounted on
udev 976M 0 976M 0% /dev
tmpfs 199M 21M 179M 11% /run
/dev/mapper/system-root 19G 9.9G 7.5G 57% /
/dev/mapper/system-usr 19G 2.0G 16G 12% /usr
tmpfs 995M 0 995M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 995M 0 995M 0% /sys/fs/cgroup
/dev/mapper/system-home 4.5G 9.4M 4.3G 1% /home
/dev/mapper/system-tmp 922M 1.2M 857M 1% /tmp
/dev/sda2 237M 175M 50M 78% /boot
/dev/sda1 511M 9.3M 502M 2% /boot/efi
/dev/mapper/system-var 135G 126G 3.9G 98% /var
cgmfs 100K 0 100K 0% /run/cgmanager/fs
//172.10.2.2/c$/inetpub/mailroot/Queue 140G 95G 46G 68% /mnt/QueueEmails
tmpfs 199M 0 199M 0% /run/user/0
tmpfs 199M 0 199M 0% /run/user/1004

Comando "lvdisplay":

--- Logical volume ---
LV Path /dev/system/home
LV Name home
VG Name system
LV UUID MzVAxF-9LKK-vMJo-cWi9-2GlH-p1SR-f5j1dY
LV Write Access read/write
LV Creation host, time ALOGRJ201, 2014-09-11 19:40:40 -0300
LV Status available
# open 1
LV Size 4.66 GiB
Current LE 1192
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:3

--- Logical volume ---
LV Path /dev/system/root
LV Name root
VG Name system
LV UUID mcamH8-SrdU-4Rsq-s2wo-hI7f-AfXc-Z7C3M4
LV Write Access read/write
LV Creation host, time ALOGRJ201, 2014-09-11 19:41:09 -0300
LV Status available
# open 1
LV Size 18.62 GiB
Current LE 4768
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0

--- Logical volume ---
LV Path /dev/system/swap
LV Name swap
VG Name system
LV UUID 0sieDn-hVPS-nxc1-MZOY-2JQp-6PM2-Z00FKK
LV Write Access read/write
LV Creation host, time ALOGRJ201, 2014-09-11 19:41:39 -0300
LV Status available
# open 2
LV Size 3.72 GiB
Current LE 953
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1

--- Logical volume ---
LV Path /dev/system/tmp
LV Name tmp
VG Name system
LV UUID wbwkuA-0jvD-cV4y-40M2-J5bm-x2OM-ocxc4L
LV Write Access read/write
LV Creation host, time ALOGRJ201, 2014-09-11 19:42:13 -0300
LV Status available
# open 1
LV Size 952.00 MiB
Current LE 238
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:4

--- Logical volume ---
LV Path /dev/system/usr
LV Name usr
VG Name system
LV UUID G0p99H-eCzK-x6xq-k5fm-spXx-fjA2-jbsNIU
LV Write Access read/write
LV Creation host, time ALOGRJ201, 2014-09-11 19:42:36 -0300
LV Status available
# open 1
LV Size 18.62 GiB
Current LE 4768
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2

--- Logical volume ---
LV Path /dev/system/var
LV Name var
VG Name system
LV UUID u2AvhE-HUHv-D1za-me0t-J8kb-1nfG-p4mWJ9
LV Write Access read/write
LV Creation host, time ALOGRJ201, 2014-09-11 19:42:59 -0300
LV Status available
# open 1
LV Size 137.25 GiB
Current LE 35136
Segments 4
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:5

Comando "vgs":

VG #PV #LV #SN Attr VSize VFree
system 2 6 0 wz--n- 199.25g 15.45g

Comando "lvs":
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home system -wi-ao---- 4.66g
root system -wi-ao---- 18.62g
swap system -wi-ao---- 3.72g
tmp system -wi-ao---- 952.00m
usr system -wi-ao---- 18.62g
var system -wi-ao---- 137.25g

Comando"ncdu" no /var:

--- /var -------------------------------------
24.4 GiB [##########] /lib
267.3 MiB [ ] /cache
25.8 MiB [ ] /log
9.3 MiB [ ] /backups
28.0 KiB [ ] /spool
20.0 KiB [ ] /www
e 16.0 KiB [ ] /lost+found
e 4.0 KiB [ ] /tmp
e 4.0 KiB [ ] /opt
e 4.0 KiB [ ] /mail
e 4.0 KiB [ ] /local
e 4.0 KiB [ ] /crash
4.0 KiB [ ] /agentx
@ 0.0 B [ ] lock
@ 0.0 B [ ] run


Alguem tem alguma ideia do que pode estar ocupando os outros 100G do /var?




  


2. Re: Partição acusando espaço - LVM /var

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 09/04/2018 - 15:56h

instala o ncdu
e depois

ncdu /var


3. Re: Partição acusando espaço - LVM /var

Leonardo Soares da Silva
LeytorXD

(usa Debian)

Enviado em 09/04/2018 - 16:49h

Esqueci de postar o retorno desse comando.
Aqui vai:
--- /var ----------------------------------

24.4 GiB [##########] /lib
267.3 MiB [ ] /cache
25.8 MiB [ ] /log
9.3 MiB [ ] /backups
28.0 KiB [ ] /spool
20.0 KiB [ ] /www
e 16.0 KiB [ ] /lost+found
e 4.0 KiB [ ] /tmp
e 4.0 KiB [ ] /opt
e 4.0 KiB [ ] /mail
e 4.0 KiB [ ] /local
e 4.0 KiB [ ] /crash
4.0 KiB [ ] /agentx
@ 0.0 B [ ] lock
@ 0.0 B [ ] run







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts