8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i want to create 1 script to monitor 1 particular filesystem out of the diferent filesystems. if disk space of that particular filesystem increases by 80% it sends an alert mail to an email id
---------- Post updated at 04:18 PM ---------- Previous update was at 04:17 PM ----------
no. I am... (1 Reply)
Discussion started by: rakeshhhhhhhh
1 Replies
2. Red Hat
Hi All,
My disk usage show 100 % . When I check “df –kh” it shows my root partition is full. But when I run the “du –skh /” shows only 7 GB is used.
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 30G 28G 260MB 100% /
How I can identify who is using the 20 GB of memory.
Os: Centos... (10 Replies)
Discussion started by: kalpeer
10 Replies
3. UNIX for Advanced & Expert Users
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
4. UNIX for Advanced & Expert Users
Hi,
In order to have a sand box machine that I could use to test some system changes before going to production state, I'd like to duplicate a working system to a virtual one. Ideally, I'd like to manage to do it this way :
- Make a full system backup excluding the user file system (this... (7 Replies)
Discussion started by: pagaille
7 Replies
5. Solaris
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
6. Linux
one of my servers / was full by 100% i cleard some space, now though i have
enough space on / partition still df is showing disk usage as 100% am not able to create any single txt file ? why so ? (3 Replies)
Discussion started by: bryanabhay
3 Replies
7. Solaris
I am new to Solaris so please bear with me. I have spent enough time searching to get somewhat of a grip here but I am not sure what to do next. I am trying to grow a file system on a Solaris 8 server.
B_root@server:>df -k
Filesystem kbytes used avail capacity Mounted on... (9 Replies)
Discussion started by: NewSolarisAdmin
9 Replies
8. UNIX for Advanced & Expert Users
Please solve the following
NOTICE HTFS:No space on dev hd(1/42) (2 Replies)
Discussion started by: msuheel
2 Replies
close(2) System Calls Manual close(2)
NAME
close - close a file descriptor
SYNOPSIS
DESCRIPTION
closes the file descriptor indicated by fildes. fildes is a file descriptor obtained from a or system call. All associated file segments
which have been locked by this process with the function are released (i.e., unlocked).
RETURN VALUE
Upon successful completion, returns a value of 0; otherwise, it returns -1 and sets to indicate the error.
ERRORS
fails if the any of following conditions are encountered:
[EBADF] fildes is not a valid open file descriptor.
[EINTR] An attempt to close a slow device or connection or file with pending aio requests was interrupted by a signal. The
file descriptor still points to an open device or connection or file.
[ENOSPC] Not enough space on the file system. This error can occur when closing a file on an NFS file system. [When a system
call is executed on a local file system and if a new buffer needs to be allocated to hold the data, the buffer is
mapped onto the disk at that time. A full disk is detected at this time and returns an error. When the system call
is executed on an NFS file system, the new buffer is allocated without communicating with the NFS server to see if
there is space for the buffer (to improve NFS performance). It is only when the buffer is written to the server (at
file close or the buffer is full) that the disk-full condition is detected.]
SEE ALSO
creat(2), dup(2), exec(2), fcntl(2), lockf(2), open(2), pipe(2), thread_safety(5).
STANDARDS CONFORMANCE
close(2)