LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-23-2008, 12:33 AM   #1
newbiebd
LQ Newbie
 
Registered: Feb 2008
Posts: 18

Rep: Reputation: 0
Help needed for Migration from Sun solaris to RHEL.


hi guys,
i need help on migration all data from existing sun solaris 8 mail server to rhel mail server.

would you please help me regarding this issue?


with thanks

Newbiebd
 
Old 02-24-2008, 04:19 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
What specifically do you need to know?
 
Old 02-25-2008, 02:46 AM   #3
newbiebd
LQ Newbie
 
Registered: Feb 2008
Posts: 18

Original Poster
Rep: Reputation: 0
RE:

Quote:
Originally Posted by carltm View Post
What specifically do you need to know?

actually i want to transfer all mail box and user & password file from sun to linx.
 
Old 02-29-2008, 04:33 PM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
I doubt that you can just copy the /etc/passwd file and have
it work as you'd like.

I would create a list of users on the Sun box, use it to
create each of the users on the Linux box, then copy over
all the user's files including their mailboxes. You would
need to assign a new password to each user if it wasn't
assigned when you created the user.
 
Old 02-29-2008, 11:18 PM   #5
eaglek96
LQ Newbie
 
Registered: Feb 2008
Location: Massachusetts
Distribution: Debian Linux and FreeBSD
Posts: 12

Rep: Reputation: 0
I've done this before, and it's basically straightforward, but there are certainly a few gotchas.

For the user accounts, the solaris box I used had a passwd and shadow file. I was able to write a simple perl script that pulled the user account name, description, uid, gid, and in addition went to the shadow for the crypted password, and built a new passw file to use for the linux box. I then just had to append the passwd and shadow files to the new linux box.

For mail, depending on whether you use IMAP or POP, the process may be different. For my POP server, I just tarred up /var/mail and moved it to the new box. From there I untarred it into the same location and things worked fine. The tarring was important to me in order to keep the correct permissions, ownership, etc...

If you're using IMAP with maildirs, you also would probably have to move the /home partition and the individual folders over in order for the users to have access to their old mail. Not a big deal, basically the same process as above.
 
Old 02-29-2008, 11:56 PM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
No need to tar things up, just use rsync
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference Between Sun, Sun Os & Solaris rajaniyer123 Solaris / OpenSolaris 5 01-04-2010 07:28 AM
Issue: Migration to 2.6.20 on RHEL 4 nandac Linux - Desktop 1 02-02-2008 12:36 AM
Problem for OS Migration from Sun Solaris to Linux unixbd Linux - Server 2 09-07-2007 08:37 AM
LXer: Clerity Solutions, Inc. Acquires Sun Microsystems' MTP/MBM Legacy Migration Business Unit LXer Syndicated Linux News 0 08-20-2006 05:21 PM
Sun Solaris and MS Windows 2000 professional connectivity needed for GUI applications AskMe Solaris / OpenSolaris 3 07-19-2003 11:48 AM


All times are GMT -5. The time now is 06:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration