- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /usr full and nfs mount query
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 04:36 AM
08-20-2004 04:36 AM
-r-xr--r-- 2 bin bin 2475728 Oct 31 2003 /usr/contrib/bin/cmsetlog
-r-xr--r-- 8 bin bin 2893520 Oct 31 2003 /usr/sbin/stsetlog
I am not sure what these logs are used for or if I should remove them - any ideas ?
Also, does anyone happen to know how to determine the orginal mount point of a filesystem. For example I have the following nfs mount:
/dev/vgvanfs/lv_cdr_central
83857408 56899240 26753136 68% /nfs_cdr_central
nfs_va:/nfs_cdr_central
83857408 56899240 26753136 68% /cdr_central
...how do I find out where it is being mounted from ?
Cheers
Emma
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 04:40 AM
08-20-2004 04:40 AM
Re: /usr full and nfs mount query
The first one is used by SG.
This is unlikely to be the cause of yoru problems as they are only 2 megabyte files.
I would suggest:
find /usr -size +1000000c
and see what turns up.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 04:40 AM
08-20-2004 04:40 AM
Re: /usr full and nfs mount query
If automounter is in play, look at maps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 05:00 AM
08-20-2004 05:00 AM
Solutionkeep in mind too that filesystems can get full by tons of small files.
I had a situation once where i had 100 30mb files filling up a FS. 3gb back made a difference and wasnt just a few large files...
Try this script written by a friend of mine... it will give you a listing of the top 10 filesystems that are using space.
It is also originally intended to find disk hogs as well and has a wall feature.
Just give it arguents like this.
Usage:
#./top10 filesystem_name
-------------------------------cut here-------------------
# top10.sh
# Written by David R. Kramer 10/23/97
## Report the ten largest consumers of disk space
## for the filesystem or directory specified as $1
## Additionally, for root, produce a report of files
## which are currently open.
## Validate syntax ##
if [ "${#}" -ne 1 ]
then
echo "Usage: ${0} filesystem_name"
exit 1
fi
file_system=${1}
## Collect disk usage in background so it is ##
## ready to be reported In the Top 10 List. ##
f_s="`echo ${file_system} | tr '/' '_'`"
dufile="/tmp/${f_s}_disk_utilization.`date +%y%m%d%H%M`"
du -s ${file_system}/* >${dufile} 2>${dufile}.err &
## This was intended for good use but, only root can read
## the device files. So this will only function for ROOT
## Report on open files uses lsof to get inodes then
## ff to produce the names of the open files
special_device="`df -k ${1} | awk 'NR==2 {print $1}'`"
if [ -r ${special_device} ]
then
(
lsof | grep "${file_system}" | awk '{print $1, $2, $3, $8, $9, $10}' | s
ort -r -n +3 -4 >open_files
awk '{printf("%s ",$5)};END{printf("\n")}' open_files |
xargs ff ${special_device} -i
) 2>/tmp/open_files.err >/tmp/open_files.rpt
fi
wait
## Top 10 List ##
DATE="`date '+%D@%R'`" ; export DATE
THISSYS="`uname -n`"
case "${THISSYS}"
in
cmps* ) SYSTEM_TYPE="PRODUCTION" ;;
cmvt* ) SYSTEM_TYPE="VOLUME TEST" ;;
cmdv* ) SYSTEM_TYPE="DEVELOPMENT" ;;
esac
export SYSTEM
sort -n -r ${dufile} |
head -10 |
awk '
BEGIN{
cdate = "'${DATE}'"
system_type = "'${SYSTEM_TYPE}'"
printf("HOME Directory Disk Utilization on %\n", system)
printf("\n Top 10 List\n")
printf("\n %s\n", cdate)
printf("\n MBytes Home Directory\n")
printf(" ------- -----------------\n")
}
{
printf(" %6d %s\n", $1/(2*1024), $2)
}
END{
printf("\n\n")
}' >/tmp/wall_file
cat /tmp/wall_file
echo "\nWall Top 10 List? (y/n) \c"
read ans
if [ "${ans}" = "y" -o "${ans}" = "Y" ]
then
cat /tmp/wall_file | wall
fi
# end top10.sh
---------------------------cut here-----------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 05:09 AM
08-20-2004 05:09 AM
Re: /usr full and nfs mount query
drwxr-xr-x 2 root sys 96 Jan 23 2004 0_4_0_0_1_22_39_0_0_5
drwxr-xr-x 2 root sys 96 Jan 23 2004 0_4_0_0_1_22_255_2_7
drwxr-xr-x 2 root sys 96 Jan 23 2004 0_4_0_0_1_22_39_0_0_6
drwxr-xr-x 2 root sys 96 Jan 23 2004 0_4_0_0_1_22_255_2_7_0
drwxr-xr-x 2 root sys 96 Jan 23 2004 0_4_0_0_1_23_255_14_4
drwxr-xr-x 2 root sys 96 Jan 23 2004 0_4_0_0_1_23_255_14_4_0
drwxr-xr-x 2 root sys 96 Jan 23 2004 0_4_0_0_1_23_255_14_4_1
Each one of these have a info sub-dir which contains a test_activity_log and info_log_msg files. Given these are all timestampted Jan. '04 can I removed all the above dir's or do you know what is writing to them ?
Cheers
Emma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 05:12 AM
08-20-2004 05:12 AM
Re: /usr full and nfs mount query
cmsetlog is an un-supported utility that can be used to set the amount of logging the cluster daemons/commands log in the log files.
As mentioned above, they are very small in size and should not be removed from the system.
in /usr filesystem there is not much housekeeping you can do unless you have some huge core files or unnessary softwares installed in the system.
Find and remove the core files in the filesystem
# cd /usr
# find . -name "core" -exec ls -lrt {} \;
If the core files are significant in size, then remove them or copy them to a different filesystem.
# cd /usr
# du -sk * | sort -n
the above command will sort the directories based on their usage. Take it from there.
original mount point of the system ? - hmm - what do u mean by that ?
nfs_va:/nfs_cdr_central
83857408 56899240 26753136 68% /cdr_central
In the above case, the filesystem is from the NFS server nfs_va. server nfs_va is exporting its /nds_cdr_central filesystem and it is mounted under /cdr_central in your system.
-- Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 05:12 AM
08-20-2004 05:12 AM
Re: /usr full and nfs mount query
-rw-r--r-- 1 root root 512656 Feb 17 2004 log3506.raw
-rw-r--r-- 1 root root 512656 Feb 17 2004 log3507.raw
-rw-r--r-- 1 root root 512656 Feb 17 2004 log3508.raw
-rw-r--r-- 1 root root 512656 Feb 17 2004 log3509.raw
-rw-r--r-- 1 root root 512656 Feb 17 2004 log3510.raw
-rw-r--r-- 1 root root 512656 Feb 17 2004 log3511.raw
-rw-r--r-- 1 root root 512656 Feb 17 2004 log3512.raw
Can I safely remove these ?
Thanks a mil
Emma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 05:31 AM
08-20-2004 05:31 AM
Re: /usr full and nfs mount query
I only have 1 log* file in my dir there.
I wouldn't keep more than a month if that...
Even still, if you have good backups, I doubt you will ever need to restore those logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 05:49 AM
08-20-2004 05:49 AM
Re: /usr full and nfs mount query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2004 05:51 AM
08-20-2004 05:51 AM
Re: /usr full and nfs mount query
stm rotates the log files every 512 KB.
Do NOT remove the log file with .cur extention. That is the file currently used by the stm.
I would review one of those log files before deleting them. With so many log files, it is quiet possible that something is failing in the system
# cstm
> runutil logtool
> sr log3XXX.raw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2004 08:06 AM
08-22-2004 08:06 AM
Re: /usr full and nfs mount query
Did you ever figure out which server "nfs_va" is or did you still need help with that? If you do, you can try using the "nfsstat -m" command to display the IP address of the server. That should help you find the real NFS server.
However, if this file system is being served by an HA/NFS server (i.e. ServiceGuard) and "nfs_va" is the name of an NFS package, then the easiest way to find the real server is to log onto one of the systems in the ServiceGuard cluster and issue the "cmviewcl" command and look at which system the package is running on currently. That will tell you which system is acting as the NFS server at the current time.
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2004 07:29 AM
08-23-2004 07:29 AM
Re: /usr full and nfs mount query
Thanks for your response. I did eventually figure it out and just by using cmviewcl on the SG box as you suggested, I was able to find where the data was coming from.
Thanks anyway.
Emma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 07:36 AM
11-23-2004 07:36 AM
Re: /usr full and nfs mount query
I understand that the .raw files are used by cstm. I am getting approx 50 of these files per day of approx 0.5 mb each. Through time these files are causing the /var filesystem to fill up.
I have read a couple of .raw files and they do not appear to be logging any errors or alarms.
Is there any configuration associated with the generation of these files where I would have the option of storing just one weeks worth ?
Thanks in advance
Emma