imsbackup with multiple partitions
Hello,
From what I understand, 5.2 is quite limited in how imsbackup can be used with multiple partitions. In fact, if I read the docs correctly, imsbackup only dumps the current default partition. Looks like things improve in version 6+ with the ability to specify a partition in imsbackup.
Suppose I had 3 partitions on iMS 5.2: primary, secondary and tertiary. Also suppose I have properly provisioned users, and they all have the appropraite mailMessageStore attribute in LDAP. i.e., if my account is on primary parition, then my user record has mailMessageStore: primary. If my account is on tertiary partition, then my user account has mailMessageStore: tertiary.
If I want to use imsbackup, then my only option would be to switch the default partition before running the imsbackup command? And switching the default partition requires a full stop and start of the msg-server, correct?
Many thanks for any comments...
iPlanet Messaging Server 5.2 HotFix 2.10 (built Dec 26 2005)
libimta.so 5.2 HotFix 2.10 (built 12:00:16, Dec 26 2005)
[1084 byte] By [
saspyrison] at [2007-11-26 11:58:46]

# 1
Hi,
Whilst the imsbackup command under iMS5.2 doesn't allow you to backup users on a *specific* partition, my testing shows that you can indeed backup users who are not on the primary partition e.g.
bash-2.05$ ./mboxutil -l
msgs Kbytes last msg partition quotaroot mailbox
00 2006/11/20 16:06 primaryno quota user/shjorth/INBOX
00 none primary user/shjorth/Drafts
00 none primary user/shjorth/New Folder
00 none primary user/shjorth/Sent
00 none primary user/shjorth/Trash
00 2006/11/03 09:50 298 user/test/INBOX
00 2006/11/03 08:41 2user/test/Drafts
00 2006/11/03 08:41 2user/test/Sent
00 2006/11/03 09:15 2user/test/Trash
store.defaultpartition = primary
store.partition.2.path = /usr/iplanet/server5/msg-mumble/store/partition/2
store.partition.primary.path = /usr/iplanet/server5/msg-mumble/store/partition/primary
bash-2.05$ ./imsbackup -f /tmp/backup -g -v '/'
--
Tape Version : 2
Backup Date: Thu, 07 Dec 2006 09:29:25
Message Store : mumble
Block factor : 20
--
/mumble
/mumble/ALL
/mumble/ALL/shjorth
/mumble/ALL/shjorth/INBOX
/mumble/ALL/shjorth/Drafts
/mumble/ALL/shjorth/New Folder
/mumble/ALL/shjorth/Sent
/mumble/ALL/shjorth/Trash
/mumble/ALL/test
/mumble/ALL/test/INBOX
/mumble/ALL/test/Drafts
/mumble/ALL/test/Sent
/mumble/ALL/test/Trash
If you want to speed up the backups, you may want to look into backup-groups which allows you to backup based on username e.g. all users starting with 'a'. That way you can run multiple backups at once (e.g. a/b/c/d users at once, e/f/g/h next .... and so on).
Regards,
Shane.
# 2
First, you DO NOT want to change the default partition, unless you're very sure that all your users have their partition in their ldap entry. Otherwise, you risk having them get moved to a different partition, in case of disk problems.
imsbackup is actually partition ignorant. That means that to it all partitions are the same, and will be backed up and restored per the ldap entry.