Re: [opensuse] fileserver box to box swap



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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Errors writing large files via NFS
    ... files larger than a certain size to a NFS server. ... client systems, although the definition of "too large" varies. ... network paths involved, I'm pretty sure we're not seeing a network problem. ...
    (Tru64-UNIX-Managers)
  • Re: Still getting NFS client locking up
    ... > the same NFS lockups. ... > Reading from the server works perfectly all the time. ... > NFS CLIENT: ... in particular, look at traces for any client blocked in NFS, ...
    (freebsd-current)
  • Re: Bugs in mkfs.xfs, device mapper, xfs, and /dev/ram
    ... it gets the first ENOSPC error back from the server at around 1.5GB ... the data that gets ENOSPC errors is ... I'm no great expert but isn't this a design flaw in NFS? ... corruption because the NFS client thinks it has written the data ...
    (Linux-Kernel)
  • Re: [OT] Real time systems, was: Re: What is the draw of VMS?
    ... your nfs clients are going to hang. ... You can tell NFS to do soft mounts, if you find this acceptable, but the cost is data corruption. ... probing the server and running the highest level available. ... My client programs gets stuck until the server is back. ...
    (comp.os.vms)
  • Re: Problems mounting nfs from freebsd to Mac.
    ... Problems mounting nfs from freebsd to Mac. ... I've got an nfs server that's refusing to mount one client - via one ... That elimintes NFS on the client, and -most- of the NFS config on the ...
    (freebsd-questions)