Author Topic: ARSMAINT on system log  (Read 3589 times)

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
ARSMAINT on system log
« on: March 14, 2016, 06:26:12 AM »
Hi

I tried to expire the System Log using the following command.

/opt/ibm/ondemand/V9.0/bin/arsmaint -I xxxxxxx -u xxxxx -p xxxxx -n 10 -x 10 -t 2027-12-31 -g "System Log" -d

However after running for some time and completing, when I check the space utilization on the file system, it is unchanged.
Meaning that no expiration happened.
Also the number of rows on the System Log remained unchanged.

Note that I am running the expiration processing using a future date.
Any reason why the space is not clearing.

The retention period on the System Log App Group is 7 years.

Thanks
Pankaj.

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: ARSMAINT on system log
« Reply #1 on: March 14, 2016, 07:24:11 AM »
Before I tell you what you've missed, I just want to confirm -- do you realize that the command you're about to run will delete the entire System Log?  Are you absolutely sure you want to do this?

Also, you may be disappointed by the storage savings -- the System Log is usually far under 1% of the size of any cache filesystem, even on small servers.

This should ABSOLUTELY not be run on a production server.



IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: ARSMAINT on system log
« Reply #2 on: March 14, 2016, 09:49:09 PM »
I understand JBNC that this will wipe off System Log.
Note that this is a non-production server.

Also I did a query on the database to get the size info and this is what I got.

As you can see that SL3 alone is consuming about 3 GB of space.


Table Name                                  Table Physical size in MB Index Size
SL3                                                 3179
SL2                                                 1708


pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: ARSMAINT on system log
« Reply #3 on: March 14, 2016, 10:52:34 PM »
Found this post from Alessandro which probably answers it.
http://www.odusergroup.org/forums/index.php?topic=1871.msg6967#msg6967

The -t option does not work with -d option :(

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: ARSMAINT on system log
« Reply #4 on: March 15, 2016, 07:04:03 AM »
Correct, you would need to remove the -d and add the -c option.

But this still wouldn't remove the System Log metadata, only the data in the cache filesystem.

If you want to shrink the size of a table and indexes, you need to delete rows in order to create free space, and then run a 'reorg table <tablename>' to reclaim the free space in the database pages.


IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: ARSMAINT on system log
« Reply #5 on: March 15, 2016, 11:40:30 PM »
See the utilization.
Finding now way to find the biggest contributor.

/dev/mapper/root_vg-db2data1
                       15481840  13935136    760336  95% /apps/IBM/db2/xxxx/data1

pankaj.puranik

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
Re: ARSMAINT on system log
« Reply #6 on: March 16, 2016, 05:24:48 AM »
The reason why the space utilization was not coming down even after expiring eligible records was because we did not run the REORG.
We are using DB2 and it seems that you need to run the REORG to reclaim the space.
The utilization is down to 70 % now.

Cheers
Pankaj.

Jaydeep Mehta

  • Guest
Re: ARSMAINT on system log
« Reply #7 on: April 01, 2016, 06:04:01 AM »
HI Pankaj,

If we use Oracle in that case also run  REORG to reclaim the space ..???

Regards
Jaydeep