Operating System - HP-UX
1748219 Members
4725 Online
108759 Solutions
New Discussion юеВ

Unable to add new disk to one VG, but able to add to other VG

 
SOLVED
Go to solution
A. Clay Stephenson
Acclaimed Contributor

Re: Unable to add new disk to one VG, but able to add to other VG

Your fundamental problem (if I am reading all this correctly) is that you should have never done a pvcreate at all. If this was a replacement of an existing PV in an existing VG, the correct initial command was vgcfgrestore. Then a "vgchange -a y /dev/vgxx" and finally (if the LVOL's were mirrored) a "vgsync /dev/vgxx". If the LVOL's were not mirrored then you should have created new filesystems, mounted them, and restored from backup.
If it ain't broke, I can fix that.
Madhu_17
Regular Advisor

Re: Unable to add new disk to one VG, but able to add to other VG

How to remove a PV from a disk.

here my problem is i could able to add the same disk to other VG successfully. but i'm facing problem with adding to one particular VG.
Fred Ruffet
Honored Contributor

Re: Unable to add new disk to one VG, but able to add to other VG

You can use pvremove command to remove data structure from disk. This will make disk clean.

After doing that, other point is to know wether PV is still affected to VG. I believe it's already asked but I can't see it : Can you give output for vgdisplay -v vg02 (I believe it's vg02) ?

If you can't see this pv in vg structure, then it's OK. Restart from beginnning of process : pvcreate, vgextend, lvextend.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Madhu_17
Regular Advisor

Re: Unable to add new disk to one VG, but able to add to other VG

After adding this problematic disk to the vg02 vg, it's showing stale in lvdisplay 'n' pvdisplay also.
Allocated PE: 1000
Stale PE: 1000

but when i add thid disk to the other VG, it's working fine.

allocated PE: 25
stale PE: 0
Madhu_17
Regular Advisor

Re: Unable to add new disk to one VG, but able to add to other VG

I am using HP-UX 10.20.

I can't see pvremove in my version.
Fred Ruffet
Honored Contributor

Re: Unable to add new disk to one VG, but able to add to other VG

Even if you don't have pvremove, you will have ways to drop the structure (by recreation with pvcreate).

First of all, please provide output of "vgdisplay -v vg02"

and tell me if you issued the "vgscan -v" command. If yes tell me what is output.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Madhu_17
Regular Advisor

Re: Unable to add new disk to one VG, but able to add to other VG

now i detached back my problematic disk.

now the vgscan -v o/p is:


/dev/vg02
/dev/dsk/c2t2d0

vgdisplay -v shows only one working disk now.

if i add this problematic disk, it's also visible in vgdisplay.
Fred Ruffet
Honored Contributor

Re: Unable to add new disk to one VG, but able to add to other VG

Do not add it "as is". First do a pvcreate on this problematic disk. If necessary, use -f option. Then try to vgextend vg02 with this new PV.

Rescan vgscan -v

Post output for all those commands.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Madhu_17
Regular Advisor

Re: Unable to add new disk to one VG, but able to add to other VG

#pvcreate -f /dev/rdsk/c3t4d0
Physical volume "/dev/rdsk/c3t4d0" has been successfully created.

#vgextend /dev/vg02 /dev/dsk/c3t4d0
Volume group "/dev/vg02" has been successfully extended.
Volume Group configuration for /dev/vg02 has been saved in /etc/lvmconf/vg02.conf

#vgscan -v

/dev/vg02
/dev/dsk/c2t2d0
/dev/dsk/c3t4d0

Fred Ruffet
Honored Contributor

Re: Unable to add new disk to one VG, but able to add to other VG

And now, what about lvextend whith following command :
lvextend -m 1 /dev/vg02/u02 /dev/dsk/c3t4d0

What about output ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)