Operating System - HP-UX
1832897 Members
2896 Online
110048 Solutions
New Discussion

Re: to remove a PV from a VG on cluster

 
mparasur
Advisor

to remove a PV from a VG on cluster

Hi,

I need to remove a free PV from VG and add the disk to other VG on a hp-ux serviceguard cluster. The package is up and running

I have followed the following steps.
1. vgreduce vgnfs19 /dev/dsk/c60t5d1
2. vgexport -p -s -v -m /tmp/vgnfs19.map /dev/vgnfs19
3. copied the group file and imported the map to all other nodes
4. pvremove /dev/dsk/c60t5d1
5. pvcreate /dev/dsk/c60t5d1---here i am getting i/o error when I tried to execute this command in another node. If I run this command on the same node i am not getting any error.

Request all your help to resolve the issue.

Thanks in advance
Mani



5 REPLIES 5
melvyn burnard
Honored Contributor

Re: to remove a PV from a VG on cluster

Are you SURE it is the same disk DSF on both nodes?
If you run pvcreate on the disk from one node, there is no need to rerun it on the other node.
You could try using the -f option if you REALLY want to do it.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Aneesh Mohan
Honored Contributor

Re: to remove a PV from a VG on cluster

Hi Mani,

If your PA-RISC system you can confirm the device files using .


#echo "0x2008?4D" |adb /dev/dsk/c60t5d1

if the information is same on both the nodes then you can confirm and proceed the step mentioned above post.

pvcreate -f /dev/rdsk/c60t5d1

Regards,
Aneesg

Kapil Jha
Honored Contributor

Re: to remove a PV from a VG on cluster

i think on second name, device name should be different.
You may check serial number from cstm of as suggeted above.
Check it and do not do a pvcreate without confirming it could result in all data loss.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
mparasur
Advisor

Re: to remove a PV from a VG on cluster

Hi All,

You are correct. I have mistyped the device name. The actual device name is c60t0d3 on the other node.

pvcreate /dev/rdsk/c60t0d3
pvcreate: writing LVM record: I/O error

Regards,
Mani
shyam sunder_2
Advisor

Re: to remove a PV from a VG on cluster

Hi Mani,
I think you are touching a LUN who is already with some other vg. First check that LUN (c60t0d3) with the following command :-

strings /etc/lvmtab |grep c60t0d3

it it gives ant output, it means this disk is already associated with other vg.

Regards
Shyam