cancel
Showing results for 
Search instead for 
Did you mean: 

usage of vg

kishore_11_1
Occasional Advisor

usage of vg

we have assigned a vg to some fs. One directory is increasing rapidly in that directory there are some folders. Is there any way to check folder is using more space.
5 REPLIES
SoorajCleris
HPE Pro

Re: usage of vg

Hi Kishore,

Very confusing, but I think your question is.

1. you have a filesystem and the usage is increasing rapidly.

2. You found that there is a folder which is growing and you want the reason?

Or do you want to find out which folder/file is growing?

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
kishore_11_1
Occasional Advisor

Re: usage of vg

find out which folder/file is growing?
SoorajCleris
HPE Pro

Re: usage of vg

Hi,

Do a #du and compare , createa a script

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Dan Bolton
Frequent Advisor

Re: usage of vg

When I need to track down disk space hogs, I use a onliner such as:

# du -sk * | sort -n | tail -10

...which will show the 10 largest 'objects' in the current directory -(an 'object' being a single file's size, or the sum of all files in a subdirectory). This allows one to quicky drill-down the the offender.

In this case, you may need to run it a couple of times looking for increases, rather than absolute size.
...skid in sideways, chocolate in one hand, martini in the other, totally worn out and screaming, "WOO HOO what a ride!"
S. Ney
Trusted Contributor

Re: usage of vg

Or you can use a one line command such as:
du -k -x /directory | sort -rn | pg (This will list and sort all subdirectories in /directory, excluding the mount points)
find /path -xdev -type f -mtime -3 -exec ls -ld {} +
(This will find files which have been modified during the last three days.)