Operating System - HP-UX
1745786 Members
3645 Online
108722 Solutions
New Discussion юеВ

Re: Deletion of LVM Structures

 
SOLVED
Go to solution

Deletion of LVM Structures

Hi,
I am using HP-SG on HP A Class servers with HP-UX 11i.
For some reasons, my whole cluster got messed up and I needed to set things right.

I deleted all the original volumes and filesystems and everything on the shared disks using SAM.. But it still has the cluster s/w and the config files(ofcourse not functional).

Now, I try to configure a volume group from node A. When I do this, and press OK from SAM, it says some LVM structures are there on the disks because the other node might be accessing it and doesnt allow the creation of the vol group. It FAILS.

I did pvdislay /dev/dsk/c4t0d0. On doing this, i get a display of my old volume group /dev/vgha1. I want to remove this. But its not allowing me to remove it. It needs this volume group to be acitvated, which i m not able to do.

Please help.

Thanks & Regards,
Karthik
12 REPLIES 12
Sandip Ghosh
Honored Contributor

Re: Deletion of LVM Structures

Do a pvcreate on that disk with -f option. It will then work as a new disk.

Sandip
Good Luck!!!

Re: Deletion of LVM Structures

Hi ,
When I do , pvcreate -f /dev/rdsk/c4t9d0,
it says, the physical volume is already recorded in /etc/lvmtab file.
Robert-Jan Goossens
Honored Contributor
Solution

Re: Deletion of LVM Structures

Hi Karthik,

Look at next link for more info.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc14a68c57f64d4118fee0090279cd0f9,00.html

Kind regards,

Robert-Jan.
steven Burgess_2
Honored Contributor

Re: Deletion of LVM Structures

Hi

Have you checked the other node to see wether the volume group has been activated on that node ?

If all ok

Reference the disk in lvmtab

I would then either reduce it out of the volume group or completely blow the vg away with a vgexport then perform the pcvreate -f on the disk before re adding it to your new volume group

all sounds a bit messy though


HTH

Steve
take your time and think things through
Sandip Ghosh
Honored Contributor

Re: Deletion of LVM Structures

Look at the /etc/lvmtab. If the same disk is still part of the volume group then do a vgexport for that drive from both the system. This will take the disk out of the lvmtab file.

Sandip
Good Luck!!!
linuxfan
Honored Contributor

Re: Deletion of LVM Structures

Hi Karthik,

Assuming Node A and Node B are the two nodes in the cluster.

Just to confirm the vgname
do a strings /etc/lvmtab or
pvdisplay /dev/dsk/c4t0d0 |grep "VG Name" | awk '{print $3}'

On Node B.
vgchange -a n vgname
vgexport vgname

On Node A.
vgchange -a n vgname
vgexport vgname

Now you should be able to
pvcreate -f /dev/rdsk/c4t0d0

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
steven Burgess_2
Honored Contributor

Re: Deletion of LVM Structures

Hi

What's the error message that you are getting from sam ?

Can you remsh to the other host ?

Regards

Steve
take your time and think things through

Re: Deletion of LVM Structures

Hi,
I did vgexport.
Now, I did , strings /etc/lvmtab. I did not find the messed up studd and the volume group now is not there. But still when I try to create a Volume group using SAM, it gives a message that LVM structures are still there. But this time it created the VG and the LV, which is an improvement.

Now, but when I try to distribute it, (after unmonting, deactivating), it gives me error that SAM cannot contact the other node due to network problems. I dont find any because, i can reach the machines and also have .rhosts setup.

Please advice.

Thanks,
Karthik

Re: Deletion of LVM Structures

Yes, remsh works fine.