[OpenIndiana-discuss] idmap timeout

Reginald Beardsley pulaskite at yahoo.com
Mon Feb 25 19:05:19 UTC 2013



--- On Mon, 2/25/13, James Relph <james at themacplace.co.uk> wrote:

> From: James Relph <james at themacplace.co.uk>
> Subject: [OpenIndiana-discuss] idmap timeout
> To: "Discussion list for OpenIndiana" <openindiana-discuss at openindiana.org>
> Date: Monday, February 25, 2013, 7:44 AM
> Hi all,
> 
> Another idmap issue!  Just trying a new VM for some
> troubleshooting and I can't seem to get the
> name_cache_timeout and id_cache_timeout settings to work on
> here.  I've run:
> 
> svccfg -s svc:/system/idmap setprop
> config/name_cache_timeout=count: 31536000
> svccfg -s svc:/system/idmap setprop
> config/id_cache_timeout=count: 31536000
> 
> but I'm still seeing UIDs changing every 10 minutes (cron
> job here running an id to a file every minute):
> 
> 13:05:00   uid=2147491845
> gid=2147483650(Domain Users at themacplace.private)
> 13:06:00   uid=2147491845
> gid=2147483650(Domain Users at themacplace.private)
> 13:07:00   uid=2147491845
> gid=2147483650(Domain Users at themacplace.private)
> 13:08:00   uid=2147491845
> gid=2147483650(Domain Users at themacplace.private)
> 13:09:00   uid=2147491845
> gid=2147483650(Domain Users at themacplace.private)
> 13:10:00   uid=2147491845
> gid=2147483650(Domain Users at themacplace.private)
> 13:11:00   uid=2147491846(james at themacplace.private)
> gid=2147483650(Domain Users at themacplace.private)
> 13:12:00   uid=2147491846(james at themacplace.private)
> gid=2147483650(Domain Users at themacplace.private)
> 13:13:00   uid=2147491846
> gid=2147483650(Domain Users at themacplace.private)
> 13:14:00   uid=2147491846
> gid=2147483650(Domain Users at themacplace.private)
> 13:15:00   uid=2147491846
> gid=2147483650(Domain Users at themacplace.private)
> 13:16:00   uid=2147491846
> gid=2147483650(Domain Users at themacplace.private)
> 13:17:00   uid=2147491846
> gid=2147483650(Domain Users at themacplace.private)
> 
> Does anyone know if this is a bug, or expected
> behaviour?  Obviously doesn't affect CIFS at all, but
> I'm trying to do some troubleshooting against another
> service.  What also seems a bit weird is the output
> format of id changes when the id ticks over (adds the
> username into brackets)?
> 

What does

svccfg -s svc:/system/idmap listprop "config/*" 

show after making the settings?  Also, did you "svcadm restart idmap" after setting the timeouts?

What are you using to make the query in the cron job?  Checking idmap.db per the notes in feature #677 shows the expiration time being set properly in the database in oi_151a7.  

Have Fun!
Reg



More information about the OpenIndiana-discuss mailing list