> -----Original Message----- > From: centos-bounces@xxxxxxxxxx > [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of Les Mikesell > Sent: Saturday, March 11, 2006 8:58 PM > To: CentOS mailing list > Subject: RE: Moving files to new server > > On Sat, 2006-03-11 at 19:08, Thomas E Dukes wrote: > > > > The rsync works fine. I used it to copy /home /var and /etc to the > > new server. But something went wrong. I think I copied > something in > > /etc I shouldn't have. The system won't mount the drive. I am > > currently re-installing CentOS. > > > > Any idea of what I SHOULDN'T copy? > > Unless the source and target machines are identical, software > and hardware-wise, I'd only copy /home. If you want to > change the password file to a different style of encryption > you'll have to add all the users again and specify identical > uid and gid numbers. If you can keep the old encryption, you > can copy the contents of the old /etc/passwd and /etc/shadow > files for users with uids over 500 and paste into the > corresponding new files. Likewise for the contents of > /etc/group and /etc/gshadow for the user-related groups. > Use the other files in /etc only as a guide to setting up > identical configurations - the contents have changed across > versions. Just before switching the new machine into > production, shut down the mail service on the old one and > copy over /var/spool/mail. Also look under /var/spool/cron > for any jobs that should be set up (I don't think I'd copy > these blindly). You might have undelivered outgoing mail in > /var/spool/mqueue. If you rename the old machine you might > just let it continue the delivery retries - or you can copy > the contents to the new server but don't do both. They should be fairly close software-wise. Both are running CentOS 4.2. There may be a few packages missing on the new machine such as mailscanner, f-prot, etc. Hardware-wise, you're looking at a P3-450, 384MB RAM and a 20GB HD v. P4-3Mhz, 1GB RAM and 80GB HD. I think the 'fresh' install of CentOS created an LVM filesystem which I don't have on the old machine. I copied /etc passwd, groups, shadow and gshadow as you suggested in a previous post about a week ago. That worked fine. I copied /home, /var, /root using rsync -avz. I think /etc got me, specifically /etc/fstsb. I made a copy of fstab on the new machine but it wouldn't let me copy back over it after the transfer. I'll be sure not to do that again. But I'm going to need /etc/httpd, /etc/sendmail, etc, etc, etc... (no pun intended). The system is still d/l 4.2 updates so I may have to continue this in the AM. That will be a good stopping point for today. Been at this since noon and I'm whipped. Thanks for everyone's help!!!