Operating System - HP-UX
1754823 Members
4103 Online
108825 Solutions
New Discussion юеВ

Re: How become I the "old" vg02 back in the new system?

 
SOLVED
Go to solution

How become I the "old" vg02 back in the new system?

Hello,

I set up a new system, after it was destroyed.
On the тАЮOldтАЬ system, there was also a volumegroup vg02 with 2 lvol, 1 and 2
I try to get back the configuration with vgscan.
The system lists the Physical Volumes but brings the message:

# rm /etc/lvmtab
# vgscan -av
Creating "/etc/lvmtab".
Couldn't stat physical volume "/dev/dsk/c3t2d0":
Invalid argument


/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0


Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c4t0d0
/dev/dsk/c4t1d0
/dev/dsk/c4t2d0
/dev/dsk/c4t3d0
/dev/dsk/c4t4d0
/dev/dsk/c4t5d0
/dev/dsk/c4t6d0
/dev/dsk/c4t7d0
/dev/dsk/c5t0d0
/dev/dsk/c5t2d0
/dev/dsk/c5t4d0
/dev/dsk/c5t6d0

The Volume Group /dev/vg02 was not matched with any Physical Volumes.
Scan of Physical Volumes Complete.


Normally it goes with тАЮvgimport -s -m /tmp/vg02_map /dev/vg02тАЬ
But I donтАЩt have a mapfile.
How can I create a mapfile?
I make the directory /dev/vg02/group with the command mkdir and mknod /dev/vg02/group c 64 0x020000

How can I get the тАЮoldтАЬ vg02 back in the system?

thanks for the assistance

Raymond De Buyzer
11 REPLIES 11
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: How become I the "old" vg02 back in the new system?

Hi Raymond,

Have a look at this doc.

Title: How to vgimport without knowing all disks and no map file
Document ID: emr_na-c01014235-3

Europe
http://www8.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01014235-3

US
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01014235-3

Regards,
Robert-Jan

Re: How become I the "old" vg02 back in the new system?

Hello Robert-Jan,

thanks for the fast reply.

The systems sayd that the dives is busy.
How can a devices busy, when it isn't mount?

# mknod /dev/vg01/group c 64 0x010000
# vgcreate vg01 /dev/dsk/c4t0d0
Increased the number of physical extents per physical volume to 4341.
vgcreate: Volume group "/dev/vg01" could not be created:
Device busy

Raymond

Re: How become I the "old" vg02 back in the new system?

Hello Robert-Jan,

normally must be first a pvcreate.
But because the device was already added to a VG,it doesn't go without the "-f" option, which destroy the information on the disk!

man pvcreate
-f ...(thus deleting any file system or volume manager information present)...

Raymond
Robert-Jan Goossens_1
Honored Contributor

Re: How become I the "old" vg02 back in the new system?

Raymond,

Do you remember the disk configuration of your old Volume Group? Are all disk mentioned above part of vg01?

/dev/dsk/c4t0d0
/dev/dsk/c4t1d0
/dev/dsk/c4t2d0
/dev/dsk/c4t3d0
/dev/dsk/c4t4d0
/dev/dsk/c4t5d0
/dev/dsk/c4t6d0
/dev/dsk/c4t7d0
/dev/dsk/c5t0d0
/dev/dsk/c5t2d0
/dev/dsk/c5t4d0
/dev/dsk/c5t6d0

RJ

Re: How become I the "old" vg02 back in the new system?

Hello RJ,


Yes, they are all in VG01
I look in SAM, and there I could "import" one VG. Sam lists all these devices.

Raymond

Torsten.
Acclaimed Contributor

Re: How become I the "old" vg02 back in the new system?

You need to import that VG, NOT create!

Do another check:

vgcfgrestore -n /dev/vg01 -l

If everything is fine, import:

vgimport -v [-p] /dev/vg01 /dev/dsk/... all devices

Use "-p" to preview the action.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: How become I the "old" vg02 back in the new system?

Hello RJ,

# vgcfgrestore -n /dev/vg01 -l
vgcfgrestore: Error opening LVM configuration file : /etc/lvmconf/vg01.conf
# more /etc/lvmconf/vg01.conf
/etc/lvmconf/vg01.conf: No such file or directory

It is a new system which I set up yesterday.
So, There couldn't be a file vg01.conf


Raymond
Robert-Jan Goossens_1
Honored Contributor

Re: How become I the "old" vg02 back in the new system?

I agree with the last part of Thorsten's answer, a vgcfgrestore will not work.

create a diskfile and add all devices of vg01
# vi /disk_file
/dev/dsk/c4t0d0
/dev/dsk/c4t1d0
/dev/dsk/c4t2d0
/dev/dsk/c4t3d0
/dev/dsk/c4t4d0
/dev/dsk/c4t5d0
/dev/dsk/c4t6d0
/dev/dsk/c4t7d0
/dev/dsk/c5t0d0
/dev/dsk/c5t2d0
/dev/dsk/c5t4d0
/dev/dsk/c5t6d0

# vgimport -f diskfile /dev/vg01
Torsten.
Acclaimed Contributor

Re: How become I the "old" vg02 back in the new system?

I thought it was ignited- sorry.

Just proceed with the import.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!