This is a classic example of what happens when you run out of system resources like memory. The shell cannot create another process ( fork ) and thus you are restricted to the built-in commands provided by the shell you are using.
You copied the large file in /tmp which is tmpfs and resides on virtual memory. Dumping files in /tmp means consuming virtual memory. In turn, less room for other processes.
In this case, here is what you could do:
All of the commands are shell built-in (work in bourne and korn shells) and shell does not need to fork another process. So, cd lets you in the /tmp directory, echo lets you see the files in that and figure out the name of the file, > brings the size of the file down to zero solving your problem.
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT SUNOS
snmpdf
snmpdf(1M) System Administration Commands snmpdf(1M)NAME
snmpdf - get a listing of disk space usage on a remote machine by means of SNMP
SYNOPSIS
/usr/sfw/bin/snmpdf [common options] [-Cu] agent
DESCRIPTION
The snmpdf command is a networked verison of the df(1M) command. It checks the disk space on the remote machine by examining the HOST-
RESOURCES-MIB's hrStorageTable or the UCD-SNMP-MIB's dskTable. By default, the hrStorageTable is preferred, as it typically contains more
information than the dskTable. However, the -Cu argument can be passed to snmpdf to force the usage of dskTable.
The agent operand identifies a target SNMP agent, which is instrumented to monitor specified objects. At its simplest, the agent specifica-
tion consists of a host name or an IPv4 address. In this situation, the command attempts communication with the agent using UDP/IPv4 to
port 161 of the target host.
See the snmpcmd(1M) manual page for a full list of the possible formats for agent.
See the snmpd.conf(4) manual page for guidance on setting up dskTable using the disk directive in the snmpd.conf file.
OPTIONS
The following options are supported:
common options
See snmpcmd(1M) for a list of possible values for common options, as well as their descriptions.
-Cu
Forces the command to use dskTable in UCD-SNMP-MIB instead of the default to determine the storage information. Generally, the default
use of hrStorageTable in HOST-RESOURCES-MIB is preferred because it usually contains more information than dskTable.
EXAMPLES
Example 1: Obtaining Disk Usage of a Remote System
The following command returns a display of the disk usage of a remote system.
Description size (kB) Used Available Used%
/ 7524587 2186910 5337677 29%
/proc 0 0 0 0%
/etc/mnttab 0 0 0 0%
/var/run 1223088 32 1223056 0%
/tmp 1289904 66848 1223056 5%
/cache 124330 2416 121914 1%
/vol 0 0 0 0%
Real Memory 524288 447456 76832 85%
Swap Space 1420296 195192 1225104 13%
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsmcmd |
+-----------------------------+-----------------------------+
|Interface Stability |External |
+-----------------------------+-----------------------------+
EXIT STATUS
0
Successful completion.
1
A usage syntax error. A usage message is displayed. Also used for timeout errors.
2
An error occurred while executing the command. An error message is displayed.
SEE ALSO df(1M), snmpcmd(1M), snmp.conf(4), snmpd.conf(4), attributes(5)SunOS 5.10 20 Jan 2004 snmpdf(1M)