[rear-users] Creating a Master Image

Jeremy Laidman jlaidman at rebel-it.com.au
Wed Apr 22 04:21:18 CEST 2015


I've done exactly this, for RHEL6 - sort of a poor-man's "Ghost" for
linux.  There are several things you need to do to make the servers
unique.  For example, it might not be a good thing that different servers
have the same LVM UUIDs or you might accidentally restore a backup to the
wrong server; also the mappings from MAC address to ethernet device won't
match and you'll be using eth5 instead of eth0 as your first NIC.

A POST_RECOVERY_SCRIPT is a great idea.  We didn't do it this time, but
next time I'll look into it.

Here's a list of things we had to fix up on each server:

* MAC-to-eth mappings:
  - remove /etc/udev/rules.d/70-persistent-net.rules
  - removed HWADDR and UUID from /etc/sysconfig/network-scripts/ifcfg-eth*
  - reboot

* Filesystem UUIDs:
  - tune2fs -U `uuidgen` $FS
  - rebuilt swap filesystem: swapoff $SWAPFS && mkswap $SWAPFS & swapon
  - updated UUIDs referenced in /etc/fstab
  - reboot

  - boot into single-user mode
  - run "pvdisplay" to get device names
  - pvchange -u /dev/<devicename>


On 3 April 2015 at 02:15, John Wade <John.Wade at comdev.ca> wrote:

>  Is there a way to create a “Master image” of a server and deploy it with
> a different hostname and static IP address using ReaR?
> I have Red Hat 6 server that was set up using a third party engineering
> app (cannot be installed via rpm or yum, must be installed manually), and
> now that I have it working successfully, would like to use it as a template
> for 8 others servers, the only items that are different are the hostname
> and the IP address (static).
> Is there a way to do this using ReaR ?
> Thanks in advance,
> John
> _______________________________________________
> rear-users mailing list
> rear-users at lists.relax-and-recover.org
> http://pikachu.3ti.be/mailman/listinfo/rear-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pikachu.3ti.be/pipermail/rear-users/attachments/20150422/31ae9ac8/attachment.html>

More information about the rear-users mailing list