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
# 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.
# 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
# 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.
# 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.