02-08-2013
Check size of a partition
hi want to schedule a script for displaying the size of the partiition.
For example
df -g
/dev/fslv03 2000.00 535.43 74% 179943 1% /nvbkp
we have several mount point like this but i want to schedule script to display size of the above mount point only.
Thanks
Ankit
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am writing a script which takes the input file name and concat as a new file by appending a "1" to the file name. However i am not able to get the size of this new file. I am not sure where i am going wrong. Please check the script and help me get this working.
#!/bin/sh ... (1 Reply)
Discussion started by: ragsnovel
1 Replies
2. UNIX for Dummies Questions & Answers
Hi, I have a directory PRIVATE in which I have several directories and each of these have several files. Therefore, I need to find those files by size and date to back up those files in another directory.
I don't know how to implement this shell script using ''find''.
appreciate any... (1 Reply)
Discussion started by: dadadc
1 Replies
3. Shell Programming and Scripting
I want to find the size of particular file exists in a particular directory
and i wnt to zip it.
In the below mentioned code it should check the MQ.log in the
particular directory.Please correct my code so that it will check
for particular MQ.log but i could not able to check whether
the... (9 Replies)
Discussion started by: Balachandar
9 Replies
4. Shell Programming and Scripting
Please could anyone provide me the Command/script to find the size and usage of Unix box ASAP ? (6 Replies)
Discussion started by: sakthifire
6 Replies
5. Shell Programming and Scripting
Hi,
I need to execute a script to find the tablespace size in oracle.But i get an error.:confused:
Script Executed:-
#!/bin/ksh
ORACLE_SID= oracelinstance
ORACLE_HOME= oracle path
PATH=$ORACLE_HOME/bin
export ORACLE_SID ORACLE_HOME PATH
sqlplus... (4 Replies)
Discussion started by: vighna
4 Replies
6. Shell Programming and Scripting
Hello
i am working on a project here is part of script that i need a help in
get process SpectroSERVER current size if it exceed 3850 MB then
#pkill -TERM ArchMgr
and wait to succfull shutdown message from the log file to proceed to the next step
#tail -f $SPECROOT/SS/DDM/ARCHMGR.OUT... (7 Replies)
Discussion started by: mogabr
7 Replies
7. Shell Programming and Scripting
I'm looking to write a ksh code with will be alble to find a word like 'toto' in all files going from my current directory.
eg.
/doc ----------->have: text.c which "toto"
/doc/usr-------->have: build.pc, help.java which "toto"
/doc/usr/cach -->have: test.sh which "toto"
/doc/build... (4 Replies)
Discussion started by: yeclota
4 Replies
8. UNIX for Dummies Questions & Answers
Hi all...
I have a directory called dbrn. This directory contains an unknown number of subdirectories which in turn contain an unknown number of files.
What I want to know is:
How many files with extention .ABC can be found in /dbrn across all subdirecties, and what is the total size for... (9 Replies)
Discussion started by: Beun
9 Replies
9. Shell Programming and Scripting
Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ?
The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories.
So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Discussion started by: spfc_dmt
12 Replies
LEARN ABOUT PHP
fs_lsmount
FS_LSMOUNT(1) AFS Command Reference FS_LSMOUNT(1)
NAME
fs_lsmount - Reports the volume for which a directory is the mount point.
SYNOPSIS
fs lsmount -dir <directory>+ [-help]
fs ls -d <directory>+ [-h]
DESCRIPTION
The fs lsmount command reports the volume for which each specified directory is a mount point, or indicates with an error message that a
directory is not a mount point or is not in AFS.
To create a mount point, use the fs mkmount command. To remove one, use the fs rmmount command.
OPTIONS
-dir <directory>+
Names the directory that serves as a mount point for a volume. The last element in the pathname provided must be an actual name, not a
shorthand notation such as one or two periods ("." or "..").
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
If the specified directory is a mount point, the output is of the following form:
'<directory>' is a mount point for volume '<volume name>'
where
o A number sign ("#") precedes the <volume name> string for a regular mount point.
o A percent sign ("%") precedes the <volume name> string for a read/write mount point.
o A cell name and colon (":") follow the number or percent sign and precede the <volume name> string for a cellular mount point.
The fs mkmount reference page explains how the Cache Manager interprets each of the three types of mount points.
If the directory is a symbolic link to a mount point, the output is of the form:
'<directory>' is a symbolic link, leading to a mount point for volume
'<volume name>'
If the directory is not a mount point or is not in AFS, the output reads:
'<directory>' is not a mount point.
If the output is garbled, it is possible that the mount point has become corrupted in the local AFS client cache. Use the fs flushmount
command to discard it, which forces the Cache Manager to refetch the mount point.
EXAMPLES
The following example shows the mount point for the home directory of user "smith":
% fs lsmount /afs/abc.com/usr/smith
'/afs/abc.com/usr/smith' is a mount point for volume '#user.smith'
The following example shows both the regular and read/write mount points for the ABC Corporation cell's "root.cell" volume.
% fs lsmount /afs/abc.com
'/afs/abc.com' is a mount point for volume '#root.cell'
% fs lsmount /afs/.abc.com
'/afs/.abc.com' is a mount point for volume '%root.cell'
The following example shows a cellular mount point: the State University cell's "root.cell" volume as mounted in the ABC Corporation cell's
tree.
% fs lsmount /afs/stateu.edu
'/afs/stateu.edu' is a mount point for volume '#stateu.edu:root.cell'
PRIVILEGE REQUIRED
The issuer must have the "l" (lookup) permission on the ACL of the root directory of the volume that houses the file or directory named by
the -dir argument, and on the ACL of each directory that precedes it in the pathname.
SEE ALSO
fs_flushmount(1), fs_mkmount(1), fs_rmmount(1)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 FS_LSMOUNT(1)