Operating System - HP-UX
1753770 Members
5129 Online
108799 Solutions
New Discussion юеВ

Re: fail to activate volume group in exclusive mode

 
anat heilper
Frequent Advisor

fail to activate volume group in exclusive mode

Hi,
I'm running on hpux 11.23.
I've configured volume group through the following steps:
1. created the volume group on 1 of the nodes using SAM
2. vgexport -m /etc/cmcluster/vgsg02.map -s -p vgsg02
3. copied the mapfile to the second node.
on the other node:
4. mkdir /dev/vgsg02
5. mknod /dev/vgsg02/group c 64 0x010000 ( I've checked that this minor number is available)
6. vgimport -m /etc/cmcluster/vgsg02.map -s vgsg02

now, if I try to activate vgchange -a y it succeds.
But, if i try to activate vgchange -a e I recieve the following errors:



# vgchange -a e vgsg02
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c84t0d1":
Too many links
vgchange: Too many links
vgchange: Too many links
vgchange: Too many links
vgchange: Too many links
vgchange: Too many links
vgchange: Too many links
vgchange: Too many links
vgchange: Activation mode requested for the volume group "/dev/vgsg02" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c84t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c86t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c92t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c94t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c124t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c126t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c132t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c134t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.


Can someone please explain to me what to do?
Thanks,
Anat.

9 REPLIES 9
Sandman!
Honored Contributor

Re: fail to activate volume group in exclusive mode

LVM only supports 1 primary and 7 alternate paths to a PV for a maximum of 8 total paths. Is it possible that you are running into this situation?

~hope it helps
David Bellamy
Respected Contributor

Re: fail to activate volume group in exclusive mode

I think the problem is that you have to many links, try removing one of the alternate links then try again
A. Clay Stephenson
Acclaimed Contributor

Re: fail to activate volume group in exclusive mode

Well, despite the errors you are seeing if vgchange -a y is ok and vgchange -a e is not then I would check: 1) Have you asserted the vgchange -c y command to make the VG cluster aware? 2) Is the cluster daemon (cmcld) running on this node? I also assume that you have run vgchange -a n on the other node.
If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: fail to activate volume group in exclusive mode

Shalom,

Some Non-HP disk arrays do indeed have a limit of 8 LUN's per HBA card.

I would rmsf the device files, re-run ioscan and try insf -C disk

You may need to reboot the system after removing the disk device files.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
anat heilper
Frequent Advisor

Re: fail to activate volume group in exclusive mode

Hi All,
Hi do I know if I have non-hpux disk array?
Sandman!
Honored Contributor

Re: fail to activate volume group in exclusive mode

Could you please attach the output of the following command:

# vgdisplay -v vgsg02

assuming it's activated with "vgchange -a y"
anat heilper
Frequent Advisor

Re: fail to activate volume group in exclusive mode

Hi,
when I perform vgchange -a y and then vgdisplay -v vgsg02 I receive a lot of warnings of the following type:
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c92t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c94t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c124t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c126t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c132t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c134t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c84t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c86t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c92t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c94t0d1":
The specified path does not correspond to physical volume attached to this volume group.

I looked at sam on the disk devices and I saw that there are 16 paths, which might explain the problems that i have with the physical links. Question is, can someone guide my how to (carefully) remove the unnecessary links?
anat heilper
Frequent Advisor

Re: fail to activate volume group in exclusive mode

regarding the previous message, after all of the warnings, it displays the logical volumes that belong to the volume group:
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol5
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol6
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol7
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol8
LV Status available/syncd
...skipping...
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol9
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol10
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol11
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol12
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol13
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol14
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol15
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vgsg02/vol16
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 512
anat heilper
Frequent Advisor

Re: fail to activate volume group in exclusive mode

Hi All,
something were strange happened with those disks:
I tried to look through SAM configuration, and I think that i ran "Diagnose missing disk" for vgsg01. after that when I looked at the disk devices folder at the sam in the "use" column it's written "DLVM" instead of "LVM", and vgchange -c y / vgchange -a e succeeds!!

can someone explain me please what is DLVM?
Thanks,
Anat.