Operating System - HP-UX
1748169 Members
3780 Online
108758 Solutions
New Discussion юеВ

vg00 no more in /etc/lvmtab

 
SOLVED
Go to solution
Mark Nieuwboer
Esteemed Contributor

vg00 no more in /etc/lvmtab

Hi,

I have a weird problem.
I used a vgdisplay -v vg00 and i get the messages:
vgdisplay: Volume group "/dev/vg00" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "vg00".

after this a moved /etc/lvmtab /etc/lvmtab.old
and did a vgscan -av know i had an other fault:
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/vg00 failed.

output ioscan -fnCdisk

disk 0 0/0/0/3/0.5.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 0/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0

/dev/rdsk# ll
total 0
crw-r----- 1 bin sys 188 0x005000 May 9 07:44 c0t5d0
crw-r----- 1 bin sys 188 0x006000 May 9 07:44 c0t6d0

dev/dsk# ll
total 0
brw-r----- 1 bin sys 31 0x005000 Nov 12 2004 c0t5d0
brw-r----- 1 bin sys 31 0x006000 Nov 12 2004 c0t6d0

All my filesystems are up on vg00

please how can i get vg00 back in /etc/lvmtab.

grtz. Mark
21 REPLIES 21
Bharat Katkar
Honored Contributor

Re: vg00 no more in /etc/lvmtab

Hi Mark,
Looks like one of the disk gone bad.

Well what you can do is just move all backup lvmtab files away from /etc and put them in /tmp.

Then try doing vgscan -a to recreate new lvmtab file.

If it still gives error then find which disk have gone bad using dd command.

# dd if= of=/dev/null

See if this tracks any bad block on the disk.

Try this for disk1 also.
Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Cem Tugrul
Esteemed Contributor

Re: vg00 no more in /etc/lvmtab

Hi Mark,

Could you please check;

i-ll /dev/vg*

ii-cat /etc/fstab

iii-cat /etc/mnttab

iv-/etc/rc.log ?


Our greatest duty in this life is to help others. And please, if you can't
Sudeesh
Respected Contributor

Re: vg00 no more in /etc/lvmtab

Hi,

You can try the following...

insf -eC disk
#to recreate device files
vgscan -av
#try creating the lvmtab.

If this fails verify that you are able to access both the hard disks using dd like Bharat suggested.



Sudeesh
The most predictable thing in life is its unpredictability
Saravanan_15
Advisor

Re: vg00 no more in /etc/lvmtab

Hi Nieu,
you can restore the vg00 configuration using vgcfgrestore command. First u can list the PVs that are belongs to vg00 from the config(backup)file.
For Ex:
Beta3dev /etc =>vgcfgrestore -n vg00 -l
Volume Group Configuration information in "/etc/lvmconf/vg00.conf"
VG Name /dev/vg00
---- Physical volumes : 3 ----
/dev/rdsk/c2t0d0s2 (Bootable)
/dev/rdsk/c2t1d0 (Non-bootable)
/dev/rdsk/c3t2d0 (Non-bootable)

By default it will take the inf. from the file /etc/lvmconf/vg00.conf

If you want to specify some other file,
Beta3dev /etc =>vgcfgrestore -f /etc/lvmconf/vg00conf.3103 -l
Volume Group Configuration information in "/etc/lvmconf/vg00conf.3103"
VG Name /dev/vg00
---- Physical volumes : 2 ----
/dev/rdsk/c2t0d0s2 (Bootable)
/dev/rdsk/c2t1d0 (Non-bootable)

Once you confirmed that file having enough inf. about your vg00, u can restore vg00 using,
Beta3dev /etc =>vgcfgrestore -R -n /dev/vg00 /dev/rdsk/c2t1d0
Volume Group configuration has been restored to /dev/rdsk/c2t1d0

Note: -R option will restore the config even if the VG is still in active.
Hope this will help you
Cem Tugrul
Esteemed Contributor

Re: vg00 no more in /etc/lvmtab

agree with Sudeesh's steps...
Our greatest duty in this life is to help others. And please, if you can't
Mark Nieuwboer
Esteemed Contributor

Re: vg00 no more in /etc/lvmtab

Maybe i wasn't clear.
I already tried a vgscan with al the options.
I tried the dd options but no fault messages.
the vgcfrestore give the following output:
vgcfgrestore: Volume group "/dev/vg00" does not exist in the "/etc/lvmtab" file.
Volume Group configuration has been restored to /dev/rdsk/c0t5d0

the disk are fine but still i can't get vg00 in the lvmtab.
Bharat Katkar
Honored Contributor

Re: vg00 no more in /etc/lvmtab

Hi,

Something wrong with "c0t6d0"

Now that you have executed vgcfgrestore does command "vgdisplay -v vg00" works and if so can you post the output.

Also try executing "pvdisplay -v /dev/dsk/c0t6d0" and post the output.

Regards,


You need to know a lot to actually know how little you know
Mark Nieuwboer
Esteemed Contributor

Re: vg00 no more in /etc/lvmtab

I have also tryed to restore c0t6d0 same result.
vgdisplay -v vg00 gives still the same result.

something extra it is a cluster configuration.
Mark Nieuwboer
Esteemed Contributor

Re: vg00 no more in /etc/lvmtab

the output from pvdisplay =
pvdisplay -v /dev/dsk/c0t6d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c0t6d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c0t6d0".