Sponsored Content
Operating Systems HP-UX Unable to get full FS space after mounting Post 302881246 by rbatte1 on Friday 27th of December 2013 11:39:51 AM
Old 12-27-2013
Welcome

This is a common problem where the space is used by files that have been marked as deleted, but are still open by a process.

I'm guessing that you are using HP-UX, although it would be nice to know for sure.

The output from uname -a would be useful to know.

Basically, you may need to terminate the process holding all the space and then magically, your filesystem will free up the space held open by the process. Of course, finding the process may be difficult. The HPUX version that I have of fuser doesn't have the option for deleted files like AIX has, and I'm struggling with finding the same function in lsof

You could at least use:
Code:
/usr/sbin/fuser -c /home

and then work through the processes, terminating those that are not necessary and checking the space used after each one. This might give you a clue what has gobbled it all up too.

We had a server a while back that wrote a log file in /tmp that would grow slowly, however someone in their wisdom set up a daily cron job to empty /tmp and therefore we couldn't see the file growing - and of course, all the useful logging was unreadable too.


At worst, a reboot is likely to sort you out short-term, but the problem may well come back. It depends if you have a window to do so too.



I hope that this helps,
Robin
Liverpool/Blackburn
UK
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

file system is full : But df -k shows space available

Dear Experts, We are using Digital Unix 4.0d on Alpha DS-20 E. /var/adm/messages showed the following error Jul 24 19:58:37 cbehotbill2 vmunix: /BSCSprod: write failed, file system is full Jul 24 19:58:38 cbehotbill2 last message repeated 2 times But df -k showed BSCS_dmn#BSCSprod ... (4 Replies)
Discussion started by: geraldwilson
4 Replies

2. Linux

Unable to remove file using rm: Disk space is full

Hi all, My disk space is 100% full. df -k <dir> -> 100% One of my debug files consume huge amount of space and i want to remove the same to start off fresh debugs. However i'm unable to remove the file giving out the following error message: rm -f debug.out22621 rm: cannot remove... (8 Replies)
Discussion started by: Pankajakshan
8 Replies

3. Solaris

solaris 8 / disk space almost full

Hi All, My Solaris 8 firewall server is getting full on the / filesystem. I don't know which one should I delete. I think there's no more to delete on the file like logs or temp file. Does someone knows about deleting a safe file (or folder) on FS like /usr, /opt, /platform, /kernel, /sbin?... (7 Replies)
Discussion started by: itik
7 Replies

4. UNIX for Dummies Questions & Answers

how to install new packages when disk space is full

during installation i created four partitions mainly / 5GB /home 1GB /boot 100MB swap 2GB now since i didnt make the /usr partition all of the packages were being installed in the / partition ..now all the space in the / partition is filled ...i ran du -h... (3 Replies)
Discussion started by: tarunicon
3 Replies

5. UNIX for Advanced & Expert Users

Disk Space full

I was tryin to copy a large file under /tmp location. I guess the disk space got full and i got fork error. Then I tried removing some files but the shell did not let me do anything bash> rm apache22.tar bash: fork: Not enough space bash> pwd /tmp bash> vmstat 1 bash: fork: Not... (3 Replies)
Discussion started by: mohtashims
3 Replies

6. Red Hat

ROOT fs is full but no files consumed more space

one our linux machine root fs usage shows 90% but inode use % i sarched more then 10 MB files and found few with less mb,s any once help to solve this $ df -h / Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p3 3.9G 3.3G 409M 90% / $ df -i /... (9 Replies)
Discussion started by: venikathir
9 Replies

7. AIX

Paging space is 100% full

Paging space is 100% full? what step can i take (3 Replies)
Discussion started by: ramraj731
3 Replies

8. Solaris

Read Only Permission after the space is full.

Hi, Is there any chance that a file system that mounted on the server becomes read only when the space in that file system becomes full? Regards, Sreejith (9 Replies)
Discussion started by: Sreejith K
9 Replies

9. Shell Programming and Scripting

Unable to catch the redirection error when the disk is full

Hi Experts, Problem summary : I am facing the below problem on huge files when the disk is getting full on the half way through the execution. If the disk was already full , the commands fail & everything is fine. Sample Code : head_rec_data_file=`head -1 sample_file.txt` cat... (9 Replies)
Discussion started by: Pruthviraj_shiv
9 Replies

10. Emergency UNIX and Linux Support

Swap space (almost) full

Hello, This is RHEL 5.7. swap is almost full, but I am not sure, what to release and how to release space. This is production server so I would like to try all possible options before reboot. # top top - 00:18:26 up 327 days, 7:01, 3 users, load average: 0.16, 0.21, 0.18 Tasks: 782 total, ... (7 Replies)
Discussion started by: solaris_1977
7 Replies
FUSER(1)							   User Commands							  FUSER(1)

NAME
fuser - identify processes using files or sockets SYNOPSIS
fuser [-a|-s] [-4|-6] [-n space] [-signal] [-kimuv] name ... fuser -l fuser -V DESCRIPTION
fuser displays the PIDs of processes using the specified files or file systems. In the default display mode, each file name is followed by a letter denoting the type of access: c current directory. e executable being run. f open file. f is omitted in default display mode. r root directory. m mmap'ed file or shared library. fuser returns a non-zero return code if none of the specified files is accessed or in case of a fatal error. If at least one access has been found, fuser returns zero. In order to look up processes using TCP and UDP sockets, the corresponding name space has to be selected with the -n option. By default fuser will look in both IPv6 and IPv4 sockets. To change the default, behavour, use the -4 and -6 options. The socket(s) can be specified by the local and remote port, and the remote address. All fields are optional, but commas in front of missing fields must be present: [lcl_port][,[rmt_host][,[rmt_port]]] Either symbolic or numeric values can be used for IP addresses and port numbers. OPTIONS
-a Show all files specified on the command line. By default, only files that are accessed by at least one process are shown. -k Kill processes accessing the file. Unless changed with -signal, SIGKILL is sent. An fuser process never kills itself, but may kill other fuser processes. The effective user ID of the process executing fuser is set to its real user ID before attempting to kill. -i Ask the user for confirmation before killing a process. This option is silently ignored if -k is not present too. -l List all known signal names. -m name specifies a file on a mounted file system or a block device that is mounted. All processes accessing files on that file system are listed. If a directory file is specified, it is automatically changed to name/. to use any file system that might be mounted on that directory. -n space Select a different name space. The name spaces file (file names, the default), udp (local UDP ports), and tcp (local TCP ports) are supported. For ports, either the port number or the symbolic name can be specified. If there is no ambiguity, the shortcut notation name/space (e.g. name/proto) can be used. -s Silent operation. -u and -v are ignored in this mode. -a must not be used with -s. -signal Use the specified signal instead of SIGKILL when killing processes. Signals can be specified either by name (e.g. -HUP) or by number (e.g. -1). -u Append the user name of the process owner to each PID. -v Verbose mode. Processes are shown in a ps-like style. The fields PID, USER and COMMAND are similar to ps. ACCESS shows how the process accesses the file. If the access is by the kernel (e.g. in the case of a mount point, a swap file, etc.), kernel is shown instead of the PID. -V Display version information. -4 Search only for IPv4 sockets. This option must not be used with the -6 option and only has an effect with the tcp and udp names- paces. -6 Search only for IPv6 sockets. This option must not be used with the -4 option and only has an effect with the tcp and udp names- paces. - Reset all options and set the signal back to SIGKILL. FILES
/proc location of the proc file system EXAMPLES
fuser -km /home kills all processes accessing the file system /home in any way. if fuser -s /dev/ttyS1; then :; else something; fi invokes something if no other process is using /dev/ttyS1. fuser telnet/tcp shows all processes at the (local) TELNET port. RESTRICTIONS
Processes accessing the same file or file system several times in the same way are only shown once. If the same object is specified several times on the command line, some of those entries may be ignored. fuser may only be able to gather partial information unless run with privileges. As a consequence, files opened by processes belonging to other users may not be listed and executables may be classified as mapped only. Installing fuser SUID root will avoid problems associated with partial information, but may be undesirable for security and privacy rea- sons. udp and tcp name spaces, and UNIX domain sockets can't be searched with kernels older than 1.3.78. udp and tcp currently work with IPv6 and IPv4, but the address fields can only be IPv4 addresses. Accesses by the kernel are only shown with the -v option. The -k option only works on processes. If the user is the kernel, fuser will print an advice, but take no action beyond that. AUTHOR
Werner Almesberger <Werner.Almesberger@epfl.ch> SEE ALSO
kill(1), killall(1), lsof(8), ps(1), kill(2) Linux October 25, 1999 FUSER(1)
All times are GMT -4. The time now is 01:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy