Operating System - HP-UX
1753491 Members
4952 Online
108794 Solutions
New Discussion юеВ

Query on cloning using make_rec and frecover

 
SOLVED
Go to solution
Bravo_1
Advisor

Query on cloning using make_rec and frecover

Hi,

The system I am doing backup on has two harddisk, two vg groups, vg00 resides on one harddisk and vg01 on the other.

Using make_tape_recovery, I used the command 'make_tape_recovery -A -v -d /dev/rmt/0m'

and also did fbackup with the command 'fbackup -vf /dev/rmt/0m -i /'

The idea was to clone the system on two new harddisk to act as spares for hotswapping in case there is any failure.

I used the make_rec tape to boot and restore the os(letting it run without interrupting the boot sequence).

I am able to login after that and with vgdisplay, I see two vg groups. Below are the system info,

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c3t6d0
# ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 May 21 15:48 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x010000 Jun 20 2002 /dev/vg01/group
# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 1733
Free PE 2607
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 84
Current LE 21
Allocated PE 21
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 140
Current LE 35
Allocated PE 35
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 64
Current LE 16
Allocated PE 16
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 20
Current LE 5
Allocated PE 5
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 250
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 800
Current LE 200
Allocated PE 200
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 800
Current LE 200
Allocated PE 200
Used PV 1

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 500
Used PV 1

LV Name /dev/vg00/lvol10
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 250
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c3t6d0
PV Status available
Total PE 4340
Free PE 2607
Autoswitch On


# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 10/0/14/0.0.0 sdisk CLAIMED DEVICE TEAC CD-224E
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 10/0/15/1.5.0 sdisk CLAIMED DEVICE QUANTUM ATLAS10KII-18LVD
/dev/dsk/c3t5d0 /dev/rdsk/c3t5d0
disk 2 10/0/15/1.6.0 sdisk CLAIMED DEVICE QUANTUM ATLAS10KII-18LVD
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0



So my question here is what is the procedure in this case to clone the system?

Is there straight forward way to clone to new hard disks?

i.e. Just do a make_recovery and all the vg groups can be created and cloned?

After I did the make_recovery, the vg01 was visible but the physical volume have to be created as well as the logical volume before I can frecover the vg01. I actually remove the vg01(recovered by make_rec) first and recreate them after I created the physical volume on the second harddisk. Is that the right way to do it?

There are additional 2 lan card on the test server(total 3 lan) but only one is detected. I do notice that my /etc/hosts files is different between the one recovered by make_rec and frecover. The ip addresses for other vlans are gone. Does this mean make_rec will detect how many lan card I have and remove the excess ip addresses?

Thanks in advance!
12 REPLIES 12
JASH_2
Trusted Contributor

Re: Query on cloning using make_rec and frecover

Bravo,

You could always do an ignite of the whole systems, ie both volume groups. This could be done with the following command:-

make_tape_recovery -a /dev/rmt/0mn -x inc_entire=vg00 -x inc_entire=vg01 -v

Note that the tape should be a norewind tape (?mn) else it will fail to restore.

Presumably you are running these on a regular basis?

Regards,

JASH
If I can, I will!
Bravo_1
Advisor

Re: Query on cloning using make_rec and frecover

Jash,

What will the frecover command be to restore the tape? Will the second harddisk be configured or I would need to create a physical volume and logical volume first? I will be doing this only once until there is any changes in the system.

Thanks!
JASH_2
Trusted Contributor
Solution

Re: Query on cloning using make_rec and frecover

Bravo,

The frecover will become redundant, as a full ignite restore will bring back both vg00 & vg01.

Regards,

JASH
If I can, I will!
Mike Shilladay
Esteemed Contributor

Re: Query on cloning using make_rec and frecover

Hi Bravo,

The lan cards on the test server are not detected probably because the drivers are not installed on the original host. Does the ioscan show the cards as "unclaimed", if so you will need the drivers for the card from the application disks.

If the cards are detected then then you will need to configure them. Typically unless the destination server is exactly the same, extra lans are not configured. You can pre-configure them if you select the Advanced installation and then go into system, or you can let ignite default to installing on one lan and then configure the extra lans after boot.

Hope that helps,

Mike.
Bravo_1
Advisor

Re: Query on cloning using make_rec and frecover

Thanks Jash!

I will try it out this week and get back.

To Mike:

The lan card do not show up at all in sam. only lan0. Does that mean I would need to install drivers?

Thanks and Regards
Bravo
Mike Shilladay
Esteemed Contributor

Re: Query on cloning using make_rec and frecover

Hi Barvo,

If SAM cannot see the card it sounds as though the drivers are not loaded (the other option is not supported at the OS release), but lets be optimistic. Try loading the drivers, you will find the appropriate drivers on the application cd/dvd set. Usually the card part number has some corresponding software which is the driver.

Mike.
DCE
Honored Contributor

Re: Query on cloning using make_rec and frecover


Bravo

With regards to frecover - it will only restore data, not LVM structures. You will have to muanually recreate the vg and lvol info for the non vg00 volume groups. You will also have to recreate the mount points before you run frecover.

Running ignite on the system is not usually recommended - it is slow method, fairly resource intensive.

With regards to the lan cards - have you performed an ioscan -fn to see if the hardware is claimed? This will tell you if the drivers need to be installed.
Bravo_1
Advisor

Re: Query on cloning using make_rec and frecover

Thanks to Jash and Mike!

I managed to restore the two volume groups successfully.

Regarding the lan, after ioscan -fn, I see the other two lan cards as unclaimed. Thanks also to DCE.!

But doesn't the make_rec include the drivers?

What other applications other then ignite to do backup and recovery?

Thanks
Mike Shilladay
Esteemed Contributor

Re: Query on cloning using make_rec and frecover

Hi Bravo,

When you make a recovery image, only the drivers that are currently loaded will be archived into the recovery image.

As I understand, Ignite/UX uses and archives into the ignite image by default the integral lan cards of current machines, so that the image will be able to recognise at least one network card. However, given the number of extra lan cards, the additional ones do not get archived into the image unless they are loaded into the kernel at the time of ignite creation.

So if you want to minimise fuss and bother later, add the lan drivers to the machine before you generate the ignite image.

Hope that helps,

Mike.