Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #204039
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Upgrade Problem |
| Date | 2019-01-04 22:20 +0100 |
| Message-ID | <xcF2O-5gm-25@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <xcAPv-2Ad-1@gated-at.bofh.it> <xcAZc-2Dx-3@gated-at.bofh.it> <xcB8S-2W9-19@gated-at.bofh.it> <xcBiy-2Zh-9@gated-at.bofh.it> <xcEzM-4QW-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Jan 04, 2019 at 02:39:40PM -0600, David Wright wrote: > > There's at least one other scenario that it would be worth eliminating > by checking that this equation is true (allowing for filesystem overheads): > > # du -shx > + > $ df's Available > ≃ > partition's size. > > This checks whether the mountpoints for /var and so on had files in > them before the partitions were mounted. These files would consume > filespace but not be detected by du. > It might also indicate files that exist (i.e., occupy blocks) without having directory entries. For example, this is the case when a program creates a temporary file, gets the descritor back from the syscall, then immediatley calls unlink on it. The file descriptor is still active and the file can be written/read with the descriptor reference, but the file cannot be seen with 'ls' and, as I recall, it will not show up in the calculation made by 'du'. The calculation made by 'df' will still be accurate, though. So, you might ask yourself, why would a program create a file only to immediately unlink it? Well, it happen that if the program terminates abnormally (i.e,. crashes), the disappearance of the reference to the file descriptor when the kernel cleans up the process table also causes it to free the associated blocks. The same thing happens in a normal program termination, but in the abnormal case you have no guarantee that any clean up code will run. As it happens, this is a great practical interview question for a system administrator. Give them a machine where 'df' reports no free space but 'du' says it is not all used up and see if they know why that might be the case and how to resolve it. Regards, -Roberto -- Roberto C. Sánchez
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Upgrade Problem "Stephen P. Molnar" <s.molnar@sbcglobal.net> - 2019-01-04 17:20 +0100
Re: Upgrade Problem steve <dlist@bluewin.ch> - 2019-01-04 17:50 +0100
Re: Upgrade Problem Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2019-01-04 18:00 +0100
Re: Upgrade Problem David Wright <deblis@lionunicorn.co.uk> - 2019-01-04 18:10 +0100
Re: Upgrade Problem Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2019-01-04 18:20 +0100
Re: Upgrade Problem David Wright <deblis@lionunicorn.co.uk> - 2019-01-04 21:50 +0100
Re: Upgrade Problem Roberto C. Sánchez <roberto@debian.org> - 2019-01-04 22:20 +0100
Re: Upgrade Problem songbird <songbird@anthive.com> - 2019-01-04 23:10 +0100
Re: Upgrade Problem Michael Stone <mstone@debian.org> - 2019-01-04 23:40 +0100
Re: Upgrade Problem songbird <songbird@anthive.com> - 2019-01-05 15:50 +0100
Re: Upgrade Problem <tomas@tuxteam.de> - 2019-01-05 10:20 +0100
Re: Upgrade Problem David Wright <deblis@lionunicorn.co.uk> - 2019-01-05 02:10 +0100
Re: Upgrade Problem songbird <songbird@anthive.com> - 2019-01-04 23:10 +0100
Re: Upgrade Problem Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2019-01-04 18:10 +0100
Re: Upgrade Problem Roberto C. Sánchez <roberto@debian.org> - 2019-01-04 18:20 +0100
Re: Upgrade Problem "Stephen P. Molnar" <s.molnar@sbcglobal.net> - 2019-01-04 19:00 +0100
Re: Upgrade Problem Felix Miata <mrmazda@earthlink.net> - 2019-01-04 19:20 +0100
Re: Upgrade Problem "Stephen P. Molnar" <s.molnar@sbcglobal.net> - 2019-01-04 20:10 +0100
Re: Upgrade Problem Brian <ad44@cityscape.co.uk> - 2019-01-04 22:10 +0100
Re: Upgrade Problem David Wright <deblis@lionunicorn.co.uk> - 2019-01-05 02:30 +0100
Re: Upgrade Problem Felix Miata <mrmazda@earthlink.net> - 2019-01-05 04:20 +0100
Re: Upgrade Problem Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2019-01-05 10:30 +0100
Re: Upgrade Problem rhkramer@gmail.com - 2019-01-05 16:30 +0100
Re: Upgrade Problem John Crawley <john@bunsenlabs.org> - 2019-01-07 04:00 +0100
Re: Upgrade Problem mick crane <mick.crane@gmail.com> - 2019-01-08 15:40 +0100
Re: Upgrade Problem songbird <songbird@anthive.com> - 2019-01-04 19:30 +0100
csiph-web