1834926 Members
3080 Online
110071 Solutions
New Discussion

Re: vgchange error

 
Chi Yi Lee
Advisor

vgchange error

I have MC/SG setup on my system, and it used to work......

Server1 carries pkg1 normally.
when the pkg1 goto Server2, it fails with following messages:
vgchange: lr-sr-xr-t not found
vgchange[2]:c: not found
ERROR: Function deactivate volume group
ERROR: Failed to deactivate /dev/vg01/



I didn't change anything in the shell, so I don't have a clue what's going on; and what is lr-sr-xr-t is?

by the way, this function was used in the shell #vgchange -a e
and I didn't see any dev was mounted.
12 REPLIES 12
Hoefnix
Honored Contributor

Re: vgchange error

Hi,

The function that is failing in your case is:
vgchange -a n

Try if you can run this manualy from the commandprompt.

Check also the function "function deactivate_volume_group" for errors.
In your package.cntl file (in /etc/cmcluster/package/package.cntl)
See also what is configured for VG[0]= in this file.

HTH,
Peter


Chi Yi Lee
Advisor

Re: vgchange error

Hi Peter

before switching from server 1 to server2, vg is deactivate already. So vgchange -a e will enable the vg on server 2, but when it failed, it will try to disable to clear everything out.

everything works fine under activating vg at server2.
do you know the meaning of lr-sr-xr-t is ?
Hoefnix
Honored Contributor

Re: vgchange error

Hi again,

The lr-sr-xr-t looks like the vgchange get some output from a ls -al as input.
If it works fine at server2, just try to copy the package.cntl file from server2 to server1 and test it again.

By the way did this worked before. Is the volumegroup information correct imported in the lvmtab of server1?

HTH,
Peter
Bharat Katkar
Honored Contributor

Re: vgchange error

Lee,
Could u post the package log file of Server1?

Regards,
You need to know a lot to actually know how little you know
Franky_1
Respected Contributor

Re: vgchange error

Hi Chi,

seems that vgchange is linked ("l" - option) and maybe therefore not found.
BTW Activation of the volume group should be "vgchange -a y "

HTH

Franky
Don't worry be happy
Chi Yi Lee
Advisor

Re: vgchange error

my mistake, pkg doesn't work on server 2


This is the log of the pkg.
fodssby is server 2
some parts are not visible since they are in Jap..... but it'ssaying that it cannot find it~.

########### Node "fodssby": Starting package at 2004å¹´07æ 14æ ¥ 10æ 34å 39ç§ ###########
7æ 14 10æ 34å 39ç§ - "fodssby": Activating volume group /dev/vg_fods1 with exclusive option.
vgchange: lr-sr-xr-t: è¦ ã ¤ã ã ã ¾ã ã ã
vgchange[2]: c: è¦ ã ¤ã ã ã ¾ã ã ã
ERROR: Function activate_volume_group
ERROR: Failed to activate /dev/vg_fods1
7æ 14 10æ 35å 09ç§ - Node "fodssby": Deactivating volume group /dev/vg_fods1
vgchange: lr-sr-xr-t: è¦ ã ¤ã ã ã ¾ã ã ã
vgchange[2]: c: è¦ ã ¤ã ã ã ¾ã ã ã
ERROR: Function deactivate_volume_group
ERROR: Failed to deactivate /dev/vg_fods1

########### Node "fodssby": Package
Hoefnix
Honored Contributor

Re: vgchange error

Hi,

Did you check the difference between the cntl-files on both servers?

Please post this cntl file aswell.
The log file is not giving any clues because I can not read the japanees characters.

Regards,
Peter
Bharat Katkar
Honored Contributor

Re: vgchange error

Yes,
Try comparing Package Control scripts and also check whether the /etc/cmcluster/cmclconfig file is same on both the servers.

See the time stamp of both the files to see if any modifications has happened to them.

Regards,
You need to know a lot to actually know how little you know
Isralyn Manalac_1
Regular Advisor

Re: vgchange error

Hi,

It seemed to be erring because it cannot find the vgchange command. The reason why the ERROR: Function deactivate volume group came about was because of the vgchange command didn't execute. Check permission settings because it seems that what you have is a link.

Regards,

ira
Hoefnix
Honored Contributor

Re: vgchange error

Hi,

To check if you do not have a problem with the vgchange binary (like I mentioned before) try to run the command manually(as root):
vgchange -a e vg01

HTH,
Peter
Dietmar Konermann
Honored Contributor

Re: vgchange error

The script logs "Activating volume group /dev/vg_fods1 with exclusive option" ... so the vg argument seems to be ok. Then we see "vgchange: xxx not found"... this seems *not* to be an error printed by vgchange. It's seems to be printed by the shell after trying to execute "vgchange". So I would also have a look at the binary... by default the control script uses /usr/sbin/vgchange.

Please post the output of "ll /usr/sbin/vg* /sbin/vg*". Try to execute /usr/sbin/vgchange from the command line.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
V.Venkatesh_1
Occasional Advisor

Re: vgchange error

Hi Lee

Please check the conf file with the cmcheckconf utility. See if there are any errors.
# cmcheckconf -v -P (package conf file)
Also as other have mentioned please check the vgchange file which could be a link file.
# which vgchange
Copy the correct vgchange command to the $PATH and check if you still see the problem.

All the best!
V.Venkatesh