cancel
Showing results for 
Search instead for 
Did you mean: 

remove a PV

 
SOLVED
Go to solution
David Willams
Super Advisor

remove a PV

# strings /etc/lvmtab
/dev/vg00
/dev/disk/disk6_p2

I would like to remove disk6_p2 from VG00

# pvremove /dev/rdsk/c3t6d0
pvremove: Physical Volume "/dev/rdsk/c3t6d0" contains no LVM information

# dd if=/dev/zero of=/dev/rdsk/c3t6d0 bs=256k count=100
100+0 records in
100+0 records out


it dosen't work
15 REPLIES
Torsten.
Acclaimed Contributor
Solution

Re: remove a PV

If this disk contains your VG00 you cannot remove it, why do you want to do this???

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
David Willams
Super Advisor

Re: remove a PV

Also I see some strange errorrs:-

# vgscan
Physical Volume "/dev/dsk/c4t8d0" is not part of a Volume Group


Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c4t10d0

# ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
disk 0 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/dsk/c0t6d0 /dev/dsk/c0t6d0s2 /dev/rdsk/c0t6d0 /dev/rdsk/c0t6d0s2
/dev/dsk/c0t6d0s1 /dev/dsk/c0t6d0s3 /dev/rdsk/c0t6d0s1 /dev/rdsk/c0t6d0s3
disk 1 1/0/0/3/1.2.0 sdisk CLAIMED DEVICE _NEC DVD_RW ND-3550A
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 1/0/1/1/0/4/1.6.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/dsk/c3t6d0 /dev/dsk/c3t6d0s2 /dev/rdsk/c3t6d0 /dev/rdsk/c3t6d0s2
/dev/dsk/c3t6d0s1 /dev/dsk/c3t6d0s3 /dev/rdsk/c3t6d0s1 /dev/rdsk/c3t6d0s3
disk 3 1/0/2/1/0.8.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/dsk/c4t8d0 /dev/rdsk/c4t8d0
disk 4 1/0/2/1/0.10.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/dsk/c4t10d0 /dev/rdsk/c4t10d0
disk 5 1/0/4/1/0.1.0 sdisk CLAIMED DEVICE _NEC DVD_RW ND-3550A
/dev/dsk/c6t1d0 /dev/rdsk/c6t1d0
Torsten.
Acclaimed Contributor

Re: remove a PV

What is strange?



Note:

The "disk" in your vg00 is disk6_p2 - not disk6 !!!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
David Willams
Super Advisor

Re: remove a PV

I would like to mirrior my internal drives

how do I do that
Torsten.
Acclaimed Contributor

Re: remove a PV

Please post some more information:

# model
# vgdisplay -v
# strings /etc/lvmtab
# ioscan -m dsf

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
David Willams
Super Advisor

Re: remove a PV

# setboot
Primary bootpath : 1/0/0/3/0.0x6.0x0 (/dev/rdisk/disk6)
HA Alternate bootpath :
Alternate bootpath : 1/0/0/3/0.0x6.0x0 (/dev/rdisk/disk6)

Autoboot is ON (enabled)
# ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk6 /dev/rdsk/c0t6d0
/dev/rdisk/disk6_p1 /dev/rdsk/c0t6d0s1
/dev/rdisk/disk6_p2 /dev/rdsk/c0t6d0s2
/dev/rdisk/disk6_p3 /dev/rdsk/c0t6d0s3
/dev/rdisk/disk7 /dev/rdsk/c1t2d0
/dev/rdisk/disk8 /dev/rdsk/c3t6d0
/dev/rdisk/disk8_p1 /dev/rdsk/c3t6d0s1
/dev/rdisk/disk8_p2 /dev/rdsk/c3t6d0s2
/dev/rdisk/disk8_p3 /dev/rdsk/c3t6d0s3
/dev/rdisk/disk9 /dev/rdsk/c4t8d0
/dev/rdisk/disk10 /dev/rdsk/c4t10d0
/dev/rdisk/disk11 /dev/rdsk/c6t1d0
# ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
disk 0 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/dsk/c0t6d0 /dev/dsk/c0t6d0s2 /dev/rdsk/c0t6d0 /dev/rdsk/c0t6d0s2
/dev/dsk/c0t6d0s1 /dev/dsk/c0t6d0s3 /dev/rdsk/c0t6d0s1 /dev/rdsk/c0t6d0s3
disk 1 1/0/0/3/1.2.0 sdisk CLAIMED DEVICE _NEC DVD_RW ND-3550A
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 1/0/1/1/0/4/1.6.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/dsk/c3t6d0 /dev/dsk/c3t6d0s2 /dev/rdsk/c3t6d0 /dev/rdsk/c3t6d0s2
/dev/dsk/c3t6d0s1 /dev/dsk/c3t6d0s3 /dev/rdsk/c3t6d0s1 /dev/rdsk/c3t6d0s3
disk 3 1/0/2/1/0.8.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/dsk/c4t8d0 /dev/rdsk/c4t8d0
disk 4 1/0/2/1/0.10.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/dsk/c4t10d0 /dev/rdsk/c4t10d0
disk 5 1/0/4/1/0.1.0 sdisk CLAIMED DEVICE _NEC DVD_RW ND-3550A
/dev/dsk/c6t1d0 /dev/rdsk/c6t1d0
# model
ia64 hp server rx7640
# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4356
VGDA 2
PE Size (Mbytes) 32
Total PE 4347
Alloc PE 3712
Free PE 635
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 2178g
VG Max Extents 69696

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1792
Current LE 56
Allocated PE 56
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 65536
Current LE 2048
Allocated PE 2048
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 32
Allocated PE 32
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 9216
Current LE 288
Allocated PE 288
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 3072
Current LE 96
Allocated PE 96
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 128
Current LE 4
Allocated PE 4
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 5248
Current LE 164
Allocated PE 164
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 32768
Current LE 1024
Allocated PE 1024
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk6_p2
PV Status available
Total PE 4347
Free PE 635
Autoswitch On
Proactive Polling On


# strings /etc/lvmtab
/dev/vg00
/dev/disk/disk6_p2
#


I have to mirrior c0t6d0 & c3t6d0
James R. Ferguson
Acclaimed Contributor

Re: remove a PV

Hi:

I suspect that this is a continuation or an outgrowth of your earlier thread:

https://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1372824

Regards!

...JRF...
David Willams
Super Advisor

Re: remove a PV

This is on a different server actually...
David Willams
Super Advisor

Re: remove a PV

# vgextend /dev/vg00 /dev/dsk/c3t6d0
vgextend: Physical Volume "/dev/dsk/c3t6d0" contains no LVM information
Torsten.
Acclaimed Contributor

Re: remove a PV

Don't remove disk6, but follow the procedure in appendix here:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: remove a PV

Maybe better:

http://docs.hp.com/en/5992-6576/ch03s04.html#cbddaicd

Use the "new style" device files (/dev/disk/disk1 instead of /dev/dsk/c1t2d3)!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
David Willams
Super Advisor

Re: remove a PV

that worked thank you


David Willams
Super Advisor

Re: remove a PV

# lvextend -m 1 /dev/vg00/lvol2 /dev/disk/disk8_p2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ...

This is running since 20 minutes.I have not seen this before..
Torsten.
Acclaimed Contributor

Re: remove a PV

This is much larger than lvol1:

LV Size (Mbytes) 65536

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
David Willams
Super Advisor

Re: remove a PV

..