- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: no space left on the device
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 08:40 AM
тАО12-01-2009 08:40 AM
no space left on the device
I'm using one of my machines for backup purposes only. There is one directory that holds the backups, scripts and logs. I called it /files. This directory is only 36GB in size so I don't get where is the missing 22GB ?
backup:/files# du -sh /files/
36G /files/
df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 3842048 78875 3763173 3% /
tmpfs 64537 6 64531 1% /lib/init/rw
udev 64537 1069 63468 2% /dev
tmpfs 64537 1 64536 1% /dev/shm
//10.15.3.1/data 0 0 0 - /mnt/PDM
//10.15.3.6/backup 0 0 0 - /mnt/bac001bri
//GDSBS/BACKUP/ 0 0 0 - /mnt/BACKUPgdsbs
//10.15.3.5/os43 rt 0 0 0 - /mnt/QUBE
df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 58G 58G 0 100% /
tmpfs 253M 0 253M 0% /lib/init/rw
udev 10M 568K 9.5M 6% /dev
tmpfs 253M 0 253M 0% /dev/shm
//10.15.3.1/data 256G 62G 195G 25% /mnt/PDM
//10.15.3.6/backup 2.8T 1.2T 1.6T 45% /mnt/bac001bri
//GDSBS/BACKUP/ 137G 35G 103G 26% /mnt/BACKUPgdsbs
//10.15.3.5/os43 rt 256G 16G 240G 7% /mnt/QUBE
backup:/# du -h |grep '^[0-9]*G'
...
35G /files/Projects
36G /files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 10:21 AM
тАО12-01-2009 10:21 AM
Re: no space left on the device
According to your output, /files is under the / filesystem (sda1) and it's 100% used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 10:45 AM
тАО12-01-2009 10:45 AM
Re: no space left on the device
/files = 36G /files
So 58GB - 36GB = 22GB
backup:/# ls |sort
bin
boot
cdrom
dev
etc
files
home
initrd.img
lib
lost+found
media
mnt
opt
proc
root
save
sbin
selinux
srv
sys
tmp
usr
var
vmlinuz
du -sh /bin/
4.1M /bin/
backup:/# du -sh /boot
8.6M /boot
backup:/# du -sh /dev/
568K /dev/
backup:/# du -sh /etc/
5.0M /etc/
backup:/# du -sh /files
36G /files
backup:/# du -sh /home
36K /home
backup:/# du -sh /initrd.img
0 /initrd.img
backup:/# du -sh /lib/
68M /lib/
backup:/# du -sh /lost+found/
16K /lost+found/
backup:/# du -sh /media/
12K /media/
backup:/# du -sh /opt/
4.0K /opt/
backup:/# du -sh /proc/
du: cannot access `/proc/13909/task/13909/fd/4': No such file or directory
du: cannot access `/proc/13909/task/13909/fdinfo/4': No such file or directory
du: cannot access `/proc/13909/fd/4': No such file or directory
du: cannot access `/proc/13909/fdinfo/4': No such file or directory
0 /proc/
backup:/# du -sh /root/
76K /root/
backup:/# du -sh /save/
8.0K /save/
backup:/# du -sh /sbin/
3.6M /sbin/
backup:/# du -sh /selinux/
4.0K /selinux/
backup:/# du -sh /srv/
4.0K /srv/
backup:/# du -sh /sys/
0 /sys/
backup:/# du -sh /tmp/
20K /tmp/
backup:/# du -sh /usr/
549M /usr/
backup:/# du -sh /var/
213M /var/
backup:/# du -sh /vmlinuz
0 /vmlinuz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 11:18 AM
тАО12-01-2009 11:18 AM
Re: no space left on the device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 03:23 PM
тАО12-01-2009 03:23 PM
Re: no space left on the device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 04:25 PM
тАО12-01-2009 04:25 PM
Re: no space left on the device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:26 PM
тАО12-01-2009 06:26 PM
Re: no space left on the device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:50 PM
тАО12-01-2009 06:50 PM
Re: no space left on the device
The issue, if I recall correctly, is that a file can be held open, but deleted underneath the open() syscall. While the link count is dropped to 0, the links to the blocks haven't been cleared in the filesystem yet. This explains the discrepancy between 'df' which reads the filesystem metadata to give you a count of blocks, while 'du' actually crawls the filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 09:15 PM
тАО12-01-2009 09:15 PM
Re: no space left on the device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2009 12:02 AM
тАО12-02-2009 12:02 AM
Re: no space left on the device
ls -l /proc/*/fd | grep '(deleted)'
I leave it up to you to expand on this (i.e. pipe to awk/sed/whatever and print filename only, then pipe to "xargs du ...").
Regards,
Goran