Please give me detail's about  db2dasdiag.log ?

Posted on 2009-12-21
Last Modified: 2013-11-17
My Filesystem /home got filled up 98 % . db2dasdiag.log under home directory have size nearly about 30gb . Is there any command to clear db2dasdiag.log file . Can you please guide me .
Question by:kumar1251
    LVL 10

    Expert Comment


    Author Comment

    Please provide specific solution .If i clean db2dasdiag.log  file what will happen  ?
    LVL 37

    Accepted Solution

    nothing will happen
    just delete the file
    if you are afraid to do so, you can back it up just in case,
    to a different file system, or just compress it in the current filesystem, i believe it will compress to a considerable smaller size
    LVL 68

    Assisted Solution

    Are you sure that the  DB2 admin server won't keep its log open all the time?
    In this case deleting db2dasdiag.log would not free up any space, only the inode entry would vanish, thus making the file invisible.
    DAS would continue writing to the once opened file handle, consuming filesystem space.
    An admin not being aware of the delete action would probably have a hard time to find out the reason.
    In such cases I always recommend to only empty the file (copy it to a backup location beforehand, if the log data is needed).
    Note the '>' sign in front. Using it will lead to the file being overwritten with an empty stdout line.
    The file can continuously be written by the admin server. It will not notice anything.
    Note to your other case - with smit.log it's different. Once the smit session being terminated, the log is closed and can safely be deleted.
    LVL 68

    Expert Comment



    I think valid solutions have been given ( #26102482 and #26103208 )

    Why not accept them?

    LVL 68

    Expert Comment

    I'm still of the opinion that  #26102482 and  #26103208 are valid solutions.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded‚Ķ
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now