Re: sysdump copy dir.
- From: Robert Binkley <leebinkley@xxxxxxxxx>
- Date: Wed, 24 May 2006 10:18:18 -0700
I apologige Increase the size og hd6 and copy to 4.5
GB
DO you have a script to kep var clean up:
If not I have attached :
Shawn Bierman <BiermanS@xxxxxxxxxxxxxxxxxxx> wrote:
How big should the copy dir be for a system dump?
Currently I am receiving "The copy directory is too
small." in error
report.
biermans@velma:/home/biermans > df -k /var/adm/ras
Filesystem 1024-blocks Free %Used Iused
%Iused Mounted on
/dev/hd9var 81920 15164 82% 700
4% /var
biermans@velma:/home/biermans > sudo sysdumpdev -e
0453-041 Estimated dump size in bytes: 377487360
biermans@velma:/home/biermans > sudo sysdumpdev -l
primary /dev/hd6
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump FALSE
dump compression OFF
I have another node where the /var/adm/ras is
smaller than the
sysdumpdev estimate and I do not receive these
errors.
biermans@sf1n04en4:/home/biermans > df -k /var
Filesystem 1024-blocks Free %Used Iused
%Iused Mounted on
/dev/hd9var 1048576 531960 50% 8837
4% /var
biermans@sf1n04en4:/home/biermans > sudo sysdumpdev
-l
primary /dev/lg_dumplv
secondary /dev/sysdumpnull
copy directory /var/adm/ras
forced copy flag TRUE
always allow dump TRUE
dump compression OFF
biermans@sf1n04en4:/home/biermans > sudo sysdumpdev
-e
0453-041 Estimated dump size in bytes: 3768582144
Why do I get the error on one node and not the
other? Clearly neither
filesystem will hold a dump of their estimated sizes
(377M and 3.7G
respectivly)
-shawn
Robert Lee Binkley leebinkley@xxxxxxxxx
IBM AIX Specialist Certified
HP-UX System Administration Certified
Work It's Nice To Be Important But It's More Important To Be Nice
#!/usr/bin/ksh
Robert BInkley, 12/04/2000
#Remove files older than $DAYS days from /var
#Clean sub dirs in /var
#Set no. of days older than variable DAYS and DAYS1 to be used in find
HN=`hostname`
DAYS="+30"
DAYS1=30
date>/clocal/site/data/logs/churn_var.out
(
echo '\nCleaning /var filesystem'
echo '\nRemoving core files'
find /var -xdev -name "core" -type f -ls -exec rm {} ';'
# adm directory
echo '\nCleaning /var/adm Directory'
echo '\nFiles moved are ............'
ls -l /var/adm/wtmp /var/adm/sulog /var/adm/cluster.log
ls -l /var/adm/timed.log /var/adm/timed.masterlog
cp -p /var/adm/wtmp /var/adm/wtmp.old
cp -p /var/adm/sulog /var/adm/sulog.old
cp -p /var/adm/cluster.log /var/adm/cluster.log.old
cp -p /var/adm/timed.log /var/adm/timed.log.old
cp -p /var/adm/timed.masterlog /var/adm/timed.masterlog.old
cp /dev/null /var/adm/wtmp
cp /dev/null /var/adm/sulog
cp /dev/null /var/adm/cluster.log
cp /dev/null /var/adm/timed.log
cp /dev/null /var/adm/timed.masterlog
echo '\nRemoving tracefile older than '"$DAYS1"' days'
find /var/adm/ras -xdev -mtime "$DAYS" -name "trcfile*" -type f -ls
-exec rm {} ';'
echo '\nRemoving vmcore files older than '"$DAYS1"' days'
ls -l /var/adm/ras/vmcore* /var/adm/ras/errlog
find /var/adm/ras -xdev -mtime "$DAYS" -name "vmcore*" -type f -ls
-exec rm {} ';'
echo '\nClearing error log for entries older than '"$DAYS1"' days'
errclear "$DAYS1"
#echo '\nStop and Start Erorr Daemon'
#/usr/lib/errstop
#/usr/lib/errdemon
# preserve directory
echo '\nRemoving files in /var/preserve Directory'
ls -l /var/preserve/*
rm -f /var/preserve/*
# spool directory
echo '\nRemoving files older than '"$DAYS1"' days in /var/spool
Directory'
find /var/spool/lpd/qdir -xdev -mtime "$DAYS" -type f -ls -exec rm {}
';'
find /var/spool/mqueue -xdev -mtime "$DAYS" -type f -ls -exec rm {} ';'
find /var/spool/mail -xdev -mtime "$DAYS" -type f -ls -exec rm {} ';'
find /var/spool/qdaemon -xdev -mtime "$DAYS" -type f -ls -exec rm {}
';'
# tmp directory
echo '\nRemoving files older than '"$DAYS1"' days in /var/tmp
Directory'
find /var/tmp -xdev -mtime "$DAYS" -type f -ls -exec rm {} ';'
#MQM
if [ -d /var/mqm ]
then
echo '\nRemoving files older than '"$DAYS1"' days in /var/mqm/log
Directory'
find /var/mqm/log -xdev -mtime "$DAYS" -type f -ls -exec rm {} ';'
find /var/mqm/qmgrs -xdev -name "*LOG" -mtime "$DAYS" -type f -ls
-exec rm {} ';'
fi
#HA
if [ -d /var/ha ]
then
echo '\nRemoving files older than '"$DAYS1"' days in /var/ha/log
Directory'
find /var/ha/log -name "*$HN*" -xdev -mtime "$DAYS" -type f -print
|grep -v "default"| xargs -i rm {}
find /var/ha/run -name "*DiagFile*" -xdev -mtime "$DAYS" -type f -ls
rm {} ';'
fi
#SP Specific
if [ -d /var/adm/SPlogs ]
then
echo '\nMoving files older than '"$DAYS1"' days in /var/adm/SPlogs
Directory'
cd /var/adm/SPlogs
find . -xdev -mtime "$DAYS" -type f -print|egrep "out|debug|log"|while
read FILE
do
cp -p "$FILE" "$FILE".old
cp /dev/null "$FILE"
done
fi
echo '\nCleaning /var completed'
) >>/clocal/site/data/logs/churn_var.out 2>&1
- References:
- sysdump copy dir.
- From: Shawn Bierman
- sysdump copy dir.
- Prev by Date: Re: sysdump copy dir.
- Next by Date: Re: AIX Partitioning - help please
- Previous by thread: Re: sysdump copy dir.
- Next by thread: Re: sysdump copy dir.
- Index(es):
Relevant Pages
|