Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have read the past mails on kcore, and I understand that it is a virtual file, not really there. The problem is that my file system is full. Here is my df -H :
As you can see sda3 is full. Unfortunately the past mails never really explained how to get rid of this problem.
I am a novice as a manager -- I am terrified of anything that goes wrong even on my simple workstation. I use RHEL.
I shut the machine down and restarted thinkign that might solve the problem, but instead it would not let me logon as my username, and so I am having to logon as root -- not a healthy option.
The question is how can (1) I trace how the sda3 disk became full? I was actually downloading some free software (Portland fortran compiler, pgf90, as it happens) which I had done before only 2 weesk ago. I do not know what I did but now I cannot do anything as my username.
(2) How can I find out where and what files are taking up the extra space?
(3) How can I delete these and restore to my normal functionality?
(4) While I am at it, what commands are there that can give a finer breakdown of the files kept on sda3,sda2 etc -- at the moment I do not know where to search?
(5) Any other advice.
(1) 'find' can be used to find files of X size or larger
'du -ckx' (or any variant you choose) can be used to walk the root ( / ) filesystem to find the directories. 'du' method is more of a manual process that you walk it but can be "automated"
for example will find all files larger than 500MB and print their location.
(3) after identifying them and deciding if they are something you can do without just use 'rm' to remove/delete the file(s)
(4) 'find' ?
(5) if you are unable to login to usual runlevel boot then you should try booting to Single-User (or runlevel 1) by passing the kernel option via your bootloader (?grub?) by editing the kernel line and adding ' S'.
In fact, I have already made space by deleting unwanted files and also archiving some others to an external hard drive. So now I can logon as username at least.
Are these *.iso important files, or can they be deleted?
But I am still puzzled as to what is happening -- it is as if some massive file somewhere, either in my hard disc, or RAM or somewhere else is taking up 11GB. Why can't I see it and simply delete it?
if you are referring to /proc/kcore it is not an issue. nothing in /proc consumes on-disk storage, it is just your window into the kernel, so to speak.
if it is on-disk storage you are lacking then looking under root [sda3] (since that is your problem mount related to this post) is where you should focus.
as far as the ISOs, it really is your call if they are something you should keep around or not. Even if you keep the installation media around in ISO form, it has been my experience that most individuals do not need the source disks/ISOs. those ISOs (*-source-*) contain the .src.rpm packages that RH used to build the RPMs used on the installation media.
if you are referring to /proc/kcore it is not an issue. nothing in /proc consumes on-disk storage, it is just your window into the kernel, so to speak.
if it is on-disk storage you are lacking then looking under root [sda3] (since that is your problem mount related to this post) is where you should focus.
as far as the ISOs, it really is your call if they are something you should keep around or not. Even if you keep the installation media around in ISO form, it has been my experience that most individuals do not need the source disks/ISOs. those ISOs (*-source-*) contain the .src.rpm packages that RH used to build the RPMs used on the installation media.
So would I be correct in summarising that there isn't actually a problem? I have just come to the natural size of by disk space on sda3? I had thought that it was a system crash or I had done something inadvertently.
On the *.iso files: I do not want to keep them unecessarily if they are not actively used in any way -- so what are they ever useful for, or are they just for record keeping. What about when you upgrade, like I am planning an upgrade to RHEL5.0 soon -- would I need these files then?
What about updates, are these files used then?
Instead of deleting them, can I tar them, or move them somewhere else, say on to an external hard disc? I presume I could bring them back and use them if I ever needed them?
yeah, i've seen several posts previously about cause for alarm regarding a crash by the presence of /proc/kcore; it's a "naturally" present file and no cause for alarm.
they (the source ISOs) are useful if you want to compile your own RPMs using the templates (spec file) that RH used.
the ISOs are available from RHN.RedHat.com if you have an account (or you can create an eval account for a 30-day eval). You shouldn't need them for an update/upgrade either.
I would say they are your's to do with as you please. If you would like the security of knowing you have them somewhere in the event you ever have a need to obtain something from them then absolutely you are welcome to copy them to an external drive (cp, tar, whatever).
yeah, i've seen several posts previously about cause for alarm regarding a crash by the presence of /proc/kcore; it's a "naturally" present file and no cause for alarm.
they (the source ISOs) are useful if you want to compile your own RPMs using the templates (spec file) that RH used.
the ISOs are available from RHN.RedHat.com if you have an account (or you can create an eval account for a 30-day eval). You shouldn't need them for an update/upgrade either.
I would say they are your's to do with as you please. If you would like the security of knowing you have them somewhere in the event you ever have a need to obtain something from them then absolutely you are welcome to copy them to an external drive (cp, tar, whatever).
I have read the past mails on kcore, and I understand that it is a virtual file, not really there. The problem is that my file system is full. Here is my df -H :
As you can see sda3 is full. Unfortunately the past mails never really explained how to get rid of this problem.
I am a novice as a manager -- I am terrified of anything that goes wrong even on my simple workstation. I use RHEL.
I shut the machine down and restarted thinkign that might solve the problem, but instead it would not let me logon as my username, and so I am having to logon as root -- not a healthy option.
The question is how can (1) I trace how the sda3 disk became full? I was actually downloading some free software (Portland fortran compiler, pgf90, as it happens) which I had done before only 2 weesk ago. I do not know what I did but now I cannot do anything as my username.
(2) How can I find out where and what files are taking up the extra space?
(3) How can I delete these and restore to my normal functionality?
(4) While I am at it, what commands are there that can give a finer breakdown of the files kept on sda3,sda2 etc -- at the moment I do not know where to search?
(5) Any other advice.
Thank you.
Desparately yours,
On my system I'm using jfs-file system not native ext*. When disk was completely full and I get the message 'no disk space'.
I tried to remove 'rm' very big file but it does'nt work. I have to
restart and after that 'rm' was OK.
When I see 91% used I remove something to 90% or 89%.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.