03-14-2012
vbe, Yes I'm root on the box. I did delete the smit transaction log (it really wasn't that large).
in2nix4life, Ok...I want to check my understanding (being a Windows guy it's different under Windows)..when I list out the file systems within the root vg by using the command above (/,/usr,/var,/tmp,/home,/opt,/admin,/var/adm/ras/l) these are the default file systems created during the install. So (in my mind)...any other folders listed are by default in the / file system. Except of course any symbolic links that may point to other file systems.
I'm guessing this is correct as I did find a folder when I did a ls -l from $ that contained a growing number of log files being generated by our ERP system, that when I deleted them I reclaimed over 400mbs of space in /
If someone can confirm that my understanding is not wrong, that would be great!
I really do appreciate the input and patience! It's really frustrating to know what I want to do, but not have the Unix understanding to get there. I'm learning...slowly but surely!
Cheers!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I m working on about 16 Unix Servers, Sometime a file is generated in the root names STA, which causes the root to run out of space within few seconds ,,, and the server crashes.....
hlp me out to find why the file is generated , what does it contain 'n' what is the cause ! (0 Replies)
Discussion started by: scorpiyanz
0 Replies
2. HP-UX
I am trying to copy a filesystem from one server to another using rsync over the WAN. As far as I can tell, the two filesystems are identical but for some reason I cannot copy the last file because I keep running out of space.
SERVER 1:
mkfs -m <lvol>
mkfs -F vxfs -o... (1 Reply)
Discussion started by: keelba
1 Replies
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
I can't find any good, active Apache forums, anyone know? Either way I'll ask once here.
Let's say all webpages on the server run from /var/www directory and you would like to store some webpages elsewhere on the filesystem and still the apache webserver can access them like they were located in... (5 Replies)
Discussion started by: stevenswj
5 Replies
5. AIX
=========================================================================
Hi
I should make hd6 as 6144MB and remove paging00
How to do ?
root@dbspsdbn1 #lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging01 hdisk2 ... (1 Reply)
Discussion started by: newtoaixos
1 Replies
6. Solaris
We have a script which when run consumes the space of the disk from where it is being run. we have to kill this script every time to release space.
why do this happen ? any work around please
we are using solaris 10
P.S. : a part of the code will make some connection to the DB (1 Reply)
Discussion started by: chidori
1 Replies
7. Fedora
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
8. UNIX for Advanced & Expert Users
I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation?
Here is my query:
cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}'
02:00:00... (1 Reply)
Discussion started by: bizomb
1 Replies
9. Solaris
Hi
I am trying to run a script in a sub-directory, that has one space on it: such as:
/internaldisk1/Task Logs1, but my entry in cron is not working:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /internaldisk1/Task\ logs1/./remov_reject.sh > /var/tmp/interd_`date '+%Y%M%d'`.log 2>&1 Please can... (4 Replies)
Discussion started by: fretagi
4 Replies
10. UNIX for Advanced & Expert Users
Hi,
Can anyone please advise me on how can i increase /usr disk space manually.
The partition was created using manual disk spaces as per IT dept. request
As i don't have any space available on the said production system.
Therefore, i can move the /U01 FS to /U02 file system which will allow... (7 Replies)
Discussion started by: vitalwebsigns
7 Replies
LEARN ABOUT SUSE
fallocate
FALLOCATE(2) Linux Programmer's Manual FALLOCATE(2)
NAME
fallocate - manipulate file space
SYNOPSIS
#define _GNU_SOURCE
#include <fcntl.h>
int fallocate(int fd, int mode, off_t offset, off_t len);
DESCRIPTION
This is a nonportable, Linux-specific system call. For the portable, POSIX.1-specified method of ensuring that space is allocated for a
file, see posix_fallocate().
fallocate() allows the caller to directly manipulate the allocated disk space for the file referred to by fd for the byte range starting at
offset and continuing for len bytes.
The mode argument determines the operation to be performed on the given range. Currently only one flag is supported for mode:
FALLOC_FL_KEEP_SIZE
This flag allocates and initializes to zero the disk space within the range specified by offset and len. After a successful call,
subsequent writes into this range are guaranteed not to fail because of lack of disk space. Preallocating zeroed blocks beyond the
end of the file is useful for optimizing append workloads. Preallocating blocks does not change the file size (as reported by
stat(2)) even if it is less than offset+len.
If FALLOC_FL_KEEP_SIZE flag is not specified in mode, the default behavior is almost same as when this flag is specified. The only differ-
ence is that on success, the file size will be changed if offset + len is greater than the file size. This default behavior closely resem-
bles the behavior of the posix_fallocate(3) library function, and is intended as a method of optimally implementing that function.
Because allocation is done in block size chunks, fallocate() may allocate a larger range than that which was specified.
RETURN VALUE
fallocate() returns zero on success, and -1 on failure.
ERRORS
EBADF fd is not a valid file descriptor, or is not opened for writing.
EFBIG offset+len exceeds the maximum file size.
EINTR A signal was caught during execution.
EINVAL offset was less than 0, or len was less than or equal to 0.
EIO An I/O error occurred while reading from or writing to a file system.
ENODEV fd does not refer to a regular file or a directory. (If fd is a pipe or FIFO, a different error results.)
ENOSPC There is not enough space left on the device containing the file referred to by fd.
ENOSYS The file system containing the file referred to by fd does not support this operation.
EOPNOTSUPP
The mode is not supported by the file system containing the file referred to by fd.
VERSIONS
fallocate() is available on Linux since kernel 2.6.23. Support is provided by glibc since version 2.10.
CONFORMING TO
fallocate() is Linux-specific.
SEE ALSO
ftruncate(2), posix_fadvise(3), posix_fallocate(3)
COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2009-03-13 FALLOCATE(2)