Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x => Topic started by: Jáder on January 30, 2022, 12:39:14 PM

Title: upgrade from SME9 -> 10 - same hardware + SSD
Post by: Jáder on January 30, 2022, 12:39:14 PM
I´m really far away from my old servers: 3.500km at least!
Now I´ve to plan a migration from SME9 to SME10.
Some clients are going to buy a new server = no problem, install SME10 on them, copy data over network using RSYNC (easy!)
Some cliente are reusing same hardware, so I think abou to start using SSD (even a 128GB is enought to SME!).

What I think about to ask to junior guy on site:
1) shutdown server, disconnect 2x 2TB spin drives, install new SSD256, boot server
2) install SME10 on new SSD256 and test/configure/update
3) shutdown server, install old 2x 2TB spin drives, boot server
4) mount old data disk as /home/e-smith/files to have minimal problems (3.500km AWAY)

I see some problems:
1) on boot, I´m not sure hardware will choose to boot from NEW SSD drive, neither I know how to avoid it to boot from old SME9 partitions (besides to remove/delete them! SCARRY @ 3.500km away!!)
2) after finished (if it works!) I´ll have a old SME9 OS data/partition on my now DATA disks... I´d like to remove them but not  sure how to do it! (I´m talking about to remove original /boot partition and other things besides data)
3) not sure if this would be wise or best way to do it.

I´ll be onsite on may (vacancy!!) so I can use one day to do this, but no more than that... and some servers are full with 1TB (on RAID1 of 2x 2TB disks) of data, I cannot afford spare time to copy that beside the affa backup I´ve on spare server (different hardware) on same LAN.

Any toughts ?? Regards !

Title: Re: upgrade from SME9 -> 10 - same hardware + SSD
Post by: sages on January 30, 2022, 01:25:42 PM
search be thy friend
Title: Re: upgrade from SME9 -> 10 - same hardware + SSD
Post by: Jean-Philippe Pialasse on January 30, 2022, 01:46:51 PM
only challenge i see is if you use lvm you will have to rename lvm partition from older disk or the name might conflict when trying to mount the partitions. 

other than that your plan is good. 

you could even plan to keep old disk after removing boot partition as is as data disk, mount it in /media/old and mount bind all important folders where you want.

the cautiously tidy non needed content from old disk  (system files likes /media/old/bin ….)

for raid and lvm to be available on boot you might need to add few options to grub and so on but all is available around here using search on forum and wiki.
Title: Re: upgrade from SME9 -> 10 - same hardware + SSD
Post by: ReetP on January 31, 2022, 03:31:41 PM
4) mount old data disk as /home/e-smith/files to have minimal problems (3.500km AWAY)

Yup - just remember as JP pointed out they may be LVM/Raid so need mounting correctly.

Note you may be able to use this with CopyFromDisk but you need to test first:

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

Also info there on mounting LVM.

Quote
I see some problems:
1) on boot, I´m not sure hardware will choose to boot from NEW SSD drive, neither I know how to avoid it to boot from old SME9 partitions (besides to remove/delete them! SCARRY @ 3.500km away!!)

If you have your junior on site he can watch the boot process (Aten KVM over IP is useful here, as well as Proxmox and VMs....!)


Quote
2) after finished (if it works!) I´ll have a old SME9 OS data/partition on my now DATA disks... I´d like to remove them but not  sure how to do it! (I´m talking about to remove original /boot partition and other things besides data)

Mount on any old Linux box and wipe them.

Quote
I´ll be onsite on may (vacancy!!) so I can use one day to do this, but no more than that... and some servers are full with 1TB (on RAID1 of 2x 2TB disks) of data, I cannot afford spare time to copy that beside the affa backup I´ve on spare server (different hardware) on same LAN.

Though some have used Affa for upgrading we don't recommend it.

Good luck.