1833800 Members
2557 Online
110063 Solutions
New Discussion

Re: problem with VG

 
Lucent
Occasional Advisor

problem with VG

hi,

on our L1000 (B 11.0) one disk died (/dev/dsk/c5t8d0) - it´s
one of a "MirrorDisk/UX"-pair.

I made "vgscan " but vgscan reports an error - what to do now?


Script started on Mon Nov 8 14:04:23 2004
nmc2tcsb,sys,root # vgscan
vgscan: The physical volume "/dev/dsk/c1t2d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t2d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c4t8d0" is already recorded in the "/etc/lvmtab" file.

Couldn't stat physical volume "/dev/dsk/c0t1d0":
Invalid argument


vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/vg01 failed.
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c5t8d0

nmc2tcsb,sys,root #
nmc2tcsb,sys,root #

script done on Mon Nov 8 14:05:08 2004
5 REPLIES 5
Slawomir Gora
Honored Contributor

Re: problem with VG

Hi,

you have to:
1. replace disk
2. run vgcfgrestore to rebuild structures on failed disk
3. synchronize mirror vgsync command

Sanjay_6
Honored Contributor

Re: problem with VG

Hi,

Useful doc from itrc,

If you find it useful take a printout and keep it,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000073905420

the itrc doc id is KBAN00000347.

You need to do vgcfgrestore after replacing the disk and then vgchange / vgsync. Take a look at the doc for a cookbook procedure.

Hope this helps.

Regds
Pete Randall
Outstanding Contributor

Re: problem with VG

See the "Replace a Failed LVM Disk" section in the LVM chapter of the Software Recovery Cookbook:

http://www2.itrc.hp.com/service/iv/node.do?node=prodITRC%2FWW_Start%2FN1%7C16%7C11


Pete

Pete
RAC_1
Honored Contributor

Re: problem with VG

Replace the bad disk. (if hot swappable, you do need to do anything.)

vgcfgrestore -n vg00 /dev/dsk/cxtxdx
vgsync vg00
vgchange -a y vg00

check everthing lvlnboot -v

Anil
There is no substitute to HARDWORK
Sridhar Bhaskarla
Honored Contributor

Re: problem with VG

Hi,

'vgscan' is not to be run generously. It's only to be used when your /etc/lvmtab is corrupted or lost, but not when you have issues with the disks.
Follow 'vgcfgrestore' process as outlined by others.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try