1848875 Members
2286 Online
104038 Solutions
New Discussion

vgreduce issue.

 
SOLVED
Go to solution
candyman_1
Advisor

vgreduce issue.

Hi All,

one of my root disk was bad and I hooked a new disk in and fired vgcfgrestore -n vg00 /dev/rdsk/c2t1d0. and triedn to vgsybc it. but did not helped. not I wish to remove that new disk from vg00 but I cant remove it. below are the outputs.

# strings /etc/lvmtab
/dev/vg280
/dev/dsk/c8t1d7
/dev/dsk/c8t2d0
/dev/dsk/c8t2d4
/dev/dsk/c10t1d7
/dev/dsk/c10t2d0
/dev/dsk/c10t2d4
/dev/vg00
/dev/dsk/c2t1d0
/dev/dsk/c2t4d0
/dev/dsk/c2t5d0
/dev/dsk/c2t6d0
---------------------------------------------
# vgreduce vg00 /dev/dsk/c2t1d0
vgreduce: Couldn't query physical volume "/dev/dsk/c2t1d0":
The specified path does not correspond to physical volume attached to
this volume group
----------------------------------------------
# pvdisplay /dev/dsk/c2t1d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t1d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg00".
pvdisplay: Cannot display physical volume "/dev/dsk/c2t1d0".
---------------------------------------------

Please let me kno how can I remove this PV from the vg00.

Thanks,

Candyman.
5 REPLIES 5
Tim Nelson
Honored Contributor
Solution

Re: vgreduce issue.

Check the vgdisplay -v output for #of physicals vs #of disk seen. If there is a mismatch attempt to vgchange -a y /dev/vgxx to see if you can bring the disk into the config.

Then we will take it from there if it does not resolve.

Patrick Wallek
Honored Contributor

Re: vgreduce issue.

You need to reactivate the VG after doing a vgcfgrestore so that the VG knows the new disk is active.

# vgchange -a y vg00

Then try your vgsync, pvdisplay, etc.
Kevin Wright
Honored Contributor

Re: vgreduce issue.

vgreduce -f
Steven E. Protter
Exalted Contributor

Re: vgreduce issue.

Shalom,

All disks need pvcreate command to be run on them prior to any other commands.

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
candyman_1
Advisor

Re: vgreduce issue.

Hi,

Patrick: It worked well.. I reacvtivated the vg00 and then vgsync. it was cool.

Steven: I didnt do pvcreate on that disk, but still it worked.

Thanks a lot guys....
Candyman.