Operating System - HP-UX
1832460 Members
2869 Online
110043 Solutions
New Discussion

Re: Volume group HS but disks OK

 
SOLVED
Go to solution
GRANDIERE
Frequent Advisor

Volume group HS but disks OK

I had a problem with the disk array DS2100. HP repaired it. The ioscan is OK : The 4 disks of my vgdata1 are CLAIMED.

I can see the logical volumes in /dev/vgdata1. But in "sam", theses disks are in state unused ! The vgdata1 volume group is invisible in the "sam" list.

How can i recover my vgdata1 and the data that are stored in my disks.

Thanks a lot for help.

grandiere
25 REPLIES 25
Naveej.K.A
Honored Contributor

Re: Volume group HS but disks OK

Hi,

Post the output of vgdisplay -v /dev/vgdata1

Regards,
Naveej
practice makes a man perfect!!!
T G Manikandan
Honored Contributor

Re: Volume group HS but disks OK

Also,please post the output of

#ll /dev/vgdata1
GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

[PRISME3]$vgdisplay -v /dev/vgdata1
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vgdata1".
T G Manikandan
Honored Contributor
Solution

Re: Volume group HS but disks OK

#vgchange -a y /dev/vgdata1
Naveej.K.A
Honored Contributor

Re: Volume group HS but disks OK

Hi,

Please check

strings /etc/lvmtab
and make sure that the device file matches with the one you get through the ioscan.

if it doesn't matches.

mv /etc/lvmtab /etc/lvmtab.old
vgscan

vgchange -a y /dev/vgdata1

Regards,
Naveej
practice makes a man perfect!!!
GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

See attachment ...

Theses logical volumes are used for Sybase devices.
Suraj Singh_1
Trusted Contributor

Re: Volume group HS but disks OK

You said you had a problem with DS 2100. was it a h/w problem?

If yes (which i am sure of), then run ioscan -fn and check the device file name for the disks (I suppose the disks in DS 2100 must be in some RAID arrangement, and what is being presented to the OS by this DS is only logical drives).

If you do not find the dev file name for these disks, build these files using "insf -e", take a backup of "/etc/lvmtab" and run "vgscan".

Now u should activate the VG.

Regards
What we cannot speak about we must pass over in silence.
GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

When i "strings /etc/lvmtab" it's OK.

The commande vgchange responds like this.
--------------------------------------------
[PRISME3]/ $vgchange -a y /dev/vgdata1
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t2d0":
Device busy
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t4d0":
Device busy
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t6d0":
Device busy
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t4d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t6d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/vgdata1":
Quorum not present, or some physical volume(s) are missing.
--------------------------------------------

The vgdata1 is not in RAID arangement.
The ioscan is OK.
--------------------------------------------
disk 5 0/10/0/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 6 0/10/0/0.2.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC
/dev/dsk/c4t2d0 /dev/rdsk/c4t2d0
disk 7 0/10/0/0.4.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC
/dev/dsk/c4t4d0 /dev/rdsk/c4t4d0
disk 8 0/10/0/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC
/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0
--------------------------------------------

Thanks for you help.

GRANDIERE
Naveej.K.A
Honored Contributor

Re: Volume group HS but disks OK

Hi,

Can you please post the o/p of

strings /etc/lvmtab??

Regards,
Naveej
practice makes a man perfect!!!
GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

[PRISME3]/ $strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c5t9d0
/dev/dsk/c5t10d0
/dev/vgdata
/dev/dsk/c1t0d0
/dev/dsk/c2t0d0
/dev/dsk/c2t2d0
/dev/vgdata1
/dev/dsk/c4t0d0
/dev/dsk/c4t2d0
/dev/dsk/c4t4d0
/dev/dsk/c4t6d0
/dev/vgdata2
/dev/dsk/c5t0d0
/dev/dsk/c5t1d0
/dev/dsk/c5t8d0
/dev/vgdata3
/dev/dsk/c5t2d0
/dev/vgdata4
/dev/dsk/c5t3d0
/dev/vgdata5
/dev/dsk/c5t4d0
/dev/vgdata6
/dev/dsk/c5t5d0
/dev/vgdata7
/dev/dsk/c5t6d0
Suraj Singh_1
Trusted Contributor

Re: Volume group HS but disks OK

Along with the o/p of "strings /etc/lvmtab", also you should run "vgscan". Before running vgscan, copy /etc/lvmtab to say /etc/lvmtab.org.

Regards,
SUraj
What we cannot speak about we must pass over in silence.
Naveej.K.A
Honored Contributor

Re: Volume group HS but disks OK

Hi,

After moving your /etc/lvmtab do a vgscan and then try to activate the VG.

If it still doesn't work, execute the following commands and make sure the size doesn't return with 0KB

diskinfo /dev/rdsk/c4t2d0; diskinfo /dev/rdsk/c4t4d0; diskinfo /dev/rdsk/c4t6d0

Regards,
Naveej
practice makes a man perfect!!!
GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

See attached file ...
Naveej.K.A
Honored Contributor

Re: Volume group HS but disks OK

Hi,


I think you forgot to move the /etc/lvmtab,

mv /etc/lvmtab /etc/lvmtab.old
vgscan -v
post the output.

vgchange -a y /dev/vgdata1

still problems??

do a diskinfo on the disk as mentioned in my previous thread.

post the output


--Naveej
practice makes a man perfect!!!
GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

Yes, sory, i made a copy instead of making a move.

That the new output.

GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

[PRISME3]/etc $diskinfo /dev/rdsk/c4t2d0
SCSI describe of /dev/rdsk/c4t2d0:
vendor: HP 36.4G
product id: ST336706LC
type: direct access
size: 0 Kbytes
bytes per sector: 0
[PRISME3]/etc $diskinfo /dev/rdsk/c4t4d0
SCSI describe of /dev/rdsk/c4t4d0:
vendor: HP 36.4G
product id: ST336706LC
type: direct access
size: 0 Kbytes
bytes per sector: 0
[PRISME3]/etc $diskinfo /dev/rdsk/c4t6d0
SCSI describe of /dev/rdsk/c4t6d0:
vendor: HP 36.4G
product id: ST336706LC
type: direct access
size: 0 Kbytes
bytes per sector: 0
[PRISME3]/etc $diskinfo /dev/rdsk/c4t0d0
SCSI describe of /dev/rdsk/c4t0d0:
vendor: HP 36.4G
product id: ST336706LC
type: direct access
size: 35566480 Kbytes
bytes per sector: 512


See the fourth disk is OK and in the same disk array.

Naveej.K.A
Honored Contributor

Re: Volume group HS but disks OK

Sorry to drag you through a lot of commands/procedures.

I would requuest you to follow the following steps.

# insf -e C disk
# mv /etc/lvmtab /etc/lvmtab.old.1

# vgscan -v

# vgchange -a y /dev/vgdata1

If it still doesn't work, execute the following commands and make sure the size doesn't return with 0KB

diskinfo /dev/rdsk/c4t2d0; diskinfo /dev/rdsk/c4t4d0; diskinfo /dev/rdsk/c4t6d0

Regards,
Naveej
practice makes a man perfect!!!
Suraj Singh_1
Trusted Contributor

Re: Volume group HS but disks OK

This is serious....

Size reported by diskinfo for c4t2d0, c4t4d0 and c4t6d0 is 0 KB.

Hope you have the backups handy...
What we cannot speak about we must pass over in silence.
Naveej.K.A
Honored Contributor

Re: Volume group HS but disks OK

I am afraid you are having bad disk. I think you have to call HP and log a call once again for your replacing your defective hard disks.

Regards,
Naveej
practice makes a man perfect!!!
GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

for the diskinfo, i respond in the post Apr 29, 2005 12:13:01

For the rest the the attached file ...
GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

What a bad news. I have lots of sybase devices on that vg. I have 2 free 73 Gbs HD. It is very simple to make a new vgdata1. Is there a command that could remake all the lv (same size same name) on my vg ?

I will call HP for change disks. Thanks a lot for your help.

GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

Are the commands vgexport et vgimport could help me remake a vgdata1 with 2 73 Go HD ?

Thanks.

Devender Khatana
Honored Contributor

Re: Volume group HS but disks OK

Hi,

No vgimport and vgexport are required to move VG's from one system to another. You can restore LVM configuration through vgcfgrestore command. but at this stage I think that also will not work as your Vg has three failed disks out of total 4. Still try it out othewise create new Vg on new disks ( this is recomended as your new disks are of double sizes then earlier ones). Were these LVOL being used as raw space ? If not you can get the LVOL sizes from any bdf output prior to failures.If yes you require old "vgdisplay -v /dev/vg01" output to know the sizes of these LVOL's prior to failure.

HTH,
Devender
Impossible itself mentions "I m possible"
GRANDIERE
Frequent Advisor

Re: Volume group HS but disks OK

Hi,

I thank you very++ much for your help !

I will remake my vgdata1 with new disks and restore data from backups.

Regards.

Emmanuel GRANDIERE