Operating System - HP-UX
1753322 Members
6630 Online
108792 Solutions
New Discussion юеВ

Can't activate a volume group

 
Menno de Gier
Occasional Advisor

Can't activate a volume group

hi everybody,

I can not activate a volume group via vgdisplay -a y /dev/vg05.
Other volume groups in the system can be activated.
This volume consist of two disks in a D330 cluster environment (c2t5d0 and c1t5d0).
A diskinfo of the first disk gives after a very long time : disk is busy and after a another try, it just hangs.

The second disk replies with :
> diskinfo /dev/rdsk/c1t5d0
SCSI describe of /dev/rdsk/c1t5d0:
vendor: SEAGATE
product id: ST34572WC
type: direct access
size: 4194157 Kbytes
bytes per sector: 512

Does this imply that the first disk is broken.
I have removed the first disk and tried to activate the volume group but then the vgchange answers with :
> vgchange -a y /dev/vg05
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c2t5d0":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: Activation mode requested for the volume group "/dev/vg05" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.

Is there a way to activate this diskgroup or can anybody tell me how I can see whats wrong.
15 REPLIES 15
Patrick Wessel
Honored Contributor

Re: Can't activate a volume group

Menno,

There is a high chance that your first disk is broken.
After you removed the disk from the system are just 50% of the PE from the VG available and that does not fulfill the disk quota. You can try to activate the vg without the disk quota:
vgchange -q n -a y /dev/vg05
There is no good troubleshooting with bad data
Menno de Gier
Occasional Advisor

Re: Can't activate a volume group

Patrick,

I removed the disk but the result is the same :
> vgchange -q n -a y /dev/vg05
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c2t5d0":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: Activation mode requested for the volume group "/dev/vg05" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.

Do you have another suggestion ?
Patrick Wessel
Honored Contributor

Re: Can't activate a volume group

Menno,
The -q n does not suppress the error messages but it should activate the vg.
Have you checked the status of the vg with a vgdisplay?

Btw. I assumed that the two disks are mirrored
There is no good troubleshooting with bad data
Menno de Gier
Occasional Advisor

Re: Can't activate a volume group

Patrick,

> vgchange -q n -a y /dev/vg05
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c2t5d0":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: Activation mode requested for the volume group "/dev/vg05" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
root@eole:/home/root

> vgdisplay /dev/vg05
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg05".
root@eole:/home/root

Yes, those disks are mirrored
James R. Ferguson
Acclaimed Contributor

Re: Can't activate a volume group

Hi:

Before this problem surfaced, what LVM maintenance, if any, had you done?

...JRF...
Menno de Gier
Occasional Advisor

Re: Can't activate a volume group

We had to do a apllication upgrade. For this we stopped our application (cluster remains running) and removed the volume group under cluster management with
> vgchange -c n /dev/vg05

After this we want to mount the volume by hand with :
> vgchange -a y /dev/vg05
> mount /dev/vg05/lvol17 /backup

The vgchange -a y /dev/vg05 gives the error
James R. Ferguson
Acclaimed Contributor

Re: Can't activate a volume group

Hi:

See if document #UXSGHBKBRC00002831 addresses what you are trying to do.

...JRF...
Patrick Wessel
Honored Contributor

Re: Can't activate a volume group

Menno,
I didn't read your error message carefully in the first attempt.
" vgchange: Activation mode requested for the volume group "/dev/vg05" conflicts with configured mode." is the key sentence.
How do you usually activate vg05? With a vgchange -a e?
There is no good troubleshooting with bad data
Menno de Gier
Occasional Advisor

Re: Can't activate a volume group

James : Where can I find that document?

Patrick : Normally the cluster scripts takes care of this and the are using "vgchange -a e".