I am having an issue here with CentOS release 6.6 (Final) that shows all of the space used up, but I can't tell where the space went.
Seemingly I am using up 100%, according to
So that's 49G out of 50G, fair enough, but when I try to see what exactly is being used (x to remove mounts):
That's all, these are the 2 biggest directories, all others combined are under 1G.
Here is info on Disk /dev/mapper/vg_sugar-lv_root, it does show close to 50G (this is a virtual machine):
Node count is at 7%:
The system was rebooted several times, so any log files should've been deleted. I'd appreciate some tips in resolving this.
returned only a single file. The problem is not in amount of large files, but that the space is hidden or used for something else, or not released.
Last edited by Neo; 09-19-2019 at 01:00 AM..
Reason: Added icode tags to discussion
> Rebooting does not automatically delete log-files on normally configured Linux systems., FYI.
What does, then?
--- Post updated at 06:47 PM ---
Quote:
Originally Posted by Neo
Rebooting does not automatically delete log-files on normally configured Linux systems., FYI.
What steps should I take to delete log files or reclaim the space, then?
--- Post updated at 07:02 PM ---
Quote:
Originally Posted by MadeInGermany
Refine your search for smaller files, recently updated:
Search for deleted files:
returned no entries
shows file on /dev/zero only
returned some entries
I deleted those files, freed up 100 Mbs, but the MySQL is not starting, reporting
190826 11:00:55 InnoDB: Started; log sequence number 0 8747645
190826 11:00:55 [ERROR] /usr/libexec/mysqld: Error writing file '/var/run/mysqld/mysqld.pid' (Errcode: 28)
190826 11:00:55 [ERROR] Can't start server: can't create PID file: No space left on device
Ensure with
that it is empty and on the / filesystem.
A command to find the biggest directories in the / file system:
The following has no precise space count but ensures to not enter other filesystems:
Ensure with
that it is empty and on the / filesystem.
A command to find the biggest directories in the / file system:
The following has no precise space count but ensures to not enter other filesystems:
I made sure that ls /var/run/mysqld is empty, and df /var/run/mysqld is on /
Is it normal for /mnt/backup to show? I thought -x in xdev would exclude external file systems?
I've attached find.txt to this message with the output.
Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Posts: 19,118
Thanks Given: 2,351
Thanked 3,359 Times in 1,878 Posts
DannyBoyCentOS,
You will benefit from thinking about what you are saying about log files.
Code:
Neo: Rebooting does not automatically delete log-files on normally configured Linux systems., FYI.
DannyBoyCentOS: What does, then?
Any system which would automatically delete log files on reboot would be a seriously misconfigured system.
Log files are the single most important tool any system administrator has to deal with configuration errors, security breaches, system errors, access control issues, database errors, and more.
Without logging "all is lost".... as one might say, so no normally configured Linux system automatically deletes a single log file during the boot process. When you post like this, an experienced Linux user like me (over two decades of Linux system admin) can only conclude you have very little experience on a server. So let me explain to you again.
Log files should never be automatically deleted on reboot because that means anytime the system reboots, all that logging information would be lost; and a server can reboot for a variety of reasons. Log files are generally rotated and compressed and saved by the system; and then they are generally archived for a certain period of time, and then eventually deleted manually. The could be deleted automatically after some set period of time, but that should normally be a few weeks out (actually it depends on the size of storage, system criticality, system usages and other site specific factors).
In your output, the big files I see are (mysql) dump files and backups. These are not log files, they are backups and dumps. Normally these files can get very big very quickly and need to be actively managed. I manage these on my servers by moving them to an archive site (generally another servers for that specific server); but how you choose to do that is entirely up to you.
Based on what I have seen in your output so far (which admittedly I did not spend too much time on it), the big files you have are .sql and .zip files. If you need disk space, move these to another disk, another server, the cloud or where ever you archive your large files, dumps and backups; and then decide what to keep and what to delete.
Hello
I recently received a request to reclaim hard disks and IP addresses within an AIX system(s). THe file systems are no longer in use and the client has indicated that it is OK to remove them and reclaim the disks and release the IP's. Now, since the file systems belong to a Volume group I... (8 Replies)
Dear Linux Experts,
On my windows 7 desktop with the help of Vmware workstation (Version 7.1),
created virtual machine and installed Centos 5.7 successfully using ISO image.
Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Hi. My "/usr" folder is running out of space. My "/home" folder is quite large and has a lot of free space. As follows:
Filesystem Type Size Used Avail Use% Mounted on
...
/dev/sda5 ext3 9.7G 2.6G 6.7G 28% /
/dev/sda7 ext3 152G 16G 128G 11% /home
/dev/sda3 ... (7 Replies)
Hi,
i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :-
1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
1057 ls -l /root/myswapfile
1058 chmod 600 /root/myswapfile
1059 mkswap /root/myswapfile
1060 swapon /root/myswapfile
... (1 Reply)
Hi, I have written a script and placed in an application and the script can be executed manually only. But somehow one of the method in the script is being called and bringing the application down. But we are not able to find any instance of script running.
Is there a way to findout whether the... (1 Reply)
Recently I was on an operational call and heard the people running my code placing the code in the /tmp directory and running as root. I had not planned on that. So I want to add some checks to my code (using ksh93):
# ---------- ---------- ----------
# root not allowed to run this
#... (3 Replies)
I have a disk space issue on one of my unix servers.
it is showing 98% full.. i found the offending folder and removed it. but i have not reclaimed the disk space.
is there another command that i need ?
thank you in advance for any assistance. (4 Replies)
hi,
I have a SCO unix server which has a 36gb hard drive, but the IT company who supplied it assigned 1gb to /dev/root, 15mb to /dev/boot and 33gb to /dev/u.
The /dev/root partition is now full, is there a way I can use the 33gb assigned to /dev/u without loosing any data, preferably... (2 Replies)