1834714 Members
2456 Online
110069 Solutions
New Discussion

Re: make_tape_recovery

 
Jeff Cai
Occasional Contributor

make_tape_recovery

I wanted to replace my boot disk from 18G to 36G, so I use make_tape_recovery to back all the vg00, when I use the tape to recovery, I find another vg(vg01) could not be imported. The reason is that the device file changed.

In the original system, I have EMC storage connect to the server and I use vg01 for the EMC disks, the device file is /dev/dsk/c25t0d0 and /dev/dsk/c27t0d0, but when I recovery from the tape, the device file /dev/dsk/c25t0d0 and /dev/dsk/c27t0d0 are not for the EMC disks(diskinfo shows), the device files are changed.

Any one know how to disable the device file change when recovery use the tape made by make_tape_recovery?

Thanks
4 REPLIES 4
Michael Steele_2
Honored Contributor

Re: make_tape_recovery

You don't have to specify the device file when importing if you use the -s option. The "...-s..." option depends on the VGID posted to each LVM header on each disk. Try this:

vgexport -p -v -s -m /tmp/vg##_mapfile /dev/vg##

This command uses the preview option and doesn't remove the vg out of /etc/lvmtab until you're ready.

strings /etc/lvmtab

Note the disks associated to vg##.

mkdir /dev/vg##
mknod /dev/vg##/group c 64 0x0#0000
vgimport -p -s -m /tmp/vg##_mapfile /dev/vg##

Again, preview. But you should see the disk responding.

vgimport -s -m /tmp/vg##_mapfile /dev/vg##

This will add in the vg.

Let me know if you have problems.
Support Fatherhood - Stop Family Law
Steven E. Protter
Exalted Contributor

Re: make_tape_recovery

If the make_tape_recovery included only vg00, you should be able to boot off the tape, intervene when prompted and modify your sytem configuration including the new disk.

In such a recovery there is no need to vgimport vg01, its accounted for in the system configuration and will be there after you boot, because you've restored /etc/lvmtab.

Did the make_tape_recovery cover a larger scope than I assummed?

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
Michael Steele_2
Honored Contributor

Re: make_tape_recovery

Could you attach a copy of "...strings /etc/lvmtab..."?
Support Fatherhood - Stop Family Law
Jeff Cai
Occasional Contributor

Re: make_tape_recovery

I just use make_tape_recovery to backup all vg00 data, and when I tried to recovery from the tape, it would try to import vg01 at the second boot but failed, when importing it tried to use /dev/dsk/c25t0d0 and /dev/dsk/c27t0d0, but in the recovered system, the device file changed.


after the faild import, the vg01 is not displayed in /etc/lvmtab