imsrestore - Segmentation Fault

Using

imsrestore -f - /primary/user/someone/INBOX < /box4/backup/backupfile

I get a segmentation fault after more than half of the mailbox is restored. I am running Messaging Server 6 2005Q1.

What can be done? May I break up the backup file? How could I generate a reference file to use with imsrestore's -r option?

Any help welcome.

Cheers,

Siegfried

[399 byte] By [Siegfried-Ma] at [2007-11-26 17:05:00]
# 1
Forgot to tell the version: It's 6.2-3.04 (built Jul 15 2005)Cheers,Siegfried
Siegfried-Ma at 2007-7-8 23:32:45 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

The problem is unlikely to be in your backup file, but in your store, currently.

I'd run reconstruct -m on your store, followed by reconstruct -r, and see if that takes care of the problem

You might want to apply a more current patch, too. Several crashing issues have been taken care of in the last 18 months.

jay_plesseta at 2007-7-8 23:32:45 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3

Thanks for the hint, Jay.

Did recontruct -m, then reconstruct -r after I restarted the server.

Though it did not help, still get the segmentation fault. It's always at the same point in the backupfile, f.e. this one stopped 3 times at the same message:

/box2/groupD/dsomeone/INBOX/18435 restoring...Segmentation fault

The watcher log then asks to restart some components:

Watched 'imsrestore' process 11314 exited abnormally

[02/02/07 20:29:56] Failure occurred. Please restart the following servers: store imap pop http

Is there any way to solve this without applying a patch?

Siegfried

Siegfried-Ma at 2007-7-8 23:32:45 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4
If you have a core file, posting a "pstack" of the core can help. At this point, I cannot tell you if a patch would fix it.
jay_plesseta at 2007-7-8 23:32:45 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5
Where would i find the core?
Siegfried-Ma at 2007-7-8 23:32:45 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 6
Tried to restore the backup to a fresh account and got the segmentation fault at the same message as before:./imsrestore -f - -m /soft/mapfile /primary/user/someone < /box4/backup/box1-S.backupAny more ideas?
Siegfried-Ma at 2007-7-8 23:32:45 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 7

To solve my restore problem I now do the following:

1. create a listing of a specific account with imsrestore's -t option

2. trim the output by removing the problematic entries

3. use a script to work the listing to restore the messages one by one

This will take some time.

Siegfried-Ma at 2007-7-8 23:32:45 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 8

If you have coreadm set up, then that will tell you where the core file is.You also need to check ulimit for the messaging server user, to make sure that it can drop core.

Your core file may be in

/opt/SUNWmsgsr/sbin

if you have one.

At this point, I can't tell you if a patch will fix it, or not.

jay_plesseta at 2007-7-8 23:32:45 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 9
Thanks, Jay, but there is no core file.I opened a new thread trying to get more info about imsrestore's -r option.
Siegfried-Ma at 2007-7-8 23:32:45 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...