1833700 Members
2998 Online
110062 Solutions
New Discussion

/etc/lvmtab

 
SOLVED
Go to solution
Stuart Lloyd_2
Advisor

/etc/lvmtab

My lvmtab is completely hosed. How do I create a new one?
Charlie don't surf.
12 REPLIES 12
Helen French
Honored Contributor

Re: /etc/lvmtab

Try this:

# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -a
Life is a promise, fulfill it!
Ken Penland_1
Trusted Contributor

Re: /etc/lvmtab

remove it, then do a vgscan -a
'
Stuart Lloyd_2
Advisor

Re: /etc/lvmtab

Couldn't stat physical volume "dev/dsk/c0t9d0":
Invalid argument
Physical Volume "/dev/dsk/c1t2d0" contains no LVM information

The Volume Group /dev/vg03/group was not matched with any Physical Volumes.

# more lvmtab
^CM-h^/dev/vg00
x
M-^K8M-@^Ky^A/dev/dsk/c0t5d0
/dev/vg01
x
Memory fault(coredump)
Charlie don't surf.
Jeff Schussele
Honored Contributor

Re: /etc/lvmtab

Hi Stuart,

Make sure you remove the old file or at least move it out of /etc. vgscan will refer to the file & use it as a template therefore recreating the same problems you had before.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Stuart Lloyd_2
Advisor

Re: /etc/lvmtab

Did that. Got the same results.
Charlie don't surf.
A. Clay Stephenson
Acclaimed Contributor

Re: /etc/lvmtab

What is your definition of a hosed lvmtab? You are using "more" on a binary file that happens to contain some string data. It's always (very statistically speaking, highly probable) that lvmtab will contain non-ASCII characters. A better technique is "strings /etc/lvmtab" to produce much more human readable text although occasionally some seemingly strange characters will appear because strings looks for sequences of 3 or more printable ASCII characters in secession for output.
If it ain't broke, I can fix that.
John Dvorchak
Honored Contributor

Re: /etc/lvmtab

The /etc/lvmtab file was not meant to be read directly with the pg or more commnand. Would you please post the results of:

# strings /etc/lvmtab

Then maybe we can get a hint as to the problem you are having.

John
If it has wheels or a skirt, you can't afford it.
Stuart Lloyd_2
Advisor

Re: /etc/lvmtab

# strings lvmtab
/dev/vg00
/dev/dsk/c0t5d0
/dev/vg01
/dev/dsk/c0t8d0
/dev/vgOra9
/dev/dsk/c1t5d0



It doesn't show my other disk with vg03.
Charlie don't surf.
Patrick Wallek
Honored Contributor

Re: /etc/lvmtab

If you notice the error message in one of your replies, vgscan states that it could not stat physical volume /dev/dsk/c0t9d0. That indicates to me that the disk is dead.

Do an 'ioscan -fnC disk' and see if c0t9d0 shows up as NO_HW. If so, it is definitely dead and needs to be replaced.
Stuart Lloyd_2
Advisor

Re: /etc/lvmtab

target 0 8/4.5 tgt CLAIMED DEVICE
disk 0 8/4.5.0 sdisk CLAIMED DEVICE SEAGATE ST39175LC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
target 1 8/4.7 tgt CLAIMED DEVICE
ctl 0 8/4.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c0t7d0
target 2 8/4.8 tgt CLAIMED DEVICE
disk 1 8/4.8.0 sdisk CLAIMED DEVICE SEAGATE ST39175LC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
target 3 8/4.9 tgt NO_HW DEVICE
disk 2 8/4.9.0 sdisk NO_HW DEVICE SEAGATE ST39175LC
/dev/dsk/c0t9d0 /dev/rdsk/c0t9d0

target 6 8/16/5.5 tgt CLAIMED DEVICE
disk 4 8/16/5.5.0 sdisk CLAIMED DEVICE QUANTUM ATLAS IV 36 SCA
/dev/dsk/c1t5d0 /dev/rdsk/c1t5d0
Charlie don't surf.
Mel Burslan
Honored Contributor
Solution

Re: /etc/lvmtab

this here is your dead ringer :

disk 2 8/4.9.0 sdisk NO_HW DEVICE SEAGATE ST39175LC

NO_HW, hence, the disk hardware is bad.
________________________________
UNIX because I majored in cryptology...
Patrick Wallek
Honored Contributor

Re: /etc/lvmtab

Yep, it appears you have got a quite dead 9GB at c0t9d0. If you have an HP support contract, call HP and have them replace it.