Arsmaint not deleting old records

Previous topic - Next topic

alddiver

Hi,
I have a script that runs the command below to delete old data but when we run it with a v switch as below it comes back with the return code of 6.

/usr/lpp/ars/bin/arsmaint -v

ERROR : arsmaint failed verifcation process, return code is 6

So we now have data piling up that we want to remove.
I don't want to take off the switch until i know that arsmaint will not delete everything.
Any ideas please
Regarsd Tommy


Ed_Arnold

Tommy - I'm not following you.

The "-v" option is not a switch, or at least that's not how I'd describe it.

-v is for VALIDATE.   

Validates cache storage. When you specify this option, the ARSMAINT program inspects all cache storage file systems to make sure that they are correctly linked with the proper file permissions.


And FYI, if you got a non-zero return code from VALIDATE somewhere you should have some messages of this ilk:

ARS0198E ARSMAINT INVALID OWNERSHIP AND/OR PERMISSIONS ON CACHE FILE
/DIRECTORY >/ARS1<  SRVR->SVLSPIL2.SVL.FOO.COM 2.30.127.136<-       
ARS0107E ARSMAINT UNKNOWN FILE OR DIRECTORY IN CACHE >/ARS1/LS.TXT<
SRVR->SVLSPIL2.SVL.FOO.COM 2.30.127.136<- 
                       

Ed
#zOS #ODF

Justin Derrick

You may also be running arsmaint from a user id that doesn't have permissions to change the cache.  You should be running this command from the same ID that arssockd runs under.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

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


Justin Derrick

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

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