[opensuse] Easy Server Upgrade
Often to upgrade to a new "Samba" Server or new version I will set up a drive with a fresh install of OpenSuse. (I may do this at a separate locate so upgrade isn't an option). Then I will copy (or restore from a backup). /srv (that is where all the data is) /etc/samba /etc/passwd /etc/group That seems to work fine, Except the GUI login will usually not work. Are there other files that should be transferred as well? Wayne Hammond Performance Technology Systems Design -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2010/7/31 Wayne Hammond <wwh@mbdsoft.com>:
Often to upgrade to a new "Samba" Server or new version I will set up a drive with a fresh install of OpenSuse. (I may do this at a separate locate so upgrade isn't an option). Then I will copy (or restore from a backup). /srv (that is where all the data is) /etc/samba /etc/passwd /etc/group
That seems to work fine, Except the GUI login will usually not work.
Are there other files that should be transferred as well?
Wayne Hammond Performance Technology Systems Design
About /etc/passwd and /etc/group, don't replace the files with a backup, get a list of the non system users/groups and ADD them to the /etc/passwd and /etc/group files on the new server. Also make sure there are not major changes on samba configuration options between the two version involved. What about /home? Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 7/31/2010 10:02 PM, Ciro Iriarte wrote:
Often to upgrade to a new "Samba" Server or new version I will set up a drive with a fresh install of OpenSuse. (I may do this at a separate locate so upgrade isn't an option). Then I will copy (or restore from a backup). /srv (that is where all the data is) /etc/samba /etc/passwd /etc/group
That seems to work fine, Except the GUI login will usually not work.
Are there other files that should be transferred as well?
Wayne Hammond Performance Technology Systems Design About /etc/passwd and /etc/group, don't replace the files with a backup, get a list of the non system users/groups and ADD them to the /etc/passwd and /etc/group files on the new server. That is the step I'm trying to avoid. Curious why just copying wouldn't work.? Or as I stated is does work except for the GUI login, I wonder what's missing...? Also make sure there are not major changes on samba configuration
2010/7/31 Wayne Hammond<wwh@mbdsoft.com>: options between the two version involved. I do check that. What about /home? On the Samba Server I don't use /home... Regards,
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2010/8/1 Wayne <wayne.personal@mbdsoft.com>:
On 7/31/2010 10:02 PM, Ciro Iriarte wrote:
About /etc/passwd and /etc/group, don't replace the files with a backup, get a list of the non system users/groups and ADD them to the /etc/passwd and /etc/group files on the new server.
That is the step I'm trying to avoid. Curious why just copying wouldn't work.?
We're not talking about the same version for what I understand, system accounts might changed from a release to another, also, system users are added on the fly as you install packages, UID can differ and you can break something... It's not that hard, just exclude the lines with UID lower than UID_MIN defined in old_server:/etc/login.defs. grep and awk are your friends....
Or as I stated is does work except for the GUI login, I wonder what's missing...?
CLI (local console or ssh) login works?
Also make sure there are not major changes on samba configuration options between the two version involved.
I do check that.
What about /home?
On the Samba Server I don't use /home...
I understand that also local login should work, be it GUI or CLI. The users HOME should exist depending on your configuration, but for GUI it's mandatory. I assume it's under /srv. You didn't mention the involved version, but I'll be guessing your servers are using SHADOW, so /etc/shadow is needed along /etc/passwd and /etc/group
Regards,
Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, Jul 31, 2010 at 08:57:55PM -0700, Wayne Hammond wrote:
Often to upgrade to a new "Samba" Server or new version I will set up a drive with a fresh install of OpenSuse. (I may do this at a separate locate so upgrade isn't an option). Then I will copy (or restore from a backup). /srv (that is where all the data is) /etc/samba /etc/passwd /etc/group
Don't miss /var/lib/samba/ Depending on your configuration some of the TDB files are important too. While brainstorming this I asked myself if it would be useful to YaST if individual packages offer a config file listing all the directories to backup? BTW Using Samba in the Subject line would make topic catching a bit easier. ;) Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
participants (4)
-
Ciro Iriarte
-
Lars Müller
-
Wayne
-
Wayne Hammond