Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7418049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:48:45+00:00 2026-05-29T07:48:45+00:00

This question concerns Postgresql 8.3. I cannot yet create tags so Ichose version 8.4

  • 0

This question concerns Postgresql 8.3. I cannot yet create tags so Ichose version 8.4 as tag.

It’s a test server, but I cannot connect to it because after some days of intensive use the disk where Postgres resides, is full. Becaues I the RDBMS cannot start, I cannot do a vacuum.

On rebooting, the system says,

Starting PostgreSQL 8.3 database server: mainThe PostgreSQL server failed to sta
rt. Please check the log output: FATAL: could not write lock file "postmaster.pi
d": No space left on device failed!
 failed!

Linux works alright and has enough free disk space. Postgresql has its own partion mounted on /var/lib/ and has zero free bytes.

I think I should free some space before I can restart the database server, but I don’t know which files to delete. The log files are not on the same partition, so it won’t help to empty them. Can anybody help me on this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:48:46+00:00Added an answer on May 29, 2026 at 7:48 am

    pg_log can be cleared it is for regular logs for admins
    Don’t delete the pg_xlog or pg_clog directories as they are for database internals (treat them as you would the data files in base). Removing them can cause problems restarting even if you have the space.

    The process I’d try (after taking a backup) is:

    Find a directory under the /var/lib/pgsql tree that is quite big, but not so big that it can’t be copied to another filesystem. It doesn’t have to be the whole base directory etc, it could be a subdirectory within there.

    Copy the contents of that directory (including any subdirectories) to another file system.

    Remove the old directory and then create a symbolic link where the old directory was to the new location.

    Startup the database and VACUUM FULL (or now you have access, or you can just drop a db if you’ve got a database you can live without).

    Shutdown the database.

    Remove the symbolic link, and move the files back onto the var/lib filesystem again.

    The fact you can’t take a filesystem backup would make me a bit loath to do it in your environment though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Sqlite3 with Flask microframework, but this question concerns only the Sqlite
I am aware of this question , but I believe my concerns are very
I have a question that is similar to this question , but mine concerns
This question concerns running python files in terminal that are not stored in the
My question concerns the output of this statement: for x in range(4), y in
I know this question has been asked here before, but I don't think those
This question concerns the reflection mechanisms of the java programming language. I have an
I'm sure this question may seem foolish to some of you, but I'm here
This question concerns generics and types as well as datatables. The following snippet is
This question is language agnostic but I am a C# guy so I use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.