1833781 Members
2435 Online
110063 Solutions
New Discussion

disk full ?

 
Gary Yu
Super Advisor

disk full ?

Hi all,

In one of our HPUX11.0 servers, I have a home directory which is 8GB, and 'bdf' or 'df' shows it stil has some 0.5GB free space:
/dev/vg00/lvol5 8192000 7587826 584409 93% /home

but dmesg shows the file system is full:
vxfs: mesg 001: vx_nospace - /dev/vg00/lvol5 file system full (8 block extent), same message also shows up in syslog.

why it can't utilize the rest of the file system?

thanks,
Gary
7 REPLIES 7
Sridhar Bhaskarla
Honored Contributor

Re: disk full ?

Hi Gary,

You have 600MB free and what you are seeing is the snapshot of the current usage. The messages in dmesg and syslog might be earlier messages. Those errors might have generated when users try to add more than 600MB of data and then deleted them due to the filesystem full messages.

To verify, try to copy 200MB data into the /home directory while the free space is still at 600MB and see if you get the messages.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: disk full ?

Because you have a process running that still has the file descriptor open. The file has been unlinked (removed from directory) but until all processes which have a file open either close the file or the processes die, the space is not actually freed. You can use lsof or fuser to determine which processes are involved.
If it ain't broke, I can fix that.
Gary Yu
Super Advisor

Re: disk full ?

Thanks Sri for the quick respons, actually, it happened all the time, it's one of our dev server, developers are using Samba, when they try to add files (very small one) and they got message said no enough space, and I got the same error from dmesg. But strange thing is, I can create new files (70MB) directly from the server.

Is it something about Samba?
Hai Nguyen_1
Honored Contributor

Re: disk full ?

Gary,

You received the message because the filesystem threshold might be set to 90%.
Hai
Sridhar Bhaskarla
Honored Contributor

Re: disk full ?

Hi Gary,

I have not seen HP-UX generating these messages unless the filesystem is literally at 100% and there are not blocks available to write to. So, the errors that you saw were genuine and the filesystem was at 100% that time.

I would suggst the following. Keep two windows on the server open. In one window do

$while [ true ]
>do
>bdf /home
>done

In the other session

$tail -f /var/adm/syslog/syslog.log

Then let your developers try to write a small file through samba and see what you observe in both the windows.

It may be a samba thing but I don't know much about the internals of samba processes.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Nesan
Advisor

Re: disk full ?

Hi Gary,

Please take a look at the time entry( when File system full - message generated) in the syslog.log file.

bdf and df shows current status.

Some programs ( executed by users )might have generated more than 600 mb temporarily and deleted. Or some programs would have died and deleting temporary file.

Most probably this might be case.


Everything you don't know is an opportunity to learn
Steven E. Protter
Exalted Contributor

Re: disk full ?

You may have deleted a file, but if the process that created it is still open, the space is still on hold.

fuser -cu /home

kill processes one at a time or with

fuser -cuk /home

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com