cancel
Showing results for 
Search instead for 
Did you mean: 

Linux RedHat

emp001
Advisor

Linux RedHat

Hi Linux Engineers

We are running RedHat 4.0, I know on HP-UX there is the ignite tool to create the tape and net recovery and also can create the golden image to install the new OS
Is there any similar tool we can use on Linux ?

Thank you.
Michael.
21 REPLIES
Matti_Kurkela
Honored Contributor

Re: Linux RedHat

Mondo Rescue is the closest equivalent of Ignite-UX for Linux:

http://www.mondorescue.org/

For "golden image"-style installations, the Kickstart feature of the RedHat installer might be an appropriate choice.

Each RedHat installation produces a /root/anaconda-ks.cfg file. This is a Kickstart configuration template: if you want to exactly repeat a particular installation process, copy the template from the installed system, uncomment the disk partitioning directives (by default commented out for safety) and you have a fully functional Kickstart configuration file you can use to create exact copies of the original installation.

You can also write Kickstart configuration files manually, or install a "system-config-kickstart" tool for producing Kickstart configuration files.

For more details on how to use Kickstart, please see RedHat documentation:

https://www.redhat.com/docs/manuals/enterprise/

(For RHEL 4, Kickstart installations are covered in Chapter 1 of the RHEL 4 System Administration Guide. For RHEL 5 and 6, the Kickstart documentation is in the Installation Guide.)

MK
MK
emp001
Advisor

Re: Linux RedHat

Thank you very much for your response.

So, the Mondo Rescue is the tool, that I can run make_tape_recovery and make_net_recovery, rigtht ?
And if I can run it for net_rec. I should have something similar to ignite server(on HP-UX, where archive file will be copied to, is it right ?

Also for /root/anaconda-ks.cfg file should be used on the server(like ignite server and the client should be on the same subnet ?

Thank you.
Michael.
Matti_Kurkela
Honored Contributor

Re: Linux RedHat

MondoRescue is not exactly the same as Ignite-UX, although it serves the same purpose.

For MondoRescue, a generic writeable NFS server is enough for basic network functionality. MondoRescue will produce a set of CD or DVD images on the server; if you need to restore, you can burn the image files to appropriate media and reinstall the system using those. Such media can be used much like an Ignite recovery tape.

Or if you set up a network boot server (requires setting up at least DHCP & TFTP services + some configuration), you can use the image files to boot the system over the network for restore. (see README.pxe inside MondoRescue's "mindi" package)

The commands are not the same as on HP-UX: please see MondoRescue documentation.
http://www.mondorescue.org/docs/mondorescue-howto/backup-cmd.html

---------------------
The anaconda-ks.cfg file can be provided to the RedHat installer in many ways:
- on a floppy disk (if the installable system has a floppy drive)
- on a USB stick
- on a HTTP/FTP server that is accessible at installation time
- if you want, you can create a custom RHEL installation media that includes your Kickstart configuration file(s)

To start a Kickstart installation, you specify the "ks" boot option to the installation boot prompt. Please see RedHat documentation:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4/html/System_Administration_Guide/Kickstart_Installations-Starting_a_Kickstart_Installation.html

(If you create a custom installation media or a network boot server, you can include the ks boot option to the bootloader defaults, so you can install your preferred configuration in a fully automated fashion, or have a boot menu that allows you to choose one of your custom configurations.)

MK
MK
emp001
Advisor

Re: Linux RedHat

Thank you very much, will check the documentation and try to set it up.

Michael.
emp001
Advisor

Re: Linux RedHat

Which one you do you recommend to use:

Mondo Rescue or anaconda-ks, or I should use the combination of both of them ?

Thank you.
Michael.
Alzhy
Honored Contributor

Re: Linux RedHat

It depends on what your goal is.

If you already have a "refrence" server and would like to use that server to serve as template to install on other servers -- then MondoRescue is your best bet. Why? Becasue it allows you to create an BOOTABLE ISO Image that you can burn to USB or OCD/DVD Media or boot off using your vMedia infrastructure that is available on most PC Server these days.

HOWEVER - if your environment is a Virtual One -- i.e. vSPhere or KVM -- then you will be better off using the template/clone features of those Hypervisors...

Hakuna Matata.
emp001
Advisor

Re: Linux RedHat

So what I am planning to do is: 1)to have the customized OS with our own environment with some additional software and patches, that I can install ON new Linux clients

2) Also on the various existing clients I can run the backup to have the image on that server, so if I need to reinstall some of the clients I can use that archive and simply reinstall everything back

3) Also, I need to keep and update the latest patches that I can install fronm that server to any existing Linux client

For those 3 main things from above which tool I need better to use: Mondo Rescue or
/root/anaconda-ks.cfg or both
and if both which one for which step ?

Thank you.
Michael.
Alzhy
Honored Contributor

Re: Linux RedHat

MondoRescue is both a BACKUP (OS) and CLONING tool.

As a BACKUP tool - it allows for rapid ercovery of your OS - from a bootable ISO Image of your OS created by MondoRescue.

As a CLONING Tool -- it allows you to restore a BACKUP of another Server's OS on to a different Server whilst giving you the ability to give it a new name, ip, etc...


So based on the above MondoRescue Functionaility -- I'd say you will be able to decide.

Anaconda/KickStart I do not think is a fit to your neesd.


Hakuna Matata.
emp001
Advisor

Re: Linux RedHat

Is MondoRescue needs to be downloaded as the additional tool(SW) and also is it working on RedHat only or on the other Linux flavors such us Sles or Suse Linux. Also what is the best website I can use to read and configure all of that stuff ?

Thank you.
Michael.
Alzhy
Honored Contributor

Re: Linux RedHat

It is UNIVERSAL.
Please go and read the documentation on the website at www.mondorescue.org

It offers excellent documentation and has even a lab guide of sorts.
Hakuna Matata.
emp001
Advisor

Re: Linux RedHat

Thank you bery much will try soon
emp001
Advisor

Re: Linux RedHat

I was going to www.mondorescue.org but not sure which SW to download, also After I download it on the linux server, do I need to install it ?

Thank you
Michael.
Alzhy
Honored Contributor

Re: Linux RedHat

Pick the version that is appropo for your version. Note there should be 4 or 5 rpms that you would need to download:

afio-2.4.7-1.x86_64.rpm
buffer-1.19-1.x86_64.rpm
mindi-2.0.7.5-1.rhel5.x86_64.rpm
mindi-busybox-1.7.3-1.rhel5.x86_64.rpm
mondo-2.2.9.4-1.rhel5.x86_64.rpm

Then you simply rpm install all of them.
Hakuna Matata.
emp001
Advisor

Re: Linux RedHat

Hi,

I can not find it under "downloads" where exectly I should look for them ?
Alzhy
Honored Contributor

Re: Linux RedHat

Here bos.. ftp://ftp.mondorescue.org/

It's really on the Website sir.... you just have to read and use due diligence on your end.
Hakuna Matata.
emp001
Advisor

Re: Linux RedHat

I checked and found that I have the SuSe Linux box in our LAB: SUSE Linux Enterprise Server 10 (i586)


so, I should download and install this Stuff:

/suse/10.0/i386/
afio-2.4.7-1.i386.rpm
buffer-1.19-1.i386.rpm
mindi-2.0.6-1.suse10.0.i586.rpm
mindi-busybox-1.7.3-1.suse10.0.i586.rpm
mondo-2.2.9.4-1.suse10.0.i586.rpm


Is it right or someting else?

Also where I can find the documentation how to configure it ?

Thank you.
Michael.

Alzhy
Honored Contributor

Re: Linux RedHat

It is right on the website sir.

www.mondorescue.org

http://www.mondorescue.org/docs.shtml

Or you can just launch the Interactive GUI... simply type "mondoarchive" and explore away.

Sample Script I use on my weekly OS Backups:


/usr/sbin/mondoarchive -O -i -N -d $MONDODEST -T $MONDOSCR -S $MONDOSCR -s 8960
m -E "'$EXCLUDE_LIST /var/tmp /tmp'" -p $MONDOFILE > ${MONDOLOGS}/${MONDOFILE}.
log

It creates an ISO (DVD Duakl Layer Sized) of our OS sans the non-OS mounts/filesystems.

Hakuna Matata.
emp001
Advisor

Re: Linux RedHat

Hello,

Do I have the option: instead of creating the ISO image and burn it on DVD , just to create the archave with data and all client's configuration stuff, and to restore it via network to the client, so it can work the same way as make_net_recovery on HP-UX ?
Matti_Kurkela
Honored Contributor

Re: Linux RedHat

Yes you can.

However, to restore anything onto a PC system that has no OS, you must have some way to boot it to Mondo rescue environment (called Mindi). You must either set up a PXE boot server with a Mondo rescue boot option, or boot the system using a Mondo boot CD.

You really should read the documentation for Mondo: this is one of the standard examples.

http://www.mondorescue.org/docs/mondorescue-howto/backup-cmd.html#BACKUP-CMD-NETWORK

MK

MK
emp001
Advisor

Re: Linux RedHat

Hello,

I am geetin the installation errors when was running rpm:

linux-lab1:/home/mprilu/mondo # rpm -Uvh mindi-2.0.7.6-1.suse10.0.i586.rpm
error: Failed dependencies:
mtools is needed by mindi-2.0.7.6-1.suse10.0.i586
linux-lab1:/home/mprilu/mondo # rpm -Uvh mondo-2.2.9.5-1.suse10.0.i586.rpm
error: Failed dependencies:
mindi >= 2.0.7 is needed by mondo-2.2.9.5-1.suse10.0.i586
newt >= 0.50 is needed by mondo-2.2.9.5-1.suse10.0.i586
libnewt.so.0.51 is needed by mondo-2.2.9.5-1.suse10.0.i586
linux-lab1:/home/mprilu/mondo #
Matti_Kurkela
Honored Contributor

Re: Linux RedHat

> error: Failed dependencies:
mtools is needed by mindi-2.0.7.6-1.suse10.0.i586

>error: Failed dependencies:
mindi >= 2.0.7 is needed by mondo-2.2.9.5-1.suse10.0.i586
newt >= 0.50 is needed by mondo-2.2.9.5-1.suse10.0.i586
libnewt.so.0.51 is needed by mondo-2.2.9.5-1.suse10.0.i586

Mindi requires mtools, and mondo requires mindi, newt and libnewt.

Mtools, newt and libnewt are common utilities that should be available on your SuSE 10 installation media.

MK
MK