Hello, Dovecot 2.3.4_3 on FreeBSD 11.2. I am using mdbox Alternate Storage since about two years without any problems. However, the disk containing this storage is almost full and I have to move this data to another disk, probably zpool. Would it be okay to do the following? 1) Shut down dovecot (and mail server) so no new mail comes in. 2) Copy/move all files in ALT location to new disk, using shell commands like cp/mv/cpdup. 3) Change the path to ALT in dovecot-conf mail_location. 4) Change the 'dbox-alt-root' soft-links in each users main (INBOX) directory to point to this new location. 5) Start up dovecot and mail server. Am I missing something or maybe there is a better way? -- Thanks, and have a nice new year. bOnK
Hi, if you have the new disk installed on the same server you can try: - mount new disk for example in /mnt/temp - rsync -vaWH all files + directories from the old to the new disk - stop dovecot so no changes will happen on disks - make a final rsync again -> should not take many time - umout the old disk - mount new disk to the original "alt-storage" path, so you don't have to change each soft-link in each users directory. - start dovecot Not tested, but in theory it should work. Best Urban Am 31.12.18 um 15:02 schrieb bOnK:> Hello, > > Dovecot 2.3.4_3 on FreeBSD 11.2. > > I am using mdbox Alternate Storage since about two years without any problems. > However, the disk containing this storage is almost full and I have to move this data to another disk, probably zpool. > > Would it be okay to do the following? > 1) Shut down dovecot (and mail server) so no new mail comes in. > 2) Copy/move all files in ALT location to new disk, using shell commands like cp/mv/cpdup. > 3) Change the path to ALT in dovecot-conf mail_location. > 4) Change the 'dbox-alt-root' soft-links in each users main (INBOX) directory to point to this new location. > 5) Start up dovecot and mail server. > > Am I missing something or maybe there is a better way? >
Okay, thank you. On 3-1-2019 11:25, Urban Loesch via dovecot wrote:> Hi, > > if you have the new disk installed on the same server you can try: > > - mount new disk for example in /mnt/temp > - rsync -vaWH all files + directories from the old to the new disk > - stop dovecot so no changes will happen on disks > - make a final rsync again -> should not take many time > - umout the old disk > - mount new disk to the original "alt-storage" path, so you don't have > to change each soft-link in each users directory. > - start dovecot > > Not tested, but in theory it should work. > > Best > Urban > > Am 31.12.18 um 15:02 schrieb bOnK: >> Hello, >> >> Dovecot 2.3.4_3 on FreeBSD 11.2. >> >> I am using mdbox Alternate Storage since about two years without any >> problems. >> However, the disk containing this storage is almost full and I have >> to move this data to another disk, probably zpool. >> >> Would it be okay to do the following? >> 1) Shut down dovecot (and mail server) so no new mail comes in. >> 2) Copy/move all files in ALT location to new disk, using shell >> commands like cp/mv/cpdup. >> 3) Change the path to ALT in dovecot-conf mail_location. >> 4) Change the 'dbox-alt-root' soft-links in each users main (INBOX) >> directory to point to this new location. >> 5) Start up dovecot and mail server. >> >> Am I missing something or maybe there is a better way? >>