THIS LIST ROCKS!

I want to thank (in no order) Andy, Clay, Munir, Nate, Brian and Chris for
helping me with options on how to move my system from box A to box B.  The
switch is done and works great.

I did my mounts, made some copies (took most of the time), made the grub
changes, then the first re-boot redhat detected different controller, nic
and usb devices, and asked if i wanted to use the devices that it found
and re-use the network settings.  I said sure, rebooted a couple more
times just to make sure, and now about 2 hours after starting I have the
same system on different hardware.  Sendmail, Apache, PHP, named, MySQL,
rsync, ftp, my own custom stuff ... it all works.  I'm stoked!

Thanks again  TCLUG List.

Jim Streit


> Ok, bad advice. Just booted up the LNX-BBC and it doesn't include a NFS
> server, so I have to change my instructions a bit.
>
> On your current Red Hat box, install the NFS server and export / to the
> IP of your target PC:
>
> /etc/exports:
> / 192.168.1.25/255.255.255.0(ro,insecure,no_root_squash)
>
> Now restart NFSD. /etc/init.d/nfs-kernel-server restart would do it on a
> Debian box, but on a Red Hat box it won't be the same. Again, shut down
> databases and such.
>
> Now then, boot up your target PC (the PC you want to copy stuff too.) on
> the LNX-BBC. Run trivial-net-setup, then /etc/init.d/portmap start. The
> disk in the target PC will be mounted something like
> /dev/discs/disc0/part1 on /mnt/rw/discs/disc0/part1
> /dev/discs/disc0/part2 on /mnt/rw/discs/disc0/part2
> etc.
>
> Unmount all these, mount as something that sorta mirrors what the mount
> points will look like when the box is running:
>
> /dev/discs/disc0/part1 on /mnt/rw/target (this would be /)
> /dev/discs/disc0/part2 on /mnt/rw/target/usr
> /dev/discs/disc0/part3 on /mnt/rw/target/var
>
> etc as needed.
>
> Now you want ot mount your Red Hat box on your target PC:
>
> Create a mount point:
> mkdir /mnt/rw/host
> mount -t nfs XXX.XXX.XXX.XXX:/ /mnt/rw/host
> where XXX.XXX.XXX.XXX is the IP of the old PC.
>
> Now to finish it all up:
> cd /mrt/rw/host
> tar cvf - bin/ etc/ usr/ boot/ opt/ root/ var/ home/ lib/ sbin/
> initrd/ |(cd /mnt/target; tar xvf -)
>
> Create mount points for dev, proc, whatever else, and use rescue mode in
> your Red Hat install media to write grub to the disk, and you should be
> in business...
>
>
> Andrew S. Zbikowski | http://www.ringworld.org
>  A password is like your underwear; Change it
>  frequently, don't share it with others, and
>      don't ask to borrow someone else's.
>
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org tclug-list at mn-linux.org
> https://mailman.real-time.com/mailman/listinfo/tclug-list



_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list