Koozali.org: home of the SME Server

sme 9 to 10 upgrade tool

Offline baddrink

  • 4
  • +0/-0
sme 9 to 10 upgrade tool
« on: November 02, 2021, 06:58:18 PM »
  Im trying to obviously upgrade sme 9 to 10 and i followed the upgrade tool instructions from the wiki but http://dev.centos.org/centos/6/upg/x86_64/ . Does not appear to be a valid repository any more. Ill admit im a bit green on this as its been a while since i used it.


 The nice and bad thing about linux is you don't use the command often enough to remember them, because the system runs smoothly.

I just realized this could actually be a question for the sme 9 forums.
« Last Edit: November 02, 2021, 07:04:48 PM by baddrink »

Offline bunkobugsy

  • *
  • 280
  • +4/-0
Re: sme 9 to 10 upgrade tool
« Reply #1 on: November 02, 2021, 08:02:28 PM »
upgrade tool instructions from the wiki?  you mean this?
https://wiki.koozali.org/Upgrade_check_SME9_to_SME10

There is no more official support for upgrade CentOS 6 --> 7 https://centos.org/forums/viewtopic.php?t=69363#p291370
And the UpgradeTool was removed: https://wiki.centos.org/TipsAndTricks/CentOSUpgradeTool

You have to backup SME9, install a fresh SME10 and restore to it.
Search the wiki/forums. I recommend https://wiki.koozali.org/Migratehelper
« Last Edit: November 02, 2021, 08:07:48 PM by bunkobugsy »

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: sme 9 to 10 upgrade tool
« Reply #3 on: November 02, 2021, 10:32:06 PM »
the early migrate in place centos 6 to centos 7 have been a failure and have been removed early.

you have to choose your best backup method (there are plenty flavor around here)

install sme10

restore
install back your contribs.

Offline baddrink

  • 4
  • +0/-0
Re: sme 9 to 10 upgrade tool
« Reply #4 on: November 03, 2021, 09:18:26 PM »
On a test machine i installed sme 9 , configured it the way i wanted it and created a few users , added files to their home directories , then logged in as admin and did the default backup from the config to a usb drive. I then pulled the drive and installed a new drive and sme 10. When i rebooted to sme 10 it asked me if i wanted to restore from back up i said yes plugged the usb drive in and bam , a reboot later i was up and all my settings where there.

 No here comes my question, this was on a test server with little to no data on it, im going to be doing this to a 1 tb server. How does migratehelper.sh work better? ( not sarcastic seriously does it speed things up? )

 Im not moving to a new server, im using the same old server with new drives. Here is my recipe and please correct me if im wrong.

step 1. login as admin on server
step 2. choose option 8 ( after connecting usb drive )
step 3. remove old drives after backup is done ( several hours later )
step 4. install new drives and sme 10 ( hope no issues )
step 5. Reboot server and say yes to restore from back up from usb drive
step 6. Reboot
step 7. install updates
Step 8 check workstations to see if they can see server/ access files / etc
step 9. Wait to hear issues that i didnt notice

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: sme 9 to 10 upgrade tool
« Reply #5 on: November 03, 2021, 11:27:55 PM »
Read and reread https://forums.contribs.org/index.php/topic,54433.0.html  there can be gotchas involved

Console backup/restore Its simple and built in, for most it just works..

insert between 7 and 8 - reinstall contribs on sme10 server where needed

Migratehelper - needs a little more work but can be taylored to your own needs, yes can be faster. no I did not use it, I used default console backup and restore.

--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: sme 9 to 10 upgrade tool
« Reply #6 on: November 03, 2021, 11:53:32 PM »
migratehelper will help speed up thing by excluding the big folder with huge files.
you are then able to to backup and restore the bare minimum and then rsync things from your old drives to the new ones.


let’s say you have 800gb of data you sync later from sata to sata(or even from usb to sata), and only backup and restore 80gb to usb and have your server up with only data missing but services up it will be way faster than backup and restore 880 gn before having the server up and running. 

to note:  you might have to conmect tye old drives to another  non ame linux if you are using lvm at least to change the lvm names or they will conflict with the new sme10 drives. 

also for next upgrade having the big data on a separate set of disk from the system could also speed things up.  unmount and unplug data, backup everything else, install , restore, plus back and remount, instal missing contribs.
« Last Edit: November 03, 2021, 11:57:28 PM by Jean-Philippe Pialasse »

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: sme 9 to 10 upgrade tool
« Reply #7 on: November 04, 2021, 12:02:15 AM »
Migratehelper is for people with less than standard installs, and a decent amount of knowledge.

Some of us have seriously hacked about installs (how do you think we test stuff?) that will probably bellyflop obscenely on a backup/restore. Jean Philppe....  :lol:

Forget speed...... Save a few hours, and?

Yes, if you can directly attach a drive it'll be faster than USB.

What you really want is success. Slow and steady if needs me.

Work on that and don't cut corners. You won't have to repeat then...

Leave the weird scripts out unless you really have to :-)
...
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 baddrink

  • 4
  • +0/-0
Re: sme 9 to 10 upgrade tool
« Reply #8 on: November 04, 2021, 04:56:43 PM »
 I did see 1 issue i will run into, we have some machines that are still windows 7 which of course uses smb1. I see that i can enable smb1 on sme 10 but my brain is so scrambled i dont see how to enable it.

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: sme 9 to 10 upgrade tool
« Reply #9 on: November 04, 2021, 05:17:17 PM »
I did see 1 issue i will run into, we have some machines that are still windows 7 which of course uses smb1. I see that i can enable smb1 on sme 10 but my brain is so scrambled i dont see how to enable it.

Hmm. You should really read this in my sig.

Quote
3. Don't ask for support on Unsupported versions of software

Win 7 is EOL and has been for some time. For your own safety and security you should upgrade.

Note also that SMB v1 is insecure. There is smeserver-wsdd for network browsing for M$ machinery that get lost. (I believe that W7 can use SMB 2 which is better than a poke in the eye with a blunt stick)

If you really want to enable SMB v1 or v2 then you can search here - or the wiki - where this has been answered but others, but I am not about to help you make your systems even more insecure because I don't want the blame when you get hacked.

Please, just bite the bullet and upgrade to something more secure than W7.
...
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 baddrink

  • 4
  • +0/-0
Re: sme 9 to 10 upgrade tool
« Reply #10 on: November 04, 2021, 07:16:23 PM »
 Unfortunately i cant bite the bullet, these machines are 50,000+ dollar cnc machines and the code to operate them doesn't support windows 10.

Offline bunkobugsy

  • *
  • 280
  • +4/-0
Re: sme 9 to 10 upgrade tool
« Reply #11 on: November 04, 2021, 07:22:35 PM »
I did see 1 issue i will run into, we have some machines that are still windows 7 which of course uses smb1. I see that i can enable smb1 on sme 10 but my brain is so scrambled i dont see how to enable it.

Win7 can do SMB2 easily, so it will see SME10 shares.

https://docs.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: sme 9 to 10 upgrade tool
« Reply #12 on: November 04, 2021, 11:09:56 PM »
Unfortunately i cant bite the bullet, these machines are 50,000+ dollar cnc machines and the code to operate them doesn't support windows 10.

Regrettably, and I know you don't want to hear it, but you had years to sort this out.

The Win 7 EOL date was known years away.

And at that price I'd have been asking the suppliers some serious questions about their support package beyond Win 7, and with written answers in the contract, before parting with that much cash.

They have fleeced you, and they are the ones you should be directing your questions too.

You should be asking them how they are going to get SMB 3 support on Win 7 and maintain support for it rather than asking us how to reduce the security of your server.

Sorry that sounds brutal but it's the ugly truth. They are expecting you, and us, to compromise. Not them, or Microsoft. Funny eh?
...
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