Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
ED
Advisor

Different disk usage shown for /var/log in SmartConsole and CLI

Hi,

SmartConsole says that there is 20.44GB left for the /var/log

image.png

 

While command line says 8.3 GB left. 

image.png

Can someone please explain why it's shown different free space left?

 

 

0 Kudos
5 Replies
Nick_Doropoulos
Advisor

You might need to increase the lv_log partition via the LVM manager. Sks sk105509 and sk95566 might help.

0 Kudos
ED
Advisor

Could it be that it's because of the reserved backup partiton for System backup that has location  /var/log/CPbackup/backups?. Any way to find out how much is reserved for System backup?

0 Kudos
Nick_Doropoulos
Advisor

I was wondering, would I be righto assume that you used the df -h command to produce the output you have shared? If so, could you run the following command please and share the output:

df -h | grep -E "Size|/var/log"

Thanks.

0 Kudos
ED
Advisor

Yes, I was running the df -h command. 

Here is the output of what you requested:

image.png

 

0 Kudos
Nick_Doropoulos
Advisor

Thanks Ed,

I think we are getting somewhere now.

If you subtract the 216G used from the total size of the partition (238G) you should get 22G, closer to what the GUI indicates. Instead however you get 9.4G worth of disk space, leaving 12.6G unaccounted for. According to sk115862, the cause of the problem comes down to the design of the file system.

As a result, I would do the following as per sk115862 which seems to be quite relevant here:

  1. Check the allocated disk space in number of blocks (instead of TB/GB/KB) using the df -B command:

    [Expert@HostName:0]# df -B 4096

    Example:

    [Expert@HostName:0]# df -B 4096
    
    Filesystem           4K-blocks      Used Available Use% Mounted on
    /dev/mapper/vg_splat-lv_current
                          50786990   9815382  38350168  21% /
    /dev/sda1                73891     19612     50464  28% /boot
    tmpfs                  1029981         0   1029981   0% /dev/shm
    /dev/mapper/vg_splat-lv_log
                         330115223    334508 312741355   1% /var/log
    [Expert@HostName:0]#
  2. Calculate the number of reserved blocks:

    Subtract the (Used) and the (Available) from the total (4K-blocks).

    Example:

    Reserved = (Total) - (Used) - (Available) =
    (330115223) - (334508) - (312741355) = 17039360 blocks
  3. Verify the number of reserved blocks in the file system using the tune2fs command:

    [Expert@HostName:0]# tune2fs -l /dev/mapper/vg_splat-lv_log | grep '[Bb]lock \(count\|size\)'

    Example:

    [Expert@HostName:0]# tune2fs -l /dev/mapper/vg_splat-lv_log | grep '[Bb]lock \(count\|size\)'
    Block count:              340787200
    Reserved block count:     17039360
    Block size:               4096
    [Expert@HostName:0]#

I hope this helps.

0 Kudos