[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hardware migration



Rob Owens wrote:
> Pol Hallen wrote:
> > I'm ready to take system disk of a server and put it to new hardware
> > machine (with full compatibility).
> > 
> > What issues should be? grub problems?
>
> You might need to delete some entries in /etc/udev/rules.d
> 
> Those files keep persistent device names for things like your network
> card, DVD drive, etc.  That can mess up configuration of some
> applications which have those devices specifically set.  For instance,
> /dev/dvd might become /dev/dvd1 on your new system.  If an application
> is set to look for /dev/dvd, it will never find it.
> 
> The files in /etc/udev/rules.d get recreated on boot, so deleting them
> is usually no big deal.  But maybe better to rename them *.bak just in
> case...

Agreed.  Specifically this following file contains the ethernet
address of the previous host system and must be deleted in order to be
created new with the new address of the new host system.

  /etc/udev/rules.d/70-persistent-net.rules

Remove it before shutting down the old host server and it will be
ready to boot on the new host server.

WARNING!  If you have multiple IP addresses then your server may not
be accessible over the network due to swapped network interfaces
unless you preconfigure the file correctly.  But since you are moving
disks I assume you have direct console access and so can make the
configuration changes directly on the console.  I would simply remove
the file, move the disk, boot, then check that things are correct and
swap them if they are not.

After booting the new host server check that file and verify that the
ethX device naming matches your desires.  If there is only one network
interface then it will by definitely.  But often servers have multiple
network interfaces and if so then they may be swapped from the desired
naming and may not match static IP assignments, may not match firewall
interface rules.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: