Koozali.org: home of the SME Server

sme 9.2 to sme 10 migrate procedure

Offline ilconte

  • ***
  • 130
  • +0/-0
sme 9.2 to sme 10 migrate procedure
« on: October 26, 2021, 08:27:51 PM »
hello everyone I wanted to know which correct procedure should I follow to pass an EMS 9.2 to an EMS 10
Thank you

 :-P

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: sme 9.2 to sme 10 migrate procedure
« Reply #1 on: October 26, 2021, 10:21:22 PM »
search the forum there are plenty available. 

all are based on backup and restore. 

1/ backup

- console backup
- workstation backup
- migratehelper contrib (my favorite)
- backuppc, create a tar.gz
- lazyadmin tools + rsync of data
- affa (not my favorite in term of migration)

2/ install

3/ restore
- console restore
- workstation restore
- rsync
- mix of above solutions (my favorite)

4/ reinstall contribs

Offline david000

  • ****
  • 196
  • +0/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #2 on: November 12, 2021, 05:42:15 PM »
search the forum there are plenty available. 

all are based on backup and restore. 

1/ backup

- console backup
- workstation backup
- migratehelper contrib (my favorite)
- backuppc, create a tar.gz
- lazyadmin tools + rsync of data
- affa (not my favorite in term of migration)

2/ install

3/ restore
- console restore
- workstation restore
- rsync
- mix of above solutions (my favorite)

4/ reinstall contribs

A quick question,

Once the restore is done, is it best then to run the updates in server-manager before going on to install contribs ?  IIRC it took a little while for my SME10 test new system to recognise that there were updates to run.

As an aside, do you happen to know if Fetchmail is part of the default install (ie to enable the function of the "Configure External Mailbox Retrieval" in server manager).

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #3 on: November 12, 2021, 10:25:06 PM »
A quick question,

Once the restore is done, is it best then to run the updates in server-manager before going on to install contribs ?  IIRC it took a little while for my SME10 test new system to recognise that there were updates to run.

As an aside, do you happen to know if Fetchmail is part of the default install (ie to enable the function of the "Configure External Mailbox Retrieval" in server manager).

Bit of a toss up, contribs first? then a full # yum update not sure, I think I have tended to do the yum update first.

Builtin basic fetchmail is different from the contrib fetchmail..see https://wiki.koozali.org/Fetchmail contrib has more

There is currently a dev version in /smetest I think, some ongoing work on the contrib, I think basic functionality is OK
--
qui scribit bis legit

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #4 on: November 13, 2021, 04:06:22 PM »
I think this will probably still work if your setup isn't too fancy:

https://wiki.koozali.org/UpgradeDisk#Moving_from_SME_8.x_to_SME_9.x

On the old installation

Code: [Select]
signal-event pre-backup

Fire up v10 and mount the v9 drive - easier if it isn't LVM.

mount /dev/yourolddrive /mnt/tmp

Code: [Select]
db configuration setprop backup Program CopyFromDisk status enabled
signal-event pre-restore
signal-event restore-tape /mnt/tmp (note: this step may take a long time depending on how much data is being restored
signal-event post-upgrade
signal-event reboot

You will need a reconfigure for networking on first boot.

Terry might want to give this a test drive!!

I have added a couple of other pages into the Backup Category to try and group all the methods:

https://wiki.koozali.org/Category:Backup
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline david000

  • ****
  • 196
  • +0/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #5 on: November 15, 2021, 12:24:01 PM »
There is currently a dev version in /smetest I think, some ongoing work on the contrib, I think basic functionality is OK

Looking at my SME10 test box I seem to have this installed:

Code: [Select]
Version     : 1.6
Release     : 19.el7.sme

I think I installed using:

Code: [Select]
yum --enablerepo=smecontribs install smeserver-fetchmail
             signal-event console-save

But looking at the wiki the current SME10 version is 1.6-19.el7

Do I need to point it to a different repo ?





Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: sme 9.2 to sme 10 migrate procedure
« Reply #6 on: November 15, 2021, 03:59:33 PM »
A quick question,

Once the restore is done, is it best then to run the updates in server-manager before going on to install contribs ?  IIRC it took a little while for my SME10 test new system to recognise that there were updates to run.

As an aside, do you happen to know if Fetchmail is part of the default install (ie to enable the function of the "Configure External Mailbox Retrieval" in server manager).

For completeness of answer :

YES there is a small implementation of fetchmail in the core of SME, however if you have more than one account to retrieve or need advanced configuration as Terry pointed out you need to install the contrib.

Then you need to remove the configuration from the core SME as the contrib acts as a separate service ignoring the core configuration and they could start competiting to fetch messages.

Offline david000

  • ****
  • 196
  • +0/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #7 on: November 15, 2021, 04:05:53 PM »
Then you need to remove the configuration from the core SME as the contrib acts as a separate service ignoring the core configuration and they could start competiting to fetch messages.

ah, I didn't know that.  At the moment I only use it to collect from a single additional pop box but would not know how to remove\amend the config from the core.

It's generally worked ok, but occasionally do get fetch messages if the server reboots. The 'extra' Fetchmail seems to collect all mail in the second pop box irrespective of if it's already been collected prior to the reboot.

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #8 on: November 17, 2021, 02:01:16 AM »
Looking at my SME10 test box I seem to have this installed:

Code: [Select]
Version     : 1.6
Release     : 19.el7.sme

I think I installed using:

Code: [Select]
yum --enablerepo=smecontribs install smeserver-fetchmail
             signal-event console-save

But looking at the wiki the current SME10 version is 1.6-19.el7

Do I need to point it to a different repo ?

the following in a term window, will inform what is installed.

# rpm -q semserver-fetchmail
smeserver-fetchmail.noarch 0:1.6-19.el7.sme

Looks like you have latest stable version, there is a dev version in /smetest smeserver-fetchmail.noarch 0:1.6-21.el7.sme see Bug 10289 and 11058 and 10538 if you are confident please test and add any comments to the bugs
--
qui scribit bis legit

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #9 on: November 22, 2021, 05:18:04 PM »
I think this will probably still work if your setup isn't too fancy:

https://wiki.koozali.org/UpgradeDisk#Moving_from_SME_8.x_to_SME_9.x



another approach is to clone the server using this procedure, with no files and emails, start the new server, rename the old one and change its IP address and then rsync all ibays and users' homedirs/mailboxes.
with this approach you don't have to wait for the restore to complete to be online again regarding emails.

HTH
« Last Edit: November 23, 2021, 11:05:05 AM by Stefano »

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #10 on: November 22, 2021, 06:12:32 PM »
You've had a URL breakdown mate.

$this > /dev/null

:rofl:

We're all getting too old.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #11 on: November 23, 2021, 11:06:38 AM »
You've had a URL breakdown mate.

you're right.. corrected in my post, I paste here too:

https://wiki.koozali.org/Backup_server_config#Cloning_a_server_for_Test_purposes.2C_using_inclusion_.26_exclusion_files

Quote
We're all getting too old.

indeed, but we'd stay humble :-D

Offline Fumetto

  • *
  • 874
  • +1/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #12 on: November 23, 2021, 11:29:13 AM »
Quote
Quote
We're all getting too old.
indeed, but we'd stay humble :-D
I disagree ... you are (we are) not old, but seasoned, like cheese ... we improve with time... :-D

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #13 on: November 23, 2021, 04:20:25 PM »
indeed, but we'd stay humble :-D
I disagree ... you are (we are) not old, but seasoned, like cheese ... we improve with time... :-D

yes this is the deal, problem is my wife is ever complaining about the ever growing mature chees smell LOL :-)
--
qui scribit bis legit

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: sme 9.2 to sme 10 migrate procedure
« Reply #14 on: November 23, 2021, 04:21:31 PM »
yes this is the deal, problem is my wife is ever complaining about the ever growing mature chees smell LOL :-)


ROTFL