Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
We should note in the script the differences, and dependencies, and which ESX server it runs on correctly, so others don't run down the same path. Regards, -C PS thanks, and good to know this - upgrading might have a whole lot scarier. On Thu, 2008-02-28 at 09:06 -0600, Brian Kroth wrote: > I'm running Gentoo, but that shouldn't make a difference. Here's what I > did: > > - install various support perl packages as listed in the VMWare perl > tooklit 1.5 source install instructions. This is the one from ESX > 3.5. > > - install VMware-VIPerl-Toolkit-1.5.0-source.tar.gz > > - copy the AppUtil directory as listed in the source code > > - run the test cmd I posted earlier "echo stuff | fence_vi3" > > I think the disconnect is probably due to differing vipertoolkit > versions. > > I had also tried switching VIM2Runtime.pm with VIM25Runtime.pm, but to > no avail. Switching that line to VIRuntime is what did it. > > Brian > > chris barry <[EMAIL PROTECTED]> 2008-02-28 09:51: > > > > I'm running RHEL4u5 VMs and VI3.02, and I did not encounter this error. > > What versions are you using? VI3.5, and what VM distro? > > > > Ok, what I am getting at is what made you have to change that line! > > > > ;) > > > > On Thu, 2008-02-28 at 19:47 +0530, Panigrahi, Santosh Kumar wrote: > > > No Chrish, I have copied Apputil directory from viperltoolkit directory > > > (/tmp/viperltoolkit/apps) to my site perl directory > > > (/usr/lib/perl5/site_perl/5.8.8) as per your suggestion. But after that > > > on running your fencing script, I got the same error, as reported by > > > Brian. Then I changed the package to VMware::VIruntime at line 45 and > > > the script worked fine without giving any compilation problem. > > > > > > I don't know how u got the impression from the below mail chain that we > > > have executed the script successfully without coping the Apputil > > > directory to site_perl directory. > > > > > > Thanks and Regard, > > > Santosh > > > > > > > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Barry > > > Sent: Thursday, February 28, 2008 7:20 PM > > > To: linux clustering > > > Subject: RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > > > > > > > What version of redhat are you using? > > > > > > Are you saying that instead of copying the AppUtil directory > > > post-install of the viperltoolkit, you simply changed the use line to > > > use VMware::VIRuntime;? > > > > > > Regards, > > > -C > > > > > > -Original Message- > > > From: [EMAIL PROTECTED] on behalf of Brian Kroth > > > Sent: Thu 2/28/2008 8:29 AM > > > To: Panigrahi, Santosh Kumar > > > Cc: linux clustering > > > Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > > > > That was it. > > > > > > Thanks, > > > Brian > > > > > > Panigrahi, Santosh Kumar <[EMAIL PROTECTED]> 2008-02-28 > > > 09:37: > > > >Hello Brian, > > > > > > > >I had also faced the same problem. Just change the line no 45 in > > > your > > > >script. The original line is . Make it to > > > > > > > > After changing this it worked fine for me > > > and > > > >hopes it will also solve your compilation aborted problem. > > > > > > > >Chris, > > > > > > > >Thanks for giving your precious time on debugging the problem, > > > which I > > > >had reported without coping the Apputil directory. > > > > > > > >Thanks and Regards, > > > > > > > >Santosh > > > > > > > >-Original Message- > > > >From: [EMAIL PROTECTED] > > > >[[1]mailto:[EMAIL PROTECTED] On Behalf Of Brian > > > Kroth > > > >Sent: Thursday, February 28, 2008 4:15 AM > > > >To: chris barry > > > >Cc: linux clustering > > > >Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > > > > > >More perl questions: > > > > > > > >$ echo -e > > > > > > > "server=vmware\nvmname=gfstest3\nusername=fencer\npassword=fencerpw\n
Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
I'm running Gentoo, but that shouldn't make a difference. Here's what I did: - install various support perl packages as listed in the VMWare perl tooklit 1.5 source install instructions. This is the one from ESX 3.5. - install VMware-VIPerl-Toolkit-1.5.0-source.tar.gz - copy the AppUtil directory as listed in the source code - run the test cmd I posted earlier "echo stuff | fence_vi3" I think the disconnect is probably due to differing vipertoolkit versions. I had also tried switching VIM2Runtime.pm with VIM25Runtime.pm, but to no avail. Switching that line to VIRuntime is what did it. Brian chris barry <[EMAIL PROTECTED]> 2008-02-28 09:51: > > I'm running RHEL4u5 VMs and VI3.02, and I did not encounter this error. > What versions are you using? VI3.5, and what VM distro? > > Ok, what I am getting at is what made you have to change that line! > > ;) > > On Thu, 2008-02-28 at 19:47 +0530, Panigrahi, Santosh Kumar wrote: > > No Chrish, I have copied Apputil directory from viperltoolkit directory > > (/tmp/viperltoolkit/apps) to my site perl directory > > (/usr/lib/perl5/site_perl/5.8.8) as per your suggestion. But after that > > on running your fencing script, I got the same error, as reported by > > Brian. Then I changed the package to VMware::VIruntime at line 45 and > > the script worked fine without giving any compilation problem. > > > > I don't know how u got the impression from the below mail chain that we > > have executed the script successfully without coping the Apputil > > directory to site_perl directory. > > > > Thanks and Regard, > > Santosh > > > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Barry > > Sent: Thursday, February 28, 2008 7:20 PM > > To: linux clustering > > Subject: RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > > > > What version of redhat are you using? > > > > Are you saying that instead of copying the AppUtil directory > > post-install of the viperltoolkit, you simply changed the use line to > > use VMware::VIRuntime;? > > > > Regards, > > -C > > > > -Original Message- > > From: [EMAIL PROTECTED] on behalf of Brian Kroth > > Sent: Thu 2/28/2008 8:29 AM > > To: Panigrahi, Santosh Kumar > > Cc: linux clustering > > Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > > That was it. > > > > Thanks, > > Brian > > > > Panigrahi, Santosh Kumar <[EMAIL PROTECTED]> 2008-02-28 > > 09:37: > > >Hello Brian, > > > > > >I had also faced the same problem. Just change the line no 45 in > > your > > >script. The original line is . Make it to > > > > > > After changing this it worked fine for me > > and > > >hopes it will also solve your compilation aborted problem. > > > > > >Chris, > > > > > >Thanks for giving your precious time on debugging the problem, > > which I > > >had reported without coping the Apputil directory. > > > > > >Thanks and Regards, > > > > > >Santosh > > > > > >-Original Message- > > >From: [EMAIL PROTECTED] > > >[[1]mailto:[EMAIL PROTECTED] On Behalf Of Brian > > Kroth > > >Sent: Thursday, February 28, 2008 4:15 AM > > >To: chris barry > > >Cc: linux clustering > > >Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > > > >More perl questions: > > > > > >$ echo -e > > > > > "server=vmware\nvmname=gfstest3\nusername=fencer\npassword=fencerpw\nop > > >eration=reset" | /sbin/fence_vi3 > > > > > >The component 'privilegeList' has already been installed in class > > >-->AuthorizationManager<-- as a HASH(0x1f779834) > > > > > > (this time a scalar) > > > > > > at > > /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Class/MethodMaker.pm > > >line 20 > > > > > >BEGIN failed--compilation aborted at > > >/usr/lib/perl5/site_perl/5.8.8/VMware/VIM25Runtime.pm line 17, <> > > line > > >6. > > > > > >Compilation failed in require at (eval 27) line 3, <> line 6. > > > > > >Any thoughts? > > > > > >Thanks, > > > > &g
RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
I'm running RHEL4u5 VMs and VI3.02, and I did not encounter this error. What versions are you using? VI3.5, and what VM distro? Ok, what I am getting at is what made you have to change that line! ;) On Thu, 2008-02-28 at 19:47 +0530, Panigrahi, Santosh Kumar wrote: > No Chrish, I have copied Apputil directory from viperltoolkit directory > (/tmp/viperltoolkit/apps) to my site perl directory > (/usr/lib/perl5/site_perl/5.8.8) as per your suggestion. But after that > on running your fencing script, I got the same error, as reported by > Brian. Then I changed the package to VMware::VIruntime at line 45 and > the script worked fine without giving any compilation problem. > > I don't know how u got the impression from the below mail chain that we > have executed the script successfully without coping the Apputil > directory to site_perl directory. > > Thanks and Regard, > Santosh > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Barry > Sent: Thursday, February 28, 2008 7:20 PM > To: linux clustering > Subject: RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > What version of redhat are you using? > > Are you saying that instead of copying the AppUtil directory > post-install of the viperltoolkit, you simply changed the use line to > use VMware::VIRuntime;? > > Regards, > -C > > -Original Message- > From: [EMAIL PROTECTED] on behalf of Brian Kroth > Sent: Thu 2/28/2008 8:29 AM > To: Panigrahi, Santosh Kumar > Cc: linux clustering > Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > That was it. > > Thanks, > Brian > > Panigrahi, Santosh Kumar <[EMAIL PROTECTED]> 2008-02-28 > 09:37: > >Hello Brian, > > > >I had also faced the same problem. Just change the line no 45 in > your > >script. The original line is . Make it to > > > > After changing this it worked fine for me > and > >hopes it will also solve your compilation aborted problem. > > > >Chris, > > > >Thanks for giving your precious time on debugging the problem, > which I > >had reported without coping the Apputil directory. > > > >Thanks and Regards, > > > > Santosh > > > > -Original Message- > >From: [EMAIL PROTECTED] > >[[1]mailto:[EMAIL PROTECTED] On Behalf Of Brian > Kroth > >Sent: Thursday, February 28, 2008 4:15 AM > >To: chris barry > >Cc: linux clustering > >Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > >More perl questions: > > > >$ echo -e > > > "server=vmware\nvmname=gfstest3\nusername=fencer\npassword=fencerpw\nop > >eration=reset" | /sbin/fence_vi3 > > > >The component 'privilegeList' has already been installed in class > >-->AuthorizationManager<-- as a HASH(0x1f779834) > > > > (this time a scalar) > > > > at > /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Class/MethodMaker.pm > >line 20 > > > >BEGIN failed--compilation aborted at > >/usr/lib/perl5/site_perl/5.8.8/VMware/VIM25Runtime.pm line 17, <> > line > >6. > > > >Compilation failed in require at (eval 27) line 3, <> line 6. > > > >Any thoughts? > > > >Thanks, > > > >Brian > > > >chris barry <[EMAIL PROTECTED]> 2008-02-26 17:30: > > > >> Read the top section of the script itself. I explain that the > install > > > >> script of viperltoolkit does not install the AppUtil directory > with > >the > > > >> rest of itself in your particular site_perl dir. > > > >> > > > >> do a > > > >> $ locate site_perl > > > >> to see where on your system has your site_perl director(y|ies), > and > >look > > > >> in each one to find the other vmware module dirs (includes) > listed in > > > >> the top of the script. Then copy the AppUtil dir (from the > >viperltoolkit > > > >> source) into the same site_perl as the rest, and at the same > level. > > > >> > > > >> e.g. > > > >> ...site_perl > > > >>|-AppUtil > > > >>|-VMware > > > >>`-other stuff > > > >> > > > >> > > > >> Once the AppUtil dir is present in the right location, it should > work > > > >> ok. I had to figure this out the hard way. ;) > > > >> > > > >> > > > >> Good Luck, > > > >> -C > > > > References > > > >1. mailto:[EMAIL PROTECTED] > > > > > > -- > Linux-cluster mailing list > Linux-cluster@redhat.com > https://www.redhat.com/mailman/listinfo/linux-cluster -- Linux-cluster mailing list Linux-cluster@redhat.com https://www.redhat.com/mailman/listinfo/linux-cluster
RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
No Chrish, I have copied Apputil directory from viperltoolkit directory (/tmp/viperltoolkit/apps) to my site perl directory (/usr/lib/perl5/site_perl/5.8.8) as per your suggestion. But after that on running your fencing script, I got the same error, as reported by Brian. Then I changed the package to VMware::VIruntime at line 45 and the script worked fine without giving any compilation problem. I don't know how u got the impression from the below mail chain that we have executed the script successfully without coping the Apputil directory to site_perl directory. Thanks and Regard, Santosh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Barry Sent: Thursday, February 28, 2008 7:20 PM To: linux clustering Subject: RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing What version of redhat are you using? Are you saying that instead of copying the AppUtil directory post-install of the viperltoolkit, you simply changed the use line to use VMware::VIRuntime;? Regards, -C -Original Message- From: [EMAIL PROTECTED] on behalf of Brian Kroth Sent: Thu 2/28/2008 8:29 AM To: Panigrahi, Santosh Kumar Cc: linux clustering Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing That was it. Thanks, Brian Panigrahi, Santosh Kumar <[EMAIL PROTECTED]> 2008-02-28 09:37: >Hello Brian, > >I had also faced the same problem. Just change the line no 45 in your >script. The original line is . Make it to > > After changing this it worked fine for me and >hopes it will also solve your compilation aborted problem. > >Chris, > >Thanks for giving your precious time on debugging the problem, which I >had reported without coping the Apputil directory. > >Thanks and Regards, > >Santosh > >-Original Message- >From: [EMAIL PROTECTED] >[[1]mailto:[EMAIL PROTECTED] On Behalf Of Brian Kroth >Sent: Thursday, February 28, 2008 4:15 AM > To: chris barry > Cc: linux clustering >Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > >More perl questions: > >$ echo -e > "server=vmware\nvmname=gfstest3\nusername=fencer\npassword=fencerpw\nop >eration=reset" | /sbin/fence_vi3 > >The component 'privilegeList' has already been installed in class >-->AuthorizationManager<-- as a HASH(0x1f779834) > > (this time a scalar) > > at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Class/MethodMaker.pm >line 20 > >BEGIN failed--compilation aborted at >/usr/lib/perl5/site_perl/5.8.8/VMware/VIM25Runtime.pm line 17, <> line >6. > >Compilation failed in require at (eval 27) line 3, <> line 6. > >Any thoughts? > >Thanks, > >Brian > >chris barry <[EMAIL PROTECTED]> 2008-02-26 17:30: > >> Read the top section of the script itself. I explain that the install > >> script of viperltoolkit does not install the AppUtil directory with >the > >> rest of itself in your particular site_perl dir. > >> > >> do a > >> $ locate site_perl > >> to see where on your system has your site_perl director(y|ies), and >look > >> in each one to find the other vmware module dirs (includes) listed in > >> the top of the script. Then copy the AppUtil dir (from the >viperltoolkit > >> source) into the same site_perl as the rest, and at the same level. > >> > >> e.g. > >> ...site_perl > >>|-AppUtil > >>|-VMware > >>`-other stuff > >> > >> > >> Once the AppUtil dir is present in the right location, it should work > >> ok. I had to figure this out the hard way. ;) > >> > >> > >> Good Luck, > >> -C > > References > >1. mailto:[EMAIL PROTECTED] -- Linux-cluster mailing list Linux-cluster@redhat.com https://www.redhat.com/mailman/listinfo/linux-cluster
RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
What version of redhat are you using? Are you saying that instead of copying the AppUtil directory post-install of the viperltoolkit, you simply changed the use line to use VMware::VIRuntime;? Regards, -C -Original Message- From: [EMAIL PROTECTED] on behalf of Brian Kroth Sent: Thu 2/28/2008 8:29 AM To: Panigrahi, Santosh Kumar Cc: linux clustering Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing That was it. Thanks, Brian Panigrahi, Santosh Kumar <[EMAIL PROTECTED]> 2008-02-28 09:37: >Hello Brian, > >I had also faced the same problem. Just change the line no 45 in your >script. The original line is . Make it to > > After changing this it worked fine for me and >hopes it will also solve your compilation aborted problem. > >Chris, > >Thanks for giving your precious time on debugging the problem, which I >had reported without coping the Apputil directory. > >Thanks and Regards, > >Santosh > >-Original Message- >From: [EMAIL PROTECTED] >[[1]mailto:[EMAIL PROTECTED] On Behalf Of Brian Kroth >Sent: Thursday, February 28, 2008 4:15 AM >To: chris barry > Cc: linux clustering >Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > >More perl questions: > >$ echo -e >"server=vmware\nvmname=gfstest3\nusername=fencer\npassword=fencerpw\nop >eration=reset" | /sbin/fence_vi3 > >The component 'privilegeList' has already been installed in class >-->AuthorizationManager<-- as a HASH(0x1f779834) > > (this time a scalar) > > at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Class/MethodMaker.pm >line 20 > >BEGIN failed--compilation aborted at >/usr/lib/perl5/site_perl/5.8.8/VMware/VIM25Runtime.pm line 17, <> line >6. > >Compilation failed in require at (eval 27) line 3, <> line 6. > >Any thoughts? > >Thanks, > >Brian > >chris barry <[EMAIL PROTECTED]> 2008-02-26 17:30: > >> Read the top section of the script itself. I explain that the install > >> script of viperltoolkit does not install the AppUtil directory with >the > >> rest of itself in your particular site_perl dir. > >> > >> do a > >> $ locate site_perl > >> to see where on your system has your site_perl director(y|ies), and >look > >> in each one to find the other vmware module dirs (includes) listed in > >> the top of the script. Then copy the AppUtil dir (from the >viperltoolkit > >> source) into the same site_perl as the rest, and at the same level. > >> > >> e.g. > >> ...site_perl > >>|-AppUtil > >>|-VMware > >>`-other stuff > >> > >> > >> Once the AppUtil dir is present in the right location, it should work > >> ok. I had to figure this out the hard way. ;) > >> > >> > >> Good Luck, > >> -C > > References > >1. mailto:[EMAIL PROTECTED] <>-- Linux-cluster mailing list Linux-cluster@redhat.com https://www.redhat.com/mailman/listinfo/linux-cluster
Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
That was it. Thanks, Brian Panigrahi, Santosh Kumar <[EMAIL PROTECTED]> 2008-02-28 09:37: >Hello Brian, > >I had also faced the same problem. Just change the line no 45 in your >script. The original line is . Make it to > > After changing this it worked fine for me and >hopes it will also solve your compilation aborted problem. > >Chris, > >Thanks for giving your precious time on debugging the problem, which I >had reported without coping the Apputil directory. > >Thanks and Regards, > >Santosh > >-Original Message- >From: [EMAIL PROTECTED] >[[1]mailto:[EMAIL PROTECTED] On Behalf Of Brian Kroth >Sent: Thursday, February 28, 2008 4:15 AM >To: chris barry > Cc: linux clustering >Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > >More perl questions: > >$ echo -e >"server=vmware\nvmname=gfstest3\nusername=fencer\npassword=fencerpw\nop >eration=reset" | /sbin/fence_vi3 > >The component 'privilegeList' has already been installed in class >-->AuthorizationManager<-- as a HASH(0x1f779834) > > (this time a scalar) > > at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Class/MethodMaker.pm >line 20 > >BEGIN failed--compilation aborted at >/usr/lib/perl5/site_perl/5.8.8/VMware/VIM25Runtime.pm line 17, <> line >6. > >Compilation failed in require at (eval 27) line 3, <> line 6. > >Any thoughts? > >Thanks, > >Brian > >chris barry <[EMAIL PROTECTED]> 2008-02-26 17:30: > >> Read the top section of the script itself. I explain that the install > >> script of viperltoolkit does not install the AppUtil directory with >the > >> rest of itself in your particular site_perl dir. > >> > >> do a > >> $ locate site_perl > >> to see where on your system has your site_perl director(y|ies), and >look > >> in each one to find the other vmware module dirs (includes) listed in > >> the top of the script. Then copy the AppUtil dir (from the >viperltoolkit > >> source) into the same site_perl as the rest, and at the same level. > >> > >> e.g. > >> ...site_perl > >>|-AppUtil > >>|-VMware > >>`-other stuff > >> > >> > >> Once the AppUtil dir is present in the right location, it should work > >> ok. I had to figure this out the hard way. ;) > >> > >> > >> Good Luck, > >> -C > > References > >1. mailto:[EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature -- Linux-cluster mailing list Linux-cluster@redhat.com https://www.redhat.com/mailman/listinfo/linux-cluster
RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
Hello Brian, I had also faced the same problem. Just change the line no 45 in your script. The original line is . Make it to After changing this it worked fine for me and hopes it will also solve your compilation aborted problem. Chris, Thanks for giving your precious time on debugging the problem, which I had reported without coping the Apputil directory. Thanks and Regards, Santosh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Kroth Sent: Thursday, February 28, 2008 4:15 AM To: chris barry Cc: linux clustering Subject: Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing More perl questions: $ echo -e "server=vmware\nvmname=gfstest3\nusername=fencer\npassword=fencerpw\nope ration=reset" | /sbin/fence_vi3 The component 'privilegeList' has already been installed in class -->AuthorizationManager<-- as a HASH(0x1f779834) (this time a scalar) at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Class/MethodMaker.pm line 20 BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/VMware/VIM25Runtime.pm line 17, <> line 6. Compilation failed in require at (eval 27) line 3, <> line 6. Any thoughts? Thanks, Brian chris barry <[EMAIL PROTECTED]> 2008-02-26 17:30: > Read the top section of the script itself. I explain that the install > script of viperltoolkit does not install the AppUtil directory with the > rest of itself in your particular site_perl dir. > > do a > $ locate site_perl > to see where on your system has your site_perl director(y|ies), and look > in each one to find the other vmware module dirs (includes) listed in > the top of the script. Then copy the AppUtil dir (from the viperltoolkit > source) into the same site_perl as the rest, and at the same level. > > e.g. > ...site_perl >|-AppUtil >|-VMware >`-other stuff > > > Once the AppUtil dir is present in the right location, it should work > ok. I had to figure this out the hard way. ;) > > > Good Luck, > -C -- Linux-cluster mailing list Linux-cluster@redhat.com https://www.redhat.com/mailman/listinfo/linux-cluster
Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
More perl questions: $ echo -e "server=vmware\nvmname=gfstest3\nusername=fencer\npassword=fencerpw\noperation=reset" | /sbin/fence_vi3 The component 'privilegeList' has already been installed in class -->AuthorizationManager<-- as a HASH(0x1f779834) (this time a scalar) at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Class/MethodMaker.pm line 20 BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/VMware/VIM25Runtime.pm line 17, <> line 6. Compilation failed in require at (eval 27) line 3, <> line 6. Any thoughts? Thanks, Brian chris barry <[EMAIL PROTECTED]> 2008-02-26 17:30: > Read the top section of the script itself. I explain that the install > script of viperltoolkit does not install the AppUtil directory with the > rest of itself in your particular site_perl dir. > > do a > $ locate site_perl > to see where on your system has your site_perl director(y|ies), and look > in each one to find the other vmware module dirs (includes) listed in > the top of the script. Then copy the AppUtil dir (from the viperltoolkit > source) into the same site_perl as the rest, and at the same level. > > e.g. > ...site_perl >|-AppUtil >|-VMware >`-other stuff > > > Once the AppUtil dir is present in the right location, it should work > ok. I had to figure this out the hard way. ;) > > > Good Luck, > -C smime.p7s Description: S/MIME cryptographic signature -- Linux-cluster mailing list Linux-cluster@redhat.com https://www.redhat.com/mailman/listinfo/linux-cluster
RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
Read the top section of the script itself. I explain that the install script of viperltoolkit does not install the AppUtil directory with the rest of itself in your particular site_perl dir. do a $ locate site_perl to see where on your system has your site_perl director(y|ies), and look in each one to find the other vmware module dirs (includes) listed in the top of the script. Then copy the AppUtil dir (from the viperltoolkit source) into the same site_perl as the rest, and at the same level. e.g. ...site_perl |-AppUtil |-VMware `-other stuff Once the AppUtil dir is present in the right location, it should work ok. I had to figure this out the hard way. ;) Good Luck, -C On Tue, 2008-02-26 at 18:11 +0530, Panigrahi, Santosh Kumar wrote: > Hello Chrish, > > As per your suggestion I installed Viper toolkit in all the cluster > nodes. I have copied ur script to all the cluster nodes. Now on > running this script, I'm getting following compilation error at line > 49. > > [EMAIL PROTECTED] sbin]# ./fence_vmware > > Can't locate AppUtil/VMUtil.pm in @INC (@INC > contains: /sbin/../ /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 > /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 > /usr/lib/perl5/site_perl > /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 > /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 > /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/5.8.8 .) at ./fence_vmware line 49. > > BEGIN failed--compilation aborted at ./fence_vmware line 49. > > [EMAIL PROTECTED] sbin]# > > I know, I'm not giving all the correct inputs to this script but > before this, script should compile properly. Please advice, what > should be done to avoid this compilation error? > > Thanks, > > Santosh > > === > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of chris barry > Sent: Friday, February 22, 2008 6:09 AM > To: linux clustering > Subject: RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > Use this script I hacked out of various parts. fence_vi3 > > Ideally you point it at the VC box, as it will down a node even if it > > has migrated to another esx box, but it can be pointed directly at the > > ESX box just as well. > > You will need the viperltoolkit installed on all your nodes. > > Part of the toolkit I had to manually install - read the attached > > script. > > Regards, > > Christoper Barry > > > On Thu, 2008-02-21 at 16:16 +0530, Panigrahi, Santosh Kumar wrote: > > > I have saved your script (as fence_vmware) in both the virtual > > > machines at /sbin directory. Now on running this script I am getting > > > following compilation errors. > > > > > > > > > > > > [EMAIL PROTECTED] sbin]# ./fence_vmware > > > > > > Can't locate VMware/VIM2Runtime.pm in @INC (@INC > > > > contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 > /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 > /usr/lib/perl5/site_perl > /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 > /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 > /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/5.8.8 .) at ./fence_vmware line 17. > > > > > > BEGIN failed--compilation aborted at ./fence_vmware line 17. > > > > > > > > > > > > From the above logs it seems it is not getting package “use > &g
Re: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
Hi, As I can see from your mail that you are using RHEL 5 AP, you can use this distro to create VM using xen. RHEL 5 AP comes with bundles cluster software and xen fencing agent. regards 2008/2/20 Panigrahi, Santosh Kumar <[EMAIL PROTECTED]>: > Hi, > > > > I am facing some issues on trying to fence a node using "fence_vmware" > Perl script. This script is attached in this mail. > > > > I have a single standalone physical machine installed with VMware ESX 3.5. > On top of this I have created 2 VMs with guest OS as Rhel5.1 AP. In both > the VMs I have installed VMware Perl APIs. I have kept "fence_vmware" script > at /sbin directory on both the VMs. My cluster.conf file is also attached > in this mail. I have not configured any service becoz I want only to test > VMware fencing agent here. > > > > Through conga on trying to fence a node, I am getting following errors in > my /var/log/messages. > > > > Feb 18 21:12:24 p2pv6 fence_node[5723]: agent "fence_vmware" reports: > Global symbol "$RELEASE_VERSION" requires explicit package name at > /sbin/fence_vmware line 102. Global symbol "$BUILD_DATE" requires explicit > package name at /sbin/fence_vmware line 102. Global symbol > "$REDHAT_COPYRIGHT" requires explicit package name at > > Feb 18 21:12:24 p2pv6 fence_node[5723]: agent "fence_vmware" reports: > /sbin/fence_vmware line 103. Global symbol "$REDHAT_COPYRIGHT" requires > explicit package name at /sbin/fence_vmware line 103. Global symbol > "$opt_ZZv" requires explicit package name at /sbin/fence_vmware line 267. > Global symbol "$pwd_script_out" requires > > Feb 18 21:12:24 p2pv6 fence_node[5723]: agent "fence_vmware" reports: > explicit package name at /sbin/fence_vmware line 300. Global symbol > "$pwd_script_out" requires explicit package name at /sbin/fence_vmware line > 301. Global symbol "$pwd_script_out" requires explicit package name at > /sbin/fence_vmware line 302. Global symb > > Feb 18 21:12:24 p2pv6 fence_node[5723]: agent "fence_vmware" reports: ol > "$pwd_script_out" requires explicit package name at /sbin/fence_vmware line > 303. Global symbol "$pwd_script_out" requires explicit package name at > /sbin/fence_vmware line 322. Global symbol "$pwd_script_out" requires > explicit package name at /sbin/fenc > > Feb 18 21:12:24 p2pv6 fence_node[5723]: agent "fence_vmware" reports: > e_vmware line 323. Global symbol "$pwd_script_out" requires explicit package > name at /sbin/fence_vmware line 324. Global symbol "$pwd_script_out" > requires explicit package name at /sbin/fence_vmware line 325. Bareword > "version" not allowed while "strict s > > Feb 18 21:12:24 p2pv6 fence_node[5723]: agent "fence_vmware" reports: ubs" > in use at /sbin/fence_vmware line 291. *Execution of /sbin/fence_vmware > aborted due to compilation errors*. > > *Feb 18 21:12:24 p2pv6 fence_node[5723]: Fence of "p2pv5.tr.unisys.com" > was unsuccessful* > > > > My initial guess is this fencing agent script can only be run with old > VMware Perl APIs. Please correct me. Is there any way to run this script in > my current environment? > > > > If anyone is having a working script for VMware ESX 3.5 server, please > pass it. > > > > Thanks, > > Santosh > > > -- > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *MARY, Mathieu > *Sent:* Thursday, February 14, 2008 6:39 PM > > *To:* linux clustering > *Subject:* RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > > VC is the virtual center server, i understood from your mail that you're > using virtual infrastructure, but you question points out the fact that you > maybe are using standalone ESX server ? > > in our configuration we use an ESX farm of 4 servers managed by the VC > server where we connect with the VI client > > > > > > ipaddr="yourserver_ip" port="your_vm_name" login="xxx" passwd="y"/> > > > > though I don't know if it works on standalone server, maybe you would have > ton install the VMI perlmodules described inside the script to you ESX > 3.5server > > > -- > > *De :* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *De la part de* Panigrahi, Santosh Kumar > *Envoyé :* jeudi 14 février 2008 13:50 > *À :* linux clustering > *Objet :* RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > > Thanks Marry for the scr
RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
Use this script I hacked out of various parts. fence_vi3 Ideally you point it at the VC box, as it will down a node even if it has migrated to another esx box, but it can be pointed directly at the ESX box just as well. You will need the viperltoolkit installed on all your nodes. Part of the toolkit I had to manually install - read the attached script. Regards, Christoper Barry On Thu, 2008-02-21 at 16:16 +0530, Panigrahi, Santosh Kumar wrote: > I have saved your script (as fence_vmware) in both the virtual > machines at /sbin directory. Now on running this script I am getting > following compilation errors. > > > > [EMAIL PROTECTED] sbin]# ./fence_vmware > > Can't locate VMware/VIM2Runtime.pm in @INC (@INC > contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 > /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 > /usr/lib/perl5/site_perl > /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 > /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 > /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/5.8.8 .) at ./fence_vmware line 17. > > BEGIN failed--compilation aborted at ./fence_vmware line 17. > > > > From the above logs it seems it is not getting package “use > VMware::VIM2Runtime”. > > I know I am not passing the proper arguments here, but before that > this script should be complied properly in Perl environment. I have > installed latest VMware Perl APIs on ESX server 3.5 as well as on both > VMs. > > Am I missing anything here? Please help me to proceed further. > > > > Thanks, > > Santosh > > > __ > From:[EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of MARY, Mathieu > Sent: Wednesday, February 20, 2008 9:08 PM > To: linux clustering > Subject: RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing > > > > > the script i sent to you was, or it should have been this one, > apologies if I miscopied, as I tried lots of scripts when I was > searching for the good one at the time. > > it uses the VMware::VIM2Runtime wich is the ESX 3.xx perl library > > > > > > #!/usr/bin/perl > > > > ### > > ### > > ## > > ## Copyright (C) Sistina Software, Inc. 1997-2003 All rights > reserved. > > ## Copyright (C) 2004 Red Hat, Inc. All rights reserved. > > ## > > ## This copyrighted material is made available to anyone wishing to > use, > > ## modify, copy, or redistribute it subject to the terms and > conditions > > ## of the GNU General Public License v.2. > > ## > > ### > > ### > > > > use Getopt::Std; > > use VMware::VIM2Runtime; > > > > # Get the program name from $0 and strip directory names > > $_=$0; > > s/.*\///; > > my $pname = $_; > > > > # WARNING!! Do not add code bewteen "#BEGIN_VERSION_GENERATION" and > > # "#END_VERSION_GENERATION" It is generated by the Makefile > > > > #BEGIN_VERSION_GENERATION > > $FENCE_RELEASE_NAME="2.0.64"; > > $REDHAT_COPYRIGHT=("Copyright (C) Red Hat, Inc. 2004 All rights > reserved."); > > $BUILD_DATE="(built Thu Jun 28 07:25:05 EDT 2007)"; > > #END_VERSION_GENERATION > > > > sub usage > > { > >print "Usage:\n\n"; > > print "$pname [options]\n\n"; > > print "Options:\n"; > > print " -a IP address or hostname of VirtualCenter > server\n"; > > print " -h Usage\n"; > > print " -n Virtual machine name to reset\n"; > > print " -l Login name for VirtualCenter &g
RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
VC is the virtual center server, i understood from your mail that you're using virtual infrastructure, but you question points out the fact that you maybe are using standalone ESX server ? in our configuration we use an ESX farm of 4 servers managed by the VC server where we connect with the VI client though I don't know if it works on standalone server, maybe you would have ton install the VMI perlmodules described inside the script to you ESX 3.5 server De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Panigrahi, Santosh Kumar Envoyé : jeudi 14 février 2008 13:50 À : linux clustering Objet : RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing Thanks Marry for the script. I will test and let you know. By the way what's this VC server? Is it the system where I am running my VI client? Can you please elaborate little more on this configuration like where I will keep this script, what will I mention in my cluster.conf file and etc. Thanks, Santosh From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MARY, Mathieu Sent: Thursday, February 14, 2008 5:59 PM To: linux clustering Subject: RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing hello, i'm using this script for VI 3 and ESX3.02 i guess it would work for you too, cannot remember where I found it though :-) note that you have to send the restart request to your VC server and not to the ESX server De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Panigrahi, Santosh Kumar Envoyé : jeudi 14 février 2008 12:37 À : linux-cluster@redhat.com Objet : [Linux-cluster] help reqd. - VMware ESX 3.5 fencing Hi, Does anybody have configured fencing in VMware ESX 3.5 environment? I appreciate any help. I have got some info from http://www.tournament.org.il/run/index.php?/archives/140-VMware-Fencing-in-RedHat-Cluster-5-RHCS5.html . This script given here is for VMware server. Any idea whether it will work for ESX 3.5 server or not? My system configurations are as follows. Host machine: Unisys ES7000-one with host OS as VMware ESX 3.5 Guest Machines: Guest OS as Rhel5.1 AP I am connecting to host machine using VMware VI 3.0. Thanks, Santosh -- Linux-cluster mailing list Linux-cluster@redhat.com https://www.redhat.com/mailman/listinfo/linux-cluster
RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
Thanks Marry for the script. I will test and let you know. By the way what's this VC server? Is it the system where I am running my VI client? Can you please elaborate little more on this configuration like where I will keep this script, what will I mention in my cluster.conf file and etc. Thanks, Santosh From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MARY, Mathieu Sent: Thursday, February 14, 2008 5:59 PM To: linux clustering Subject: RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing hello, i'm using this script for VI 3 and ESX3.02 i guess it would work for you too, cannot remember where I found it though :-) note that you have to send the restart request to your VC server and not to the ESX server De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Panigrahi, Santosh Kumar Envoyé : jeudi 14 février 2008 12:37 À : linux-cluster@redhat.com Objet : [Linux-cluster] help reqd. - VMware ESX 3.5 fencing Hi, Does anybody have configured fencing in VMware ESX 3.5 environment? I appreciate any help. I have got some info from http://www.tournament.org.il/run/index.php?/archives/140-VMware-Fencing-in-RedHat-Cluster-5-RHCS5.html . This script given here is for VMware server. Any idea whether it will work for ESX 3.5 server or not? My system configurations are as follows. Host machine: Unisys ES7000-one with host OS as VMware ESX 3.5 Guest Machines: Guest OS as Rhel5.1 AP I am connecting to host machine using VMware VI 3.0. Thanks, Santosh -- Linux-cluster mailing list Linux-cluster@redhat.com https://www.redhat.com/mailman/listinfo/linux-cluster
RE: [Linux-cluster] help reqd. - VMware ESX 3.5 fencing
hello, i'm using this script for VI 3 and ESX3.02 i guess it would work for you too, cannot remember where I found it though :-) note that you have to send the restart request to your VC server and not to the ESX server De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Panigrahi, Santosh Kumar Envoyé : jeudi 14 février 2008 12:37 À : linux-cluster@redhat.com Objet : [Linux-cluster] help reqd. - VMware ESX 3.5 fencing Hi, Does anybody have configured fencing in VMware ESX 3.5 environment? I appreciate any help. I have got some info from http://www.tournament.org.il/run/index.php?/archives/140-VMware-Fencing-in-RedHat-Cluster-5-RHCS5.html . This script given here is for VMware server. Any idea whether it will work for ESX 3.5 server or not? My system configurations are as follows. Host machine: Unisys ES7000-one with host OS as VMware ESX 3.5 Guest Machines: Guest OS as Rhel5.1 AP I am connecting to host machine using VMware VI 3.0. Thanks, Santosh fence_vi3 Description: fence_vi3 -- Linux-cluster mailing list Linux-cluster@redhat.com https://www.redhat.com/mailman/listinfo/linux-cluster