|
|
#1 (permalink) |
|
Untangler
Join Date: Jan 2009
Posts: 92
![]() |
Hello guys, I've a problem with an UT box: we have some computers with conficker at our network. While cleaning them, UT has been great stoping packets reaching the internet but it was consuming all the disk.
In a similar problem months ago I was instructed how to resolve it droping the events schema in the UT database. It worked well that time, but at a newer version it just crashed the system and had to recreate tables manually copying schema from another box. So, now I tried to delete the registers from n_firewall_evt and the UT closed the connection with this message: "PANIC: could not write to file "pg_xlog/xlogtemp.17177": No space left on device" It's still working (I'm writing this tru it) but when I try to connect to the DB it sends this message: "psql: could not connect to server: No such file or directory" "Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?" Is there something I can delete to get some space without crashing the box? |
|
|
|
|
#2 (permalink) |
|
Untangle Junkie
![]() Join Date: Nov 2006
Location: San Mateo, CA
URLs submitted: 10
Posts: 6,694
![]() |
try deleting some stuff in /tmp/ or /var/log
some daemons have problems starting if theres no disk. although you should never really come close to using 80 gigs regardless. i'd figure out whats taking up the space - is it the database? something in var/log? |
|
|
|
|
#4 (permalink) |
|
Untangler
Join Date: Jan 2009
Posts: 92
![]() |
great dmorris, that gave the box some space to work, but eventually it will grow again, it's the database because the events, at this time I'm getting 700% of the packets being blocked against the ones passing.
Is safe to drop the events schema like in previous versions? dwasserman, that is the last resource ![]() |
|
|
|
|
#5 (permalink) |
![]() ![]() Join Date: Jul 2008
Posts: 1,468
![]() |
psql -u postgres uvm
vacuum verbose full; let 'er spin and then it should greatly reduce the amount of disk space required. I wrote up a longer version in the thread "hard disk slowly filling"
__________________
m. Big Frickin Disclaimer: While I'm pretty sure, I can't guarantee that I know what I'm doing. There might be a better way to do this, and this way might actually suck. Make sure you understand the implications of what you're doing before trying to follow these directions. It often helps troubleshooting if you have a good network map. Look here if you want my advice on how to draw one. |
|
|
|
|
#6 (permalink) |
|
Untangle Junkie
![]() Join Date: Nov 2006
Location: San Mateo, CA
URLs submitted: 10
Posts: 6,694
![]() |
i'd first verify that its the db taking up the space by running this:
sudo du -hs /var/lib/postgresql/ if the db is big, run mrunkel's command. it will force clean it up. for very large sites the auto-cleaning is working fully because a parameter is too low - that is changed in 7.2 - for now running that command should do it. |
|
|
|
|
#9 (permalink) |
|
Untangler
Join Date: Jan 2009
Posts: 92
![]() |
ii postgresql-8.3 8.3.8-0lenny1
object-relational SQL database, version 8.3 ii postgresql-client-8.3 8.3.8-0lenny1 front-end programs for PostgreSQL 8.3 ii postgresql-client-common 94lenny1 manager for multiple PostgreSQL client versi ii postgresql-common 94lenny1 PostgreSQL database-cluster manager ii untangle-postgresql-config 7.1.0~svn20090922r2454 4release7.1-1lenny Untangle Postgres wrapper package |
|
|
![]() |
| Thread Tools | |
|
|