On Wednesday 27 June 2007 18:26, you wrote:
On Wed, Jun 27, 2007 at 05:49:22PM +0200, primm wrote:
Hi I have a fileserver serving /home via nfs to around 200 users on 20 clients. This server also runs nis for user logins. Currently it runs 9.3. I have a new box
New ? In that case you will probably use a SMP x86_64 kernel (multiprocessor, 64 bit) ? (I think most current processors are 64 bit compatible and dual core.)
I wish it were. No. This is a rock bottom low budget school situation. It's a refurbished amd duron wind tunnel with a whacking 40GB hard drive. IOW it's new to me.
I'd like to transfer /home to and have it up as simply as possible. Will the following work?
Install 10.2 on the new box. cp -a the contents of /home from the old box to it eg from a usb removable disk.
Or even via the network.
That's a better idea.
Install nfs server using yast Install nis server using yast Copy /etc/passwd from the old box to the new box Copy /etc/group from the old box to the new box
(cd /var/yp; make) to propagate the information from the files to the nis server. Or move the step "Install nis server using yast" to after copying the files.
Unplug the the network cable on the old box. Plug in the cable to the new box. Assign the new box the same IP Runlevel 3
Surely it's can't be as simple as that. How far away from the real world am I?
I _think_ you will need a reboot (or umount/mount) on each client. I have a _vague_ memory of trying to do what you describe and it didn't work correctly. The NFS client keeps some more information about the server than the obvious things (IP) and I think you will get messages like "NFS stale file handle" (??) .
OTOH, I expect NIS to work, but I have not tried it. Anyway for NIS you can setup a slave server to make the transition more smooth.
BTW, I have had some serious problems when upgrading my NFS server from 9.1 to 10.1. I have described them in a message to this list:
http://lists.opensuse.org/opensuse/2007-06/msg02079.html
I think it is something to do with locks, but I don't yet have a solution (not even a consistent problem). I would appreciate if you would inform me if the new server works well for you. That would give some hope as my current plan is to reinstall 10.2 (instead of upgrading from 10.1 to 10.2) and copy the needed configurations.
I think you just convinced me. No one could help you then, there are no similar situations I can google and I'm totally on my own. It's not worth the hassle. I do a new install, create 200 new users and make the old /home directory available to them for a while so that they can copy the stuff they need. 2 hours work. The alternative of stale nfs handles, locks, or WHY would probably take two weeks. Or tell me otherwise. If I do have a go you'll be the first to know. Cheers, Steve. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org