Operating System - HP-UX
1836611 Members
3931 Online
110102 Solutions
New Discussion

Re: Error in Volume Group creation.

 
SOLVED
Go to solution
Alex Almaraz
Regular Advisor

Error in Volume Group creation.

HPUX > 11.00
N4000 Server

Hi Managers,

I want to create a volume group from an FC60 LUN (RAID 5) but it fails with the attached errors.
I ran the vgdisplay -v and it displays the information for the existing groups but sends the following warning:

vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg09".

I tried recreating the /etc/lvmtab with the vgscan command without success, because the vgscan writes again the path to the "/dev/vg09" and "/dev/dsk/c5t0d4".

Error:

pvcreate: The physical volume "/dev/dsk/c5t0d4" is already recorded in the "/etc/lvmtab" file.

What can I do? Do I need to activate that Volume Group in order to delete it? Do I need to unbind that LUN?

I just want to configure that "unused" disk space.

Thanks in advance.
5 REPLIES 5
TwoProc
Honored Contributor
Solution

Re: Error in Volume Group creation.

I think you need to activate the volume group first.

$> vgchange -a y vg09

We are the people our parents warned us about --Jimmy Buffett
Tim Nelson
Honored Contributor

Re: Error in Volume Group creation.

According to your attachment two things are happening.

1) this disk had lvm structure, hence the warning

2) looks like the disk is already used and the SAM status is wrong or the disk was removed improperly.

post the below outputs
1) vgdisplay -v|grep c5t0d4
2) pvdisplay -v /dev/dsk/c5t0d4
3) strings /etc/lvmtab ( look for c5t0d4 to see what vg it thinks it is in )
4) vgdisplay -v the vg found in the about lvmtab search.

Post some of this info. We can take it from there once we know what we are dealing with.
Mridul Shrivastava
Honored Contributor

Re: Error in Volume Group creation.

What I feel is this disk is already part of vg09 hence there is an entry in lvmtab and when u run vgscan it gets populated again with the same information.

Now the thing is do you want to keep vg09?
a) If yes then activate the vg using
vgchange -a y vg09

If there are any errors then post the errors.

b) If no then export the vg09 using
vgexport /dec/vg09
then use pvcreate -f to initialise the PV then the standard procedure for vg creation.
Time has a wonderful way of weeding out the trivial
Alex Almaraz
Regular Advisor

Re: Error in Volume Group creation.

Thanks everbody for your fast reponses, I have just activated the vg09 sucessfully and it has historical information that could be useful. I'll relocate it and reuse the disk space. For some reason in the past, the vg09 didn't bring up after a reboot (I guess), so, I'm done with this.

Best regards
Alex Almaraz
Regular Advisor

Re: Error in Volume Group creation.

The vg09 was activated.