1. Community Tip: Please Give Thanks to Those Sharing Their Knowledge.
    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.
  2. Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)
    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

Huge /var/log/lastlog failed during backup

Discussion in 'Backup / Archive Discussion' started by combato, May 21, 2012.

  1. combato

    combato ADSM.ORG Member

    Joined:
    Mar 22, 2012
    Messages:
    74
    Likes Received:
    0
    Occupation:
    Adapt, improvise, overcome...
    Location:
    Sweden
    Hi Pro's,

    I have some linux redhat servers with a huge lastlog file. I use "compression yes" in my dsm.sys but the TSM server still complains about "out of storage". I know I need more backup-volumes but how do I get rid of the problem with huge lastlog files?

    [root@appl133 log]# ls -lh lastlog
    -r-------- 1 root root 557G May 21 14:37 lastlog
    [root@appl133 log]#

    /C
     
  2.  
  3. Trident

    Trident ADSM.ORG Senior Member

    Joined:
    Apr 2, 2007
    Messages:
    303
    Likes Received:
    27
    Occupation:
    IT operations
    Location:
    Oslo, Norway
    Add to dsm.sys

    exclude /var/log/lastlog

    Run backup again, and it should happily continue

    Remember to restart tsm scheduler
     
  4. gimlet

    gimlet ADSM.ORG Member

    Joined:
    Apr 25, 2008
    Messages:
    154
    Likes Received:
    4
    Occupation:
    Infrastructure Monkey
    Location:
    St. Louis, Missouri
    It's a sparse file; it's not really that large on the disk. Trident's workaround is what I do as well.
     
  5. etchingsj

    etchingsj ADSM.ORG Member

    Joined:
    Feb 5, 2008
    Messages:
    243
    Likes Received:
    7
    Occupation:
    Sustaining Engineer
    Location:
    Lost Wages NV
    Or,
    If you need the lastlog (in our case we need to keep it for audit purpose)

    Try This include/exclude statement in the in dsm.sys.
    include.compression /var/log/lastlog

    Or write a shell script to read the file and echo the contents to a new file which is included.
    Script in place to dump the contents of lastlog.
    Make the dsm.sys entries for preprocessorcmd, directory and file excludes on the servers and restart the scheduler.

    Some reference:

    http://en.wikipedia.org/wiki/Lastlog
    http://adsm.org/lists/html/ADSM-L/2006-10/msg00005.html
    http://www.mail-archive.com/adsm-l@vm.marist.edu/msg55622.html
     
  6. combato

    combato ADSM.ORG Member

    Joined:
    Mar 22, 2012
    Messages:
    74
    Likes Received:
    0
    Occupation:
    Adapt, improvise, overcome...
    Location:
    Sweden
    OK, thanks! I then think I need to echo out a tail -500 to a new file to keep some history.

    /C
     

Share This Page