Missing User Directories

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

jillrae
Posts: 275
Joined: Tue Nov 22, 2005 12:26 pm
Location: Accident, MD USA
Contact:

Missing User Directories

Postby jillrae » Mon Apr 30, 2007 9:44 am

When I run ommaint -weekly I get the following:

Missing user directories ....
~/user/u000048

I know how the clean up the ophans but this a new one. How do I fix this?

jillrae

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue May 01, 2007 8:09 am

Hi Jillrae!

Does this folder exist, the ~ represent the instance folder at /var/opt/scalix/??/s?

Thanks,
Subir

jillrae
Posts: 275
Joined: Tue Nov 22, 2005 12:26 pm
Location: Accident, MD USA
Contact:

Postby jillrae » Tue May 01, 2007 11:42 am

No, the folder does not exist at

/var/opt/scalix/??/s/user/

KevinAnderson

Postby KevinAnderson » Tue May 01, 2007 12:12 pm

Hi Jillrae

omshowu -O $((32#??))

where ?? is the last letters from your directory, 48 in your case. This is the user's ID in base32, and that ugliness will convert it to something usable for omshowu.

A big thanks to Dave for the format which makes this simple.

This will show which user is associated with the missing directory. Hopefully, (and I'd bet on it) you will see an error that the user doesn't exist. If it shows a user, then do NOT continue with deleting the directories as indicated in the next paragraph.

That will then allow you to delete the folder. Most likely, you will see that /var/opt/scalix/??/s/user/u000048 does not exist, but that the related folder, which starts with a g, does exist. If you delete the "g" folder, the error will go away.

In some circumstances, it seems that when a user is deleted, one of their folders is not removed, and this error is the result. It's not serious, but it's annoying.

Kev.

KevinAnderson

Postby KevinAnderson » Tue May 01, 2007 12:15 pm

I should say too, that to clean the orphans, you should run "omscan -Aavfx". You will likely need to run it 2 or 3 times before all the orphans are gone. If it takes more than 5, you should probably report that here too.

Kev.

jillrae
Posts: 275
Joined: Tue Nov 22, 2005 12:26 pm
Location: Accident, MD USA
Contact:

Postby jillrae » Tue May 01, 2007 12:41 pm

No hits, No runs, No erros, No missing users, No orphans! A home run!

Thanks

jillrae

PS What can I say, spring FINALLY arrive here :-)

rudi
Posts: 289
Joined: Mon Nov 22, 2004 6:53 am

Postby rudi » Wed May 09, 2007 3:34 am

Hi,

I have this error below when I make a omscan -Aavfx. The Version is Scalix Server 11.0.4 OS SLES9.

Checking/Scanning message lists .... done.
Scanning name directories .... done.
Scanning temp domain .... done.
Checking/Scanning message queues .... done.

Missing children ....

Owner Info :
Parent Container : ~/user/g00004a, RecNum : 0
Missing Child : ~/user/g00004a/00000v8
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g00004a, RecNum : 1
Missing Child : ~/user/g00004a/0000001
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g00004a, RecNum : 2
Missing Child : ~/user/g00004a/0000002
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g00004a, RecNum : 3
Missing Child : ~/user/g00004a/0000003
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g00004a, RecNum : 4
Missing Child : ~/user/g00004a/0000004
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g00004a, RecNum : 5
Missing Child : ~/user/g00004a/0000005
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000042, RecNum : 0
Missing Child : ~/user/g000042/00000v8
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000042, RecNum : 1
Missing Child : ~/user/g000042/0000001
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000042, RecNum : 2
Missing Child : ~/user/g000042/0000002
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000042, RecNum : 3
Missing Child : ~/user/g000042/0000003
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000042, RecNum : 4
Missing Child : ~/user/g000042/0000004
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000042, RecNum : 5
Missing Child : ~/user/g000042/0000005
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000047, RecNum : 0
Missing Child : ~/user/g000047/00000v8
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000047, RecNum : 1
Missing Child : ~/user/g000047/0000001
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000047, RecNum : 2
Missing Child : ~/user/g000047/0000002
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000047, RecNum : 3
Missing Child : ~/user/g000047/0000003
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000047, RecNum : 4
Missing Child : ~/user/g000047/0000004
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Owner Info :
Parent Container : ~/user/g000047, RecNum : 5
Missing Child : ~/user/g000047/0000005
Child Type : Container.
Child Creator : ********
Child Subject : User Folder.

Missing user directories ....
~/user/u00004a
~/user/u000042
~/user/u000047

Disk usage ....

USER NAME IN OUT PDG FCAB DLST WB TOTAL (KB)


Bulletin Board area - - - - - - 184584

sxadmin /mail,node/CN=sxad 1526 1 22 92874 1 1 94425
sxqueryadmin /mail,node/CN 1 1 1 2 1 1 7
Test User/mail,node/CN=We 13 1 5 15 1 1 36
********138 0 0 0 0 0 0 0
testbenutzer /mail,node/CN 1 1 1 12 1 1 17
********130 0 0 0 0 0 0 0
********135 0 0 0 0 0 0 0

The "missing childs" don't exist. There are only this files in it:

-rw-rw---- 1 scalix scalix 54 Mar 12 16:23 000002n
-rw-rw---- 1 scalix scalix 0 Mar 12 16:23 000002n.lck

I ran omscan -Aavfx 5 times, but it doesn't help. How can I fix this problem?

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Postby mikethebike » Wed May 09, 2007 9:05 am

Rudi,

based on you routput do the following:

omshowu -O 138
omshowu -O130
omshouw -O 135

if users are not returned for those, delete the u and g directories and their contents
rm ~user/g*4a/*
rmdir ~user/g00004a
rm ~user/u*4a/*
rmdir ~user/u*4a

etc

,then re-run the omscan.

Mick

rudi
Posts: 289
Joined: Mon Nov 22, 2004 6:53 am

Postby rudi » Wed May 09, 2007 10:01 am

Hi,

that works, thanks!!!!

Do you know what I can do with bad extensions, after an omscan -Aavfx:

Bad extensions ....

Owner Info : Stefan Smith / mail, node/CN=Smith, Stefan
Parent Container : ~/data/00000fh/00ibngk:1, RecNum : 85
Child Affected : ~/data/000001j/00ih6na:1
Child Subject : =?UTF8?b?U3QuIFDDtmx0ZW4=?=

Thanks for your help!!!!!

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Postby mikethebike » Wed May 09, 2007 10:05 am

Rudi,

the omscan with "vfx" option will fix/remove those bad extensions

Mick

rudi
Posts: 289
Joined: Mon Nov 22, 2004 6:53 am

Postby rudi » Wed May 09, 2007 11:34 am

Yes, the error was fixed.
Thanks!!!!!

lleahu
Posts: 47
Joined: Tue Sep 05, 2006 7:48 pm
Location: Tinley Park, IL
Contact:

Postby lleahu » Fri May 18, 2007 1:56 pm

I'm having the same problem, however, even after 5 attempts of omscan, I still get this error:

---------------------------------------------------------------------
# omscan -Aavfx

Missing children ....

Owner Info : sxadmin / sxmail/CN=sxadmin
Parent Container : ~/user/g000035, RecNum : 1
Missing Child : ~/user/g000035/0000001
Child Type : Container.
Child Creator : sxadmin /sxmail/CN=sxadmin
Child Subject : User Folder.
--------------------------------------------------------------------

Any thoughts on how to fix this?

lleahu
Posts: 47
Joined: Tue Sep 05, 2006 7:48 pm
Location: Tinley Park, IL
Contact:

Postby lleahu » Fri May 18, 2007 4:31 pm

Some more information:

When I try to export sxadmin's mailbox so that I can delete and re-create the user and not loose any email, I get the following error:

sxmboxexp : [SYS 2] /var/opt/scalix/sl/s/user/g000035/0000001 file system error number 2

Any thoughts on how to resolve?

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Postby mikethebike » Mon May 21, 2007 9:37 am

Hi,
that sounds a bit tougher to fix.
I think that user is missing the "inbox" container.

The only thing I can think at this time, is to look in that "g" directory to see if there is a 0000001 file, if there is not and you think there should be other data in folders, do this.

Create a new user, and find that new user's "g" directory

omshowu -n "new user" -f

copy that new user's 0000001 file into /var/opt/scalix/sl/s/user/g000035

Then perform the copy out

Mick

lleahu
Posts: 47
Joined: Tue Sep 05, 2006 7:48 pm
Location: Tinley Park, IL
Contact:

Postby lleahu » Mon May 21, 2007 10:16 am

mikethebike wrote:Hi,
that sounds a bit tougher to fix.
I think that user is missing the "inbox" container.

The only thing I can think at this time, is to look in that "g" directory to see if there is a 0000001 file, if there is not and you think there should be other data in folders, do this.

Create a new user, and find that new user's "g" directory

omshowu -n "new user" -f

copy that new user's 0000001 file into /var/opt/scalix/sl/s/user/g000035

Then perform the copy out

Mick


Thank you very much Mick!!

That works.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 3 guests

cron