Operating System - HP-UX
1833777 Members
2337 Online
110063 Solutions
New Discussion

Re: couldn't deactivate volume group

 
Meirone Luca
Occasional Advisor

couldn't deactivate volume group

Hi all,
i just create a volume group with a lun indide of XP256, i exported vg in a secondary node, i can activate vg and mount l.volume, but i can deactivate vg in prymary and secondary node after umount file system.
thank a lot
LUCA
Meirone Luca
13 REPLIES 13
Marcin Wicinski
Trusted Contributor

Re: couldn't deactivate volume group

Hi,
check vgdisplay on both nodes and give me reply.
Marcin Wicinski
Meirone Luca
Occasional Advisor

Re: couldn't deactivate volume group

hi,
on both nodes the situasion in
PRIMARY node
VG Name /dev/vgapp
VG Write Access read/write
VG Status available
####
SECONDARY NODE
VG Name /dev/vgapp
VG Write Access read/write
VG Status available

Meirone Luca
Marcin Wicinski
Trusted Contributor

Re: couldn't deactivate volume group

what happens when you execute vgchange -a n vgname ?
Marcin Wicinski
Marcin Wicinski
Trusted Contributor

Re: couldn't deactivate volume group

cluster is up or down ?
Marcin Wicinski
Meirone Luca
Occasional Advisor

Re: couldn't deactivate volume group

cluster is up!
when I execute "vgchange -a n vgname" in output I read
vgchange: Couldn't deactivate volume group "vgapp":
Device bus
Meirone Luca
Marcin Wicinski
Trusted Contributor

Re: couldn't deactivate volume group

you have to halt node2

# cmhaltpkg package1
# cmhaltpkg package2
.
.
# cmhaltnode node2

package1, 2 ... - packages running on node2

and now try to deactivate vg

# vgchange -a n vgname
Marcin Wicinski
Meirone Luca
Occasional Advisor

Re: couldn't deactivate volume group

i don't have till now insert mi vg in a package!
Meirone Luca
Marcin Wicinski
Trusted Contributor

Re: couldn't deactivate volume group

give me output of strings /etc/lvmtab
Marcin Wicinski
Frederic Sevestre
Honored Contributor

Re: couldn't deactivate volume group

Hi,

In fact you can desactivate a vg even ifhis part of a cluster.
Did you check if you don't have any hardware problem with the vgapp's disk(s) ?
Try diskinfo, and ioscan on your disks.

Regards,
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Yoshiaki Kikuchi
New Member

Re: couldn't deactivate volume group

I have ever seen like this before.
Have you tried this ?

# fuser /dev/vgapp/*

It will shows you the PIDs that are using /dev/vgapp.
To kill them, use a option "-k" or use kill command.
And try deactivate again.

Meirone Luca
Occasional Advisor

Re: couldn't deactivate volume group

hp solve my problem with a patch!
the problem is generated by a counter on lvm!
thank a lot
LUCA
Meirone Luca
Neale Ainscow
Occasional Advisor

Re: couldn't deactivate volume group

Hi,
Please can you post the patch number?
Meirone Luca
Occasional Advisor

Re: couldn't deactivate volume group

now i'm waiting that HP make a patch!!!
Luca
Meirone Luca