Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove PVID

Status
Not open for further replies.

gatetec

MIS
Mar 22, 2007
420
0
0
US
hdisk95 00c3403a72bdc68a None

# extendvg prod7vg hdisk95
0516-029 extendvg: The Physical Volume is a member of a currently varied on Volume Group and this cannot be overidden.
0516-1397 extendvg: The physical volume hdisk95, will not be added to the volume group.
0516-792 extendvg: Unable to extend volume group.

How do you remove PVID so that I can add hdisk95 to the vg?

thx much
 
you can use lquerypv -ch /dev/hdisk# to clear out the PVID info
 
or if i'm sure that these is nothing on that disk then i do this:

extendvg -f prod7vg hdisk95

Regards,
Khalid
 
or you can do this before extending:

Code:
Adding a new drive to an existing volume group
Once the new drive has been configured, ensure that a proper PVID has been written to the drive by running: 

   chdev -l <hdisk#> -a pv=clear     chdev -l <hdisk#> -a pv=yes  
NOTE: On SSA drives, the first chdev command may be omitted. 

Add the drive to the volume group with: 

   extendvg VGname hdisk#  
You can also use the mkvg command to create a new volume group on the new drive. 

New logical volumes, paging spaces, file systems, or logical volume copies can be re-added with the mklv, mkps, crfs, mklvcopy, or mirrorvg commands, respectively, or by using SMIT.


Regards,
Khalid
 
I think something is holding hdisk95.
Any ideas, please?

# chdev -l hdisk95 -a pv=clear
Method error (/etc/methods/chgfcparray):
0514-062 Cannot perform the requested function because the specified device is busy.

# fuser /dev/hdisk95
/dev/hdisk95:

# lquerypv -ch /dev/hdisk95
00000000 C9C2D4C1 00000000 00000000 00000000 |................|
00000010 00000000 00000000 00000000 00000000 |................|
00000020 00000000 00000000 00000000 00000000 |................|
00000030 00000000 00000000 00000000 00000000 |................|
00000040 00000000 00000000 00000000 00000000 |................|
00000050 00000000 00000000 00000000 00000000 |................|
00000060 00000000 00000000 00000000 00000000 |................|
00000070 00000000 00000000 00000000 00000000 |................|
00000080 00C3403A 72BDC68A 00000000 00000000 |..@:r...........|
00000090 00000000 00000000 00000000 00000000 |................|
000000A0 00000000 00000000 00000000 00000000 |................|
000000B0 00000000 00000000 00000000 00000000 |................|
000000C0 00000000 00000000 00000000 00000000 |................|
000000D0 00000000 00000000 00000000 00000000 |................|
000000E0 00000000 00000000 00000000 00000000 |................|
000000F0 00000000 00000000 00000000 00000000 |................|

 
Are you sure that this disk is free? Does it belong to another vg? are you using HACMP? is it a concurrent vg?
 
I am using HACMP, but it doesn't show the vg name.
It just say 'none'. ???

hdisk95 00c3403a72bdc68a None
 
I just found this while googling, I hope it is useful!

Code:
PVID trouble

To add a PVID to a disk, enter:
chdev -l vpathxx -a pv=yes

To clear all reservations from a previously used SAN disk:
chpv -C vpathxx


I'm not sure if this is due to SAN reservation!

Regards,
Khalid
 
Better make sure that hdisk95 is not another path/name to a SAN LUN which is in use under another path/name.

What type of disk is hdisk95 anyway?

lscfg -l hdisk95



HTH,

p5wizard
 
It is IBM FastT (DS4500).

lscfg -l hdisk95
hdisk95 U7879.001.DQDLTLR-P1-C4-T1-W200200A0B813A360-L5E000000000000
1742-900 (900) Disk Array Device

thx much
 
so

lscfg|grep hdisk

and see if there are other hdisk names with the same id W200200A0B813A360-L5E000000000000

Also for DS4k LUNs, you should be using RDAC driver, which hides this issue from you.


HTH,

p5wizard
 
PDC # lscfg|grep W200200A0B813A360-L5E000000000000
+ hdisk95 U7879.001.DQDLTLR-P1-C4-T1-W200200A0B813A360-L5E000000000000
1742-900 (900) Disk Array Device

Only there is one, hdisk95 for the ID.
 
How about if you grep only for L5E000000000000

Chances are, the first part is the WWNN for the DS4k's controllers, and that would be different for each of the 2 paths.



HTH,

p5wizard
 
lscfg |grep L5E000000000000
+ hdisk95 U7879.001.DQDLTLR-P1-C4-T1-W200200A0B813A360-L5E000000000000
1742-900 (900) Disk Array Device

It is still hdisk95.

thx much
 
show please:

lspv
lscfg|egrep "dac|dar|hdisk"
lsdev -C|egrep "dac|dar|hdisk"





HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top