Does unix ever misreport free space?


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Does unix ever misreport free space?
# 1  
Old 08-12-2004
Does unix ever misreport free space?

Hi all,

Does unix ever misreport free space? We're having a problem running a utility, and the error message looks for all the world like the utility has no free space for its work files:

HOST ERROR(D10681C). No space left on device.

But the device itself shows ample free space.

I know that VMS drives (or controllers?) will occasionally show that they have more free space than they actually have; I wondered if any of you have had the same experience with unix.

I'm asking you folk because I need ammunition: my system administrator flatly refuses to even entertain the idea, and my users are wondering what's been going on the last few days.

Thanks!

JustKen
# 2  
Old 08-13-2004
Hmm.... Could there be disk quotas in place on your system? Try repquota -v filesystem where filesystem should be replaced (obviously) with something like /tmp. repquota -av will report on all filesystems. To check your own quota, run "quota -v".

I doubt if it's this, but I know that there is a "minfree" value associated with certain UNIX filesystems (which OS are you using?).

This value is normally set to 10% (at least it is under HP-UX), and this space will not be available for use by users. It can be adjusted with tunefs. Lowering the value can reclaim space, but at the con of lowering throughput on the device.

You can check the current setting with "tunefs -v /dev/vg01/lvol1" where /dev/vg01/lvol1 should be replaced with whatever device you're checking.

On our system, we sometimes reduce minfree to 5% when we are backing up our databases, and then increase back to it 10% once the data has been archived off the disk.
# 3  
Old 08-13-2004
Well, never say never and all, but I think it would be extremely unlikely that Unix would report the free space on a filesystem wrong. The only time I've ever seen that is when somebody has deleted a file but a process had a lock on the file. So some utilities would see that the space was available since the inodes were freed, but others wouldn't since the process still claimed to be using the space. As soon as the process died (or you rebooted if the process was a zombie) they got back in sync.

My guesses as to why you are seeing that problem are (in roughly the order of likelyhood I expect)

1. The utility is using way more disk than you expect while it is running. It could be a case where when the utility is done it cleans up most of the space it used, but while running it doesn't have enough for its temp files and so on.

2. Quotas are in place (agree with ZB on that)

3. If you're using a volume manager like Veritas, some kind of configuration problem means the filesystem is smaller than the volume or something like that, so when you check the device it has room but the filesystem itself has run out of space.

4. The minfree setting. ZB mentioned that too above, but I doubt it is the problem. The reason is, for Solaris which I know best at least, only root can see the actual size. If you are checking space as a normal user it only shows you what is available not including that "padding" from minfree. So when your users check and see free space that means the space is free below the minimum cap and thus that shouldn't be an issue. But if all else fails you could try reducing minfree and see if that helps.

Good luck.
# 4  
Old 08-14-2004
I remembered encounting a problem when I do a df -k as a normal user, I see x number of digits. When I do the same as root, I see x+1 number of digits.
Upon invetigation, i noticed some of the huge directories have 700 as the permission. I guess that could be the reason. It might be also due to the overflowing digit in df -k i guess....
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Fedora

Need to incrwase PHYSICAL VOLUME space on hard drive with free space on it

Hi, I run Fedora 17. I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group. I need to add the 30GB of free space... (1 Reply)
Discussion started by: mojoman
1 Replies

2. Solaris

No space left on device but free space and inodes are available...

hi guys, me again ;) i recently opened a thread about physical to zone migration. My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone. We are talking about 22mio of files. i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies

3. Red Hat

How do i find free space in my unix?

Hello, I wanted to calculate free space in my unix file system. Here is my direction. I can use df -h command to get the below output. Filesystem Size Used Avail Use% Mounted on =================================================== /dev/vx/dsk/edcdg/data01vol ... (9 Replies)
Discussion started by: govindts
9 Replies

4. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

5. UNIX for Dummies Questions & Answers

free space, used space in ftp

Is possible to see how much available space there is on a ftp server and how much is used through ftp ? how ? free space: used space: thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies

6. Solaris

how to get the more memory free space (see memory free column)

Hi all, Could please let me know how to get the more memory free space (not added the RAM) in local zone. -bash-3.00# vmstat 2 5 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr s0 s1 s1 s1 in sy cs us sy... (3 Replies)
Discussion started by: murthy76
3 Replies

7. Solaris

vxfs free space?

Hi, How do I determine the free space below? # vxdg -g msb_db_dg free DISK DEVICE TAG OFFSET LENGTH FLAGS msb_db_dg01 sdb sdb 312475648 316571392 n Thanks! (1 Reply)
Discussion started by: itik
1 Replies

8. UNIX for Dummies Questions & Answers

How to find the free space & usage of the particular directory in Hp-Unix?

How to find the free space & usage of the particular directory in Hp-Unix? I want to see the usage in % (2 Replies)
Discussion started by: bobprabhu
2 Replies

9. Shell Programming and Scripting

display free space on a unix server

I need to display the amount space avalible on a unix server in an html webpage, which will automatically update every hour. I am able to do so using a javascript in a windows based server. How would i go about doing this in a unix server. Any help, suggestions, anything would be great. thanks. (3 Replies)
Discussion started by: davwel
3 Replies
Login or Register to Ask a Question