Operating System - HP-UX
1848733 Members
2993 Online
104036 Solutions
New Discussion

vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

 
Elif Gius
Valued Contributor

vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

I wanted to import a VG, then this message appeared. What can I do ???
Would a "vgcfgrestore" help ???
Pls help me! I need fast help ?
13 REPLIES 13
Trond Haugen
Honored Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

Seems that there are no LVM info on that disk. Are you 100% sure it should be?
A vgcfgrestore will (only) restore the LVM header on the disk. If that's all that's missing you are OK. If there was no lvols on the disk you have a disk with a LVM hearder and nothig else. It there where som other data/fs on the disk you have probably lost it. You could try a fsck on it in case it was a hole disk HFS.
You may also have a faulty disk.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
S.K. Chan
Honored Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

You need to restore the VGRA onto c16t5d4..

# vgcfgrestore -n /dev/vgXX /dev/rdsk/c16t5d4
Michael Tully
Honored Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

Hi,

Seeing your are importing, are you sure that you have the right disk? If you are not sure you can use the preview method to find out.

# vgimport -v -p -m mymapfile /dev/myvg /dev/dsk/cxtydz

When disks are connected to another system most of the time they do not end up with same naming convention.

Michael
Anyone for a Mutiny ?
Elif Gius
Valued Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

when I try "vgcfgrestore -n vgxxx /dev/rdsk/cYXtABdZZ", I get this error:
vgcfgrestore: Volume group "/dev/vgxxx" does not exist in the "/etc/lvmtab" file.
vgcfgrestore: IO error on Physical Volume device /dev/rdsk/cYXtABdZZ

so what else could solve the problem ?
Stefan Farrelly
Honored Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information


There are 2 completely different scenarios here - be sure you are doing the correct one!!

The first is if this disk was mirrored and you then replaced it with a new blank disk - then you can use vgcfgrestore to incorporate it back into an existing volume group (the same one it was in before).

OR

If this disk came from another server or used to have volume group data on it, then you use vgimport to bring it into a volume group so you can mount its logical volumes. To do this you must create the volume group first before you try to import it;
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0x0?0000
(where ? is a unique number - check other /dev/vg??/group files first)
then you can try vgimport on that disk. If it comes back and says no vg info on it then the disk is blank - you have the wrong disk.

Be sure you attempt the correct scenario or else you may end up wiping the disk!!
Im from Palmerston North, New Zealand, but somehow ended up in London...
Trond Haugen
Honored Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

Please give us some more information. Where does this disk come from? Another system, exported on this or a spare disk. Why do you want to import it? (Not just creata a new VG and lvols.)
If you want to import it you have to have VG to import it to like Stefan suggests.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Elif Gius
Valued Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

Yes I know.
I tried "vgimport -v -m vgxxx.map -f vgxxx.infile vgxxx "
But just this happened.
#########
Beginning the import process on Volume Group "vgxxx".
vgimport: Physical Volume "/dev/rdsk/cxxtyydzz" contains no LVM information.
#########

I start to get confused ?!
I really don't know waht else I coukd try.
Michael Tully
Honored Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

Was this disk previously attached to a different system? If so, are you sure that you have the correct disk device name?
Anyone for a Mutiny ?
Stefan Farrelly
Honored Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information


Elif,

There is nothing else you can try. Your disk is blank. Sorry. Only possibility is if you have the wrong disk ?
Im from Palmerston North, New Zealand, but somehow ended up in London...
T G Manikandan
Honored Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

Hello
check this link for a posting same as your error message

http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0x3790e7e60861d511abcd0090277a778c,00.html

Thanks
Sukant Naik
Trusted Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

Hi Elif,

Let me start it again ;-)

There are few doubts.
1. Do you really want to do a vgimport or you want to create a new Volume group? This question might sound stupid but still..

2. Is your server on which you want to import this disk a part of a cluster ?

3. Was it a part of some mirror disks set ?

4. And by the way did you try using 'sam' for importing ?

Because then all of us can then start giving solution according to the situation.

-Sukant
Who dares he wins
Sanjay_6
Honored Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

Hi Elif,

As the message says, there is no VG/LV info on this disk to import. Seems like an unused disk.

Hope this helps.

Regds
James R. Ferguson
Acclaimed Contributor

Re: vgimport: Physical Volume "/dev/rdsk/c16t5d4" contains no LVM information

Hi Elif:

I agree with Stefan, you don't have any LVM information on the disk. One way to prove this is to look at the VGID (Volume Group ID). If the disk in question belongs or belonged to a volume group on *any* server you will have a non-zero VGID. Do this:

# echo 0x2010?2X|adb /dev/dsk/c16t5d4|awk '{print tolower($2 $3)}

Regards!

...JRF...