1753531 Members
5455 Online
108795 Solutions
New Discussion юеВ

new disk in array

 
SOLVED
Go to solution
Ceesjan van Hattum
Esteemed Contributor

new disk in array

Hi,
I want to add a disk to my array and use it as an extra mirror on vg00.
'ioscan' sees the disk.
'pvcreate -B' does NOT work:
PV already belongs to a volume group.
'pvremove' : PV belongs to an exported volume group

But really, none of my 2 volumegroups includes the disk: vgdisplay -v /dev/vg0[0|1] | grep dsk

So.. i tried to clean the disk, because i do not know the data on this disk:
dd if=/dev/null of=/dev/rdsk/c0t3d0 bs=1024k
0+0 records in; 0+0 records out...
No effect on the needed pvcreate -B...

What do i not see, what my system does.. :(
7 REPLIES 7
Martin Johnson
Honored Contributor
Solution

Re: new disk in array

Try "pvcreate -f -B".

HTH
Marty
melvyn burnard
Honored Contributor

Re: new disk in array

try using pvcreate -f -B

see what that does.
else try
dd if=/stand/vmunix of= bs=10k

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Stefan Farrelly
Honored Contributor

Re: new disk in array


Just pvcreate -f your disk first. Your dd was a good idea but you need a count=100 on the end of it - pvcreate -f does the same thing.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Jeff Schussele
Honored Contributor

Re: new disk in array

Hi Ceesjan,

Do a
#pvcreate -f /dev/rdsk/cxtydz
before the
#pvcreate -B /dev/rdsk/cxtydz

I *think* you can do them on the same line, -f first, but I'm not positive.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sanjay_6
Honored Contributor

Re: new disk in array

Hi,

when you do an ioscan, are the device files seen. If not, then do "insf -e" to recreate the device files. Once done, see if the disk is sensed properly "diskinfo -v /dev/rdsk/cxtydz". If the disk is seen correctly, do a pvcreate and vgextend/vgcreate.

Hope this helps.

Regds
James R. Ferguson
Acclaimed Contributor

Re: new disk in array

Hi:

If you 'vgexport' a volume group with the intention of destroying it, the LVM information is still intact on the physical disk volumes that belonged to it. Therefore, you will need to do a forced 'pvcreate' to overwrite it:

# pvcreate -f /dev/rdsk/cXtYdZ

Make very sure that you know that this is a disk that you want to overwrite.

Regards!

...JRF...
Ceesjan van Hattum
Esteemed Contributor

Re: new disk in array

The -f did the trick. I should RTFM...
THANKS all. Case closed.
Regards,
Ceesjan