Results 1 to 6 of 6
  1. #1
    Untangler
    Join Date
    Mar 2020
    Location
    UK
    Posts
    90

    Default Disk consumption

    Good morning,

    My untangle install has chewed about 80GB of disk space, yet according to the log settings in the configuration it's using about 300mb for logging. Install has been running for prob 60 days

    What would be consuming all the space?

  2. #2
    Untangler
    Join Date
    May 2008
    Posts
    428

    Default

    If you have support call support. If you are a home user your support is here. Since we wont deny you if you use the command line.
    Code:
    [root @ homeuntangle] ~ # cd /                            
    [root @ homeuntangle] / # du -hs * | sort -h              
    du: cannot access 'proc/95778/task/95778/fd/4': No such file or directory
    du: cannot access 'proc/95778/task/95778/fdinfo/4': No such file or directory
    du: cannot access 'proc/95778/fd/4': No such file or directory
    du: cannot access 'proc/95778/fdinfo/4': No such file or directory
    0	bin
    0	initrd.img
    0	initrd.img.old
    0	lib
    0	lib32
    0	lib64
    0	libx32
    0	proc/
    0	sbin
    0	sys/
    0	vmlinuz
    0	vmlinuz.old
    4.0K	mnt/
    4.0K	opt/
    4.0K	srv/
    8.0K	media/
    16K	lost+found/
    24K	dev/
    168K	tmp/
    432K	root/
    32M	etc/
    67M	boot/
    71M	home/
    85M	run/
    2.3G	var/
    2.5G	usr/
    See what is out of line with mine. Assuming it is var.
    Code:
    [root @ homeuntangle] / # cd /var           
    [root @ homeuntangle] /var # du -hs * | sort -h
    0	lock
    0	run
    4.0K	local/
    4.0K	mail/
    4.0K	opt/
    32K	tmp/
    96K	spool/
    2.7M	backups/
    83M	www/
    301M	log/
    736M	cache/
    1.2G	lib/
    Repeat as required. Google might find better commands too.
    Last edited by donhwyo; 05-04-2021 at 07:10 AM.
    mikeyscott likes this.

  3. #3
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    9,731

    Default

    Reports is probably using all the space. What is the data retention set to in Apps -> reports -> data ?
    Attention: Support and help on the Untangle Forums is provided by
    volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  4. #4
    Untangler
    Join Date
    Mar 2020
    Location
    UK
    Posts
    90

    Default

    Quote Originally Posted by jcoffin View Post
    Reports is probably using all the space. What is the data retention set to in Apps -> reports -> data ?
    I'll look at that later when home. logs is set to 30 days.

  5. #5
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    26,236

    Default

    I'm using about 50gb of drive for 14 days of retention. It's very possible for an 80gb drive to not be enough.

    So assuming you have drive space left, all you need to do is set your retention as above to a smaller value, and wait until reports process and you'll get the drive space back. If you think you'll hit 0 free before reports runs in the middle of the night... you'll have to get manual. Zero bytes free on any database is how you corrupt databases. This is a catastrophic failure that will disable your Untangle!


    There is an Untangle script here: https://wiki.untangle.com/index.php/...r_Reports_Data

    That will do exactly what it says... dump all report data to nothing and force the drive space clear to get the system into a known safe place.

    If you prefer a softer approach, you can run this:

    Code:
    /usr/share/untangle/bin/reports-clean-tables.py -d "postgresql" 7
    Just change that 7 on the end to the number of days you want it to KEEP. And it'll nuke everything older than that, and crunch the DB down. So if I had your box, and retention was set to 30 days, I'd reset it to 14 days, and run the above with a 14 on the end. Assuming drive space is cleared to an acceptable level, you can now look at the dashboard for your total drive space you're using, and divide that by 14 to get the amount per day you're using. And turn retention back up to maximize duration. If you care to anyway! Otherwise just leave it and know that your storage needs probably aren't going to change much because you're at a steady state NOW. Something you can't do with the nuke and pave script. (And button coming in the next release)
    tjk and soldier like this.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  6. #6
    Untangler
    Join Date
    Mar 2020
    Location
    UK
    Posts
    90

    Default

    Quote Originally Posted by jcoffin View Post
    Reports is probably using all the space. What is the data retention set to in Apps -> reports -> data ?
    It was set at 60 days, which I hadn't adjusted. I've dropped it to 30 and will see what happens.

    Will SSH on later / tomorrow to see what the linux O/S reports etc. and consider the force clearing of data from the 120GB SSD drive.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2