Operating System - HP-UX
1832592 Members
2435 Online
110043 Solutions
New Discussion

Vg recreation after booting from tape

 
Evert Jan van Ramselaar
Valued Contributor

Vg recreation after booting from tape

Hello,

I have booted a HP9000 with a HP/UX1020 boottape created with Ignite/UX. However, when I want to create the vg's (except vg00), I get an error indicating that device files exist. Furthermore, the vg's are already mentioned in /etc/lvmtab.

How do I recreate the vg's and lv's after booting from tape?

Evert Jan
Contrary to popular belief, Unix is userfriendly. It just happens to be selective about who it makes friends with.
10 REPLIES 10
Andreas Voss
Honored Contributor

Re: Vg recreation after booting from tape

Hi,

you can re-create the /etc/lvmtab with the command:

vgscan

Greetings

Andrew
Evert Jan van Ramselaar
Valued Contributor

Re: Vg recreation after booting from tape

Tnx 4 your reply.

I guess this will not work when using completely new disks? This happens to be so in our case.

Evert Jan
Contrary to popular belief, Unix is userfriendly. It just happens to be selective about who it makes friends with.
Andreas Voss
Honored Contributor

Re: Vg recreation after booting from tape

Hi,

could you please give me more detailed information on what errors you get.

Andrew
Alan Riggs
Honored Contributor

Re: Vg recreation after booting from tape

IF I understand properly you have rebuilt a machine with an Ignite tape and have fresh disks on the server. You now want to build your volume groups (apart from vg00) and are being denied. To correct this:

mv /etc/lvmtab /etc/lvmtab.bak
vgscan -av

That should give you a new lvmtab which registers only the disks in vg00. You may now create your volume groups as normal.

One note: you probably have group files and dev/vg* directories which match those on the system you cloned. You may wish to remove and recreate these if they do not match the planned architecture for this system.
Evert Jan van Ramselaar
Valued Contributor

Re: Vg recreation after booting from tape

We called HP Tech Support for this problem. It seems to be a know problem with some versions of Ignite. Solution was to vgremove the vg's and then delete the /dev/vg??.

Evert Jan
Contrary to popular belief, Unix is userfriendly. It just happens to be selective about who it makes friends with.
Denver Osborn
Honored Contributor

Re: Vg recreation after booting from tape

You wouldnt be able to vgremove the vg's if the pv's are not there. recreate the lvmtab file and remove the /dev/vg?? directories for the non-existing vg's. Then you'll be able to make the new vg directories and group files you need or do it via SAM.
Shyam Kishore
Frequent Advisor

Re: Vg recreation after booting from tape

Hi,

If I could understand the quostion correctly, you are looking for recreation of VGs afresh. for that first you move the /etc/lvmtab to /etc/lvmtab.old then pvcreate using #pvcreate -f option to create the PVs forcefully (be sure to use the Proper device files).

All the best.

-Shyam
Kids learn from masters, masters from mistakes.
Shyam Kishore
Frequent Advisor

Re: Vg recreation after booting from tape

Hi,

If I could understand the quostion correctly, you are looking for recreation of VGs afresh. for that first you move the /etc/lvmtab to /etc/lvmtab.old then pvcreate using #pvcreate -f option to create the PVs forcefully (be sure to use the Proper device files).

All the best.

-Shyam
Kids learn from masters, masters from mistakes.
Cheryl Griffin
Honored Contributor

Re: Vg recreation after booting from tape

I just had a similar issue with a system recovered by a make_recovery tape. We received an error when trying to mount the filesystem:

vxfs mount: I/O error
vxfs mount: cannot mount /dev/vg01/apps

fsck, vgreduce did not resolve the problem.
We vgexported the filesystem, recreated it and recovered it from another backup.


"Downtime is a Crime."
Anthony Goonetilleke
Esteemed Contributor

Re: Vg recreation after booting from tape

HI,
We came across a similar situation in a disaster recovery project, wheat you can do is use the existing /dev/vg*/group files and simply recreate the volume groups as normal with the new disks.

i.e
1 ) remove /etc/lvmtab
2) do a vgscan you should now only have vg00 in the lvmtab
3) skip the mknod part and do the rest of the steps to create the volume group.

hope this helps
Minimum effort maximum output!