1753481 Members
4081 Online
108794 Solutions
New Discussion юеВ

VG modify giving error

 
pa8700
Regular Advisor

VG modify giving error

We are getting below error while trying to do a vgmodify command.

We are pretty sure there are only 4 disks for this volume group and all are accessible.The lVM tab also says the same.


PROD> # vgmodify -v vggldwp

Performing "vgchange -a y -l -p -s vggldwp" to collect data

vgmodify->vgchange: Could not attach to volume group "vggldwp" all of its physical volumes.

We notice this error fist on this Lvsplit , it gave some warning but executed successfully.

PROD> # lvsplit -s backup /dev/vggldwp/lvol1
Logical volume "/dev/vggldwp/lvol1backup" has been successfully created with
character device "/dev/vggldwp/rlvol1backup".
Logical volume "/dev/vggldwp/lvol1" has been successfully split.
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 5 disks for "/dev/vggldwp"; /etc/lvmtab has 4 disks.
Cannot proceed with backup.
We moved the LVMTAB and create a new one with VGscan .But still we are not able to do the vgmodify successfully.






4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: VG modify giving error

Shalom,

The message is pretty straightforward.

lvmtab is not consistent with the kernel as to number of disks.

strings /etc/lvmtab | grep vg_name

run a dd or cstm mstm xstm check on each disk and check/exercise the disks in the volume group.

You may need to vgexport and vgimport the volume group.

There is a procedure after vgscan fails to help.

vgreduce -f vg_name
# follow precisely the instructions after this. This normally fixes any issues.

Last item: I checked your profile and was appalled.

I have assigned points to 5 of 117 responses to my questions.

Please check this and assign meaningful feedback to the 117 responses to your past questions.

Forum ettiquette.

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=140137

I've given you my thoughts on this issue. if you try my suggestions, post new data and request more help, I simply will not give it until that assignment ratio reaches a normal level.

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
Roopesh Francis_1
Trusted Contributor

Re: VG modify giving error

Hi,
Please excute below commands,
#vgreduce ├в f vggldwp
Take a backup of current lvmtab
#cp ├в p /etc/lvmtab /etc/lvmtab_old
Run a vgscan to build afressh lvmtab
#vgscan
Then it must be solved your issue.

I totally agreed to SEP.please follow the Forum ettiquette for getting timily response.
Thanks
Proboi
Advisor

Re: VG modify giving error

Hi,
The difference might also be visible in vgdisplay ( actual pv and current PV )

you can deactivate the vg and activate it again

on the newer version 11.31 you can use the vgreduce -k ( only in 11.31 )

which means that you might have to umount, deactivate and reactivate it again so that the kernal reads the new correct information

{ as fras pointed out please be more considerate about assigning points }
RajuD
Frequent Advisor

Re: VG modify giving error

Hi,

Provide the below output.

uname -a

swlist | grep -i lvm

vgdisplay
тАЬEducation is our passport to the future, for tomorrow belongs to those who prepare for it today.тАЭ