On 26/01/15 13:00, Marc Muehlfeld wrote:> P2V yes. But I don't understand how REAR helps, when the OP want to do > an OS switch from Gentoo to Ubuntu at the same time?!Hello Marc If I cannot switch from Gentoo to Ubuntu (I am currently testing in VirtualBox Ubuntu Server fresh install)... then I will just use REAR to do P2V and keep it Gentoo :( Yes, I would rather have 2 DCs which are exactly the same O/S and Samba version. Yes, I want to end with Ubuntu Server 14.04.1 LTS running latest Samba stable from Git. However, I am really worried about the consequences of getting it wrong. Hence, why I am testing this at home with VBox. Regards, Paul Littlefield
On 26/01/15 13:06, Paul Littlefield wrote:> If I cannot switch from Gentoo to Ubuntu (I am currently testing in VirtualBox Ubuntu Server fresh install)... then I will just use REAR to do P2V and keep it Gentoo :(Hello All Alas, as predicted when I try to restore the 'real DC1' files to the 'virtual DC1' and test, it fails... root at samba:~# /usr/local/samba/bin/samba-tool ntacl sysvolreset Traceback (most recent call last): File "/usr/local/samba/bin/samba-tool", line 33, in <module> from samba.netcmd.main import cmd_sambatool File "/usr/local/samba/lib/python2.7/site-packages/samba/__init__.py", line 27, in <module> import samba.param ImportError: /usr/local/samba/lib/private/libserver-role.so: version `SAMBA_4.2.0PRE1_GIT_F8EC0F9' not found (required by /usr/local/samba/lib/python2.7/site-packages/samba/param.so) ...which is why this was put on the official Samba Wiki and I did read it, but thought it was worth a try... "Very important notes: Never do a restore and a version change at once! Always restore on a system that uses the same Samba version than the one you created the backup on! Restore on a system with the same IP and Hostname. Otherwise you'll run into Kerberos and DNS issues. Recommended: Restore on the same OS than where you created the backup." So, it looks like I have to virtualise my real Gentoo DC1 and stick with that. Will I ever be able to swap operating system?! :( Regards, Paul Littlefield
On 26/01/15 14:55, Paul Littlefield wrote:> On 26/01/15 13:06, Paul Littlefield wrote: >> If I cannot switch from Gentoo to Ubuntu (I am currently testing in >> VirtualBox Ubuntu Server fresh install)... then I will just use REAR >> to do P2V and keep it Gentoo :( > > Hello All > > Alas, as predicted when I try to restore the 'real DC1' files to the > 'virtual DC1' and test, it fails... > > > root at samba:~# /usr/local/samba/bin/samba-tool ntacl sysvolreset > Traceback (most recent call last): > File "/usr/local/samba/bin/samba-tool", line 33, in <module> > from samba.netcmd.main import cmd_sambatool > File > "/usr/local/samba/lib/python2.7/site-packages/samba/__init__.py", line > 27, in <module> > import samba.param > ImportError: /usr/local/samba/lib/private/libserver-role.so: version > `SAMBA_4.2.0PRE1_GIT_F8EC0F9' not found (required by > /usr/local/samba/lib/python2.7/site-packages/samba/param.so) > > > ...which is why this was put on the official Samba Wiki and I did read > it, but thought it was worth a try... > > > "Very important notes: > Never do a restore and a version change at once! Always restore on a > system that uses the same Samba version than the one you created the > backup on! Restore on a system with the same IP and Hostname. > Otherwise you'll run into Kerberos and DNS issues. Recommended: > Restore on the same OS than where you created the backup." > > > So, it looks like I have to virtualise my real Gentoo DC1 and stick > with that. > > Will I ever be able to swap operating system?! > > :( > > Regards, > > Paul Littlefield >Yes, set up a new DC with your new OS and join this to the domain, once up and running, transfer the seven (yes, there are 7) FSMO roles to the new DC. Once everything is running ok, turn off the old DC and remove *all* mention of it from the domain. Not easy, but it can be done. Of course it would have been a lot easier if you hadn't used the samba version from git. It would also be a lot better if people read and accepted what is written on the wiki. Rowland
Am 26.01.2015 um 15:55 schrieb Paul Littlefield:> root at samba:~# /usr/local/samba/bin/samba-tool ntacl sysvolreset > Traceback (most recent call last): > File "/usr/local/samba/bin/samba-tool", line 33, in <module> > from samba.netcmd.main import cmd_sambatool > File "/usr/local/samba/lib/python2.7/site-packages/samba/__init__.py", > line 27, in <module> > import samba.param > ImportError: /usr/local/samba/lib/private/libserver-role.so: version > `SAMBA_4.2.0PRE1_GIT_F8EC0F9' not found (required by > /usr/local/samba/lib/python2.7/site-packages/samba/param.so) > > > ...which is why this was put on the official Samba Wiki and I did read > it, but thought it was worth a try... > > > "Very important notes: > Never do a restore and a version change at once! Always restore on a > system that uses the same Samba version than the one you created the > backup on! Restore on a system with the same IP and Hostname. Otherwise > you'll run into Kerberos and DNS issues. Recommended: Restore on the > same OS than where you created the backup."I wrote this for real disaster scenarios. There you have other problems, than searching for update problems. But in a test environment you can play with a new version, of course. At least you should not downgrade. And of course not upgrade to a pre release like 4.2. But usually you never want unofficial version in production. But your error looks like you had 4.2pre1 on your old system? Is that right? But you can syncronize the versions by self compiling or using the Sernet packages. Regards, Marc