1848551 Members
6240 Online
104033 Solutions
New Discussion

dtcnmp.log cleardown

 
ITeam
Super Advisor

dtcnmp.log cleardown

Hi there
Could anyone please tell me know how to cleardown /var/opt/dtcmgr/log/dtcnmp.log on a server running HPUX11. If i cat /dev/null to the file, "df -k " reports the space available but if i then ls -al i still see the file size as first reported.
Thanks in advance for any help.
Regards
Shaun.
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: dtcnmp.log cleardown

Shaun,

Apparently the log is still open to some process. A reboot will fix.

Pete

Pete
harry d brown jr
Honored Contributor

Re: dtcnmp.log cleardown


Shaun,

Can you post this output????

df -k /var/opt/dtcmgr/log

ls -l /var/opt/dtcmgr/log/dtcnmp.log

cat /dev/null > /var/opt/dtcmgr/log/dtcnmp.log

df -k /var/opt/dtcmgr/log

ls -l /var/opt/dtcmgr/log/dtcnmp.log

ls -l /dev/null

bdf df -k /var/opt/dtcmgr/log


live free or die
harry
Live Free or Die
ITeam
Super Advisor

Re: dtcnmp.log cleardown

Here you go, thanks for the help.
.
pwd
/var/opt/dtcmgr/log

# df -k /var/opt/dtcmgr/log
/var (/dev/vg00/lvol8 ) : 493737 total allocated Kb
278141 free allocated Kb
215596 used allocated Kb
43 % allocation used

# ls -al dtcnmp.log
-rw-r--r-- 1 root sys 240921353 Aug 27 16:23 dtcnmp.log


# cat /dev/null > dtcnmp.log

# df -k /var/opt/dtcmgr/log
/var (/dev/vg00/lvol8 ) : 493737 total allocated Kb
278189 free allocated Kb
215548 used allocated Kb
43 % allocation used
# ls -l dtcnmp.log
-rw-r--r-- 1 root sys 240930405 Aug 27 16:24 dtcnmp.log
# ls -l /dev/null
crw-rw-rw- 1 bin bin 3 0x000002 Aug 27 16:22 /dev/null
#
ITeam
Super Advisor

Re: dtcnmp.log cleardown

Thanks for the assistance guys, just for reference here is the procedure supplied by HP ...
The easiest way to clear the file down is to run "/sbin/init.d/dtcmgr stop"
to stop the dtc daemons, remove the file, and restart the daemons using
"/sbin/init.d/dtcmgr stop". Since the dtc daemons are only used by DTC
management functions and DTC downloads, they should not affect running
users, however no DTC will be managed or be anle to download while the
daemons are not running
Kind regards
Shaun :)