Cloning an Existing Node

NOTE: This method is no longer used. This page is kept for reference regarding cloning using g4l

The following method describes how to create a clone of an existing node.

This description makes the following assumptions:

  1. The node to be cloned is using the current configuration of Fedora Core 4 and Oracle 10g XE
  2. The node to be cloned is one of the Dell PowerEdge 850 machines.

Physical Requirements

  1. SATA drive of 80 GB or larger for copy.
  2. Ghost for Linux (G4L) bootable CD

  3. CD-ROM drive (should be included in standard node configuration)

The G4L program will copy an existing drive to a new drive that is the same size or larger.

Preparing to Copy

  1. Open the cover of the new node
  2. Attach the Master Copy drive to the blue SATA cable on the right side. (The nodes from Dell should have an additional cable in place for a spare drive.)

  3. Attach the power cable to the Master Copy.

Cloning the Drive

  1. Power on the machine.
  2. Press F2 to enter the setup screen.
  3. Select SATA Port 1 and press Enter.
  4. Change drive type from OFF to AUTO and press Enter.
  5. Press ESC to exit.
  6. Select Save Changes and Exit

  7. Insert the Ghost for Linux (G4L) cd into the CD-ROM drive and reboot.
  8. At the boot: prompt press Enter.

  9. Press Enter at the disclaimer page
  10. Press Enter on instruction page to continue.
  11. Press Enter on the release notes page to continue.
  12. You should now be at a command prompt. (Don't worry about an error message stating that eth0: link is not ready)
  13. Enter the following command to start the process: g4l

     -bash-3.00# g4l 
  14. Press Enter on the Yes option to continue.

  15. At the Main Menu select RAW Mode

  16. Under RAW Mode, select Click'n'Clone

  17. Under Click'n'Clone, first select source. This is the master drive to be copied. In the physical configuration described above, this would be sdb. Use space bar to make selection. You should see an asterisk in the selected choice.

     NOTE: Be sure you select the correct source and target or else you will end up copying the blank drive to the master and losing all data on the Master Copy!
  18. Next Select Target, in the physical configuration described above this would be sda (The drive that came with the new node)

  19. After selecting Source and Target, select Click'n'Clone

  20. Confirm that you have the right Source and Target, and then select Yes to continue.
  21. The cloning process will take about 1.5 hours.
  22. After the drive is cloned select Cancel on all the menus until you get back to the command prompt.
  23. Remove the g4l CD from the CD ROM drive.
  24. Power off the machine.
  25. Remove the Master Copy hard drive and replace the cover.
  26. Power on the machine and select F2 to enter Setup. Set the SATA Port 1 drive back to OFF.

Configuring the Cloned Machine

  1. Check the Node Master Copy Updates page for additional changes or updates that need to be applied.

  2. Change the hostname in the following two places
    • /etc/sysconfig/network
    • /etc/hosts
  3. Check that the vwpoint and root passwords are set correctly.

  4. Configure networking with the following information for testing in the GNW lab environment. See Configure Linux Networking

    IP Address:
  5. Reboot the machine to make the hostname and network changes take effect.
    shutdown -r now
  6. At the time of this writing, changing the hostname causes the Oracle installation to become inoperable. Oracle will need to be reinstalled.
    • Un-install the primary oracle RPM. Run the following commands as root.

      /etc/rc.d/init.d/oracle-xe stop
      cd /rpms
      rpm -e oracle-xe-
    • Follow the procedures for Installing Oracle XE on Nodes but only re-install the Oracle RPM. All other RPM's can be ignored.

  7. Change the Linux run level to 3. See Configure Linux Run Level

  8. Check firewall settings. See Secure the Node

  9. Confirm that all the network settings are set correctly. See Configure Linux Networking

  10. If there is a start-up warning for lm-sensors then as root run the command sensors-detect (the default answers should be fine).

  11. If there is a start-up error for auditd then as root run
    chmod 600 /var/log/audit/audit.log 
  12. For FC9 and later: delete the file /etc/udev/rules.d/70-persistent-net.rules

    rm -f /etc/udev/rules.d/70-persistent-net.rules 
    This is done to clear out the saved mapping of the ethernet hardware MAC addresses. This file is created/modified automatically at start-up, but old ethernet MAC addresses are not removed and the actual MAC addresses are assigned to eth3 and eth4 instead. This prevents the actual ethernet adapters from working because of a conflict with the pre-existing MAC addresses from the master copy node.
  13. After deleting the 70-persistent-net.rules file, reboot the node to allow the file to be re-created with the correct ethernet MAC addresses for that machine.

Cloning an Existing Node (last edited 2016-02-24 23:11:36 by Eric)