General
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with mondorescue 2.2.8 restore

SOLVED
Go to solution
Andrew Kaplan
Super Advisor

Problem with mondorescue 2.2.8 restore

Hi there --

I am trying to do a restore of an image to a workstation that recently had its hard drives replaced due to failure. The replacement drives are SAS types, and did not have any filesystems formatted on them when they were installed on the workstation. The .iso files total fourteen in number and each are about 650 megabytes. When I insert the first CD into the workstation's DVD/RW drive, the boot sequence commences but then hangs at the point where the message:

Freeing unused kernel memory: 236k freed

appears on-screen.

I let the system stay in that status for about five minutes before having to reboot the workstation. When an operating system CD is installed into the workstation, it is able to detect the harddrives without any difficulty.

What is going on here, and what can I do to correct it? Thanks.
A Journey In The Quest Of Knowledge
34 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: Problem with mondorescue 2.2.8 restore

Shalom,

mondorescue is not going to be able to detect the disk unless its the same type of disk that the system had when it was imaged.

The OS recognizes the hardware, mondorescue does not.

What you can do is:

Base OS install.

mount -o loop filename
From the iso files you should be able to extract restore information.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

Hi there --

Thanks for your reply. Extracting the files is one thing, but if I want to do the actual installation of all fourteen .iso files onto the system. It seems I would I need to take to accomplish the goal of restoring the workstation to its original configuration. After extracting the files, how can I do the restoration?

A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

for the future you will want to edit /usr/sbin/mindi by editing the FORCE_MODS line to be

FORCE_MODS="diskdumplib diskdump mptbase mptscsi mptspi mptsas mptscsih ata_piix crc32 mii
pcnet32 sunrpc nfs nfs_acl lockd loop"


More than likely you do not have mptsas built into your initrd for mondo.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

Do you have another machine that has the same distro and kernel version running, etc? One thing you could try, if you have a nearly identical setup, is to run mindi on that host to create an initrd with the necessary mptsas module. Then you could extract the 1st iso, add the new initrd, and recreate the iso. I know that is involved, but if you go the time...
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

I've been trying to think of ways to attack this. I haven't had this specific issue because I always changed my mindi script to add more modules. I use it a alot for creating clones to virtual machines. Anyway, another thought I had was to boot from a live cd. Then you could create the filesystem on the sas drive. Next install mondorescue in the live environment. Then run mondorestore with the -i switch and point it to the iso. You should then be able to edit the disk portion to point to the new drive. You might need a rescue cd afterwards to fix grub. But I believe that would work.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

Hi there --

I tried creating a mindi boot disk on a similar system with the additions to the FORCE_MODS line that were suggested in an earlier posting. I then created the mindi boot disk, and brought it to the system in question. The same hanging situation that I described in my original posting occurred with the mindi boot disk.

If I try booting with the livecd, am I doing an install of it onto the hard drive or am I simply running it in RAM, and doing the mondorestore from there?
A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

>> When an operating system CD is installed into the workstation, it is able to detect the harddrives without any difficulty.

What OS cd? Also what distro are you running (version number w/ update number)?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

The OS cd is Fedora Core 2. The distro of Mondorescue is version 2.2.8.

I had one idea: boot the system with a Knoppix LiveCD, mount the hard drive devices, and do the install that way.

That does bring up another question: Assuming that Knoppix does not come with mondorescue, how can I install or run the restore CD's?

A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

I am going to do a test today to see what it would take to get this to work from a live cd. I do think there will still be an issue of the restored initrd not having the module to see the disk. So you will need a rescue cd. Let me see what I find out.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

Hi there --

Thanks for your reply. I will be waiting in anticipation of your test results. Suffice it to say, your efforts in this regard are greatly appreciated.

A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

Andrew,

I just want to clarify something. The OS the the workstation was running is FC2, correct?

Also, on the other host that you used mindo to create another boot iso, is that also FC2? If so can you logon to that box and see if you can modprobe mptsas? I am wondering if FC2 doesn't have that module.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

Andrew,

I just want to clarify something. The OS the the workstation was running is FC2, correct?

Also, on the other host that you used mindo to create another boot iso, is that also FC2? If so can you logon to that box and see if you can modprobe mptsas? I am wondering if FC2 doesn't have that module.

Hi there --

The OS the workstation was running is indeed the FC2 distro.

Also, I ran the modprobe command on the other host, modprobe -l |grep mpt |more, and that particular one did not have the mptsas.ko module.

I found another workstation that did have the module, and I am running mindi on that system. Once that is done I will create the iso image, and try it on the problem workstation.

I will post the results as soon as I get them.

A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

Just don't forget to edit mindi on that host, or ad least run modprbe mptsas before making the image.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

All right. I got it to work with a live cd (for the most part). I am attaching a doc with the steps I took. It's not very detailed. I assume that you can follow it. If you have any questoins, just post them and I will try and help.

One issue I had is that I left a line in /etc/fstab that I did not create and restore during the mondorestore process. So I had to use the rescue cd to reboot and edit the file. But that is because I couldn't remember the root password. Other than that it came up fine. But I also wasn't restoring to a different disk type.

Good luck!
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

Hi there --

I began going through the procedure you sent, thanks by the way, and I ran into my first issue.

At the fdisk step, I identified the disk in question as /dev/sda. I ran the pvcreate, and vgcreate commands using the suggested syntax without issue.

When I got to the lvcreate command, the syntax that is shown returned an error indicating I needed to include the size of the logical volume, or -L argument in the command. When I ran the command with the -L argument, I specified the size at 271000 megabytes. The error message I got was there was not enough physical extents available.

Did I miss a step here?
A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

Like I said, the doc does not have everystep. You should have used fdisk and created two primary partitions. The first one for /boot and the other for LVM. You also need to change the type of /dev/sda2 to LVM. That is 8e in fdisk. In the past I have had LVM issues if i forgot to change the type. Also when using lvcreate with -L you can use size notations to create then, like so:

lvcreate -n LogVol00 -L +2G VolGroup00

that will create a 2GiB lvol. Also, are you just creating a single large lvol? If so just run vgdisplay VolGroup00. Then look at the free pe line. Then use lvcreate with a -l instead and give it the free pe number from vgdisplay.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

Hi there --

Sorry about my ignorance. I don't often create logical volumes on our Linux systems. Normally that honor is reserved for our HP-UX servers.

I'll pick up where we left off on Monday. Have a good weekend.

A Journey In The Quest Of Knowledge
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

Hi there --

I went through the procedure this morning, and everything appeared to work fine until the reboot, or lack of it, took place.

When I did some further investigating, somehow everything got put on /dev/sdb instead of /dev/sda. I am positive that I typed everything in correctly. How this happened I do not know.

I am going to some additional work on my end, but I wante to see if you had any ideas? Thanks.

A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

I can only assume that you partitioned /dev/sdb, created the lvm structures, etc. and mounted it.

And since you don't have the correct module for your drive added to your initrd from the mondobackup, I would not expect it to boot. You will need to use an fc2 install cd and run linux rescue.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

Hi there --

I tried several more times to recover the system without any success. I have no choice at this point than to rebuild the system from scratch.

After that is done I am going to have to rethink how the backups are done using mondo in order for this incident not to occur again.

Thanks anyway for your help.
A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

Sorry it's not working. I wish I could be there, I really love challenges like this one.

If anything, just do a fresh load of fc2, and them load mondorescue. Then use mondorestore to restore all the users data. That should work fine. My suggestion would be to not use mondo to backup your whole machine. I only use it to backup the main system directories. Then I use normal backups for everything else.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

Hi there --

I posted the question as part of the mondo-devel users group, and one suggestion that was made was to use the following syntax at the boot prompt of the mondo restoration cd:

denymods=fdomain

At the risk of sounding like an idiot, how would I go about determining the name of the kernel to enter at the prompt in conjunction with the above parameter?

Also, why would fdomain be causing the system to hang at freeing unused kernel memory?
A Journey In The Quest Of Knowledge
Court Campbell
Honored Contributor

Re: Problem with mondorescue 2.2.8 restore

You shouldn't need to worry about the kernel. just type this at the boot.

nuke denymods=fdomain

I am not sure if that will work, but it's worth a shot.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Kaplan
Super Advisor

Re: Problem with mondorescue 2.2.8 restore

Hi there --

The nuke value at the boot prompt refers to the name of the kernel. If I knew the name of the kernel, I could insert that along with the denymods=fdomain argument.

I have a system that is the same model and operating system of the problem workstation. Is it possible to reference that system to get a clue to the name of the kernel?

A Journey In The Quest Of Knowledge