1833044 Members
2775 Online
110049 Solutions
New Discussion

lvmtab

 
SOLVED
Go to solution
Jay Cantwell
Regular Advisor

lvmtab

Good morning all..first let me thank everyone for the replys on my ftp question..the umask 000 setting worked like a charm.....

I actually have to questions this morning one on lvmtab and the other on printers...
I have seen the conversations about lvmtab in this forum and tried what was suggested..that is to say I ran vgscan -v with the existing lvmtab and I ran vgscan -v after I removed the lvmtab (rm lvmtab)...SAM is still telling me that my disks are 'unused' and that I have no logical volume or vol groups assigned..any other ideas...

The second question is on printers...I read Ted Flanders' problem and mine is similar..however, when printing to hp laserjet4 the print process is wanting to use single feed mode as opposed to auto tray feed...I looked at the etc/lp/interface and to honest with you I can not figure out what it is telling me and what I can change to auto feed to this printer....the other printer is an hp8500 color..I get mostly garbage out here...sooooo, can someone tell me what needs to changed and where ??? thanks again...Jay
14 REPLIES 14
Cheryl Griffin
Honored Contributor

Re: lvmtab

Jay,
vgscan will recreate the /etc/lvmtab by querying the disks for the LVM information.

The procedure to rebuild a /etc/lvmtab is:
# mv /etc/lvmtab /tmp/lvmtab
# vgscan -v
# strings /etc/lvmtab

You should then see the volume group and associated disks.
"Downtime is a Crime."
John Palmer
Honored Contributor
Solution

Re: lvmtab

Jay,

On your first printing problem, have you tried 'man net_lj4x'. This describes all the options that are available to the lp command for that type of model script
Cheryl Griffin
Honored Contributor

Re: lvmtab

Jay,
One other point. Take SAM out of the way.
Look in /dev for the volume groups.
# ll /dev/vg*

Use vg* here unless you named the volume groups something non-standard.
This command will list for every volume group the group file, lvol(s), and rlvol(s).
"Downtime is a Crime."
John Palmer
Honored Contributor

Re: lvmtab

Jay,

Re lvmtab, what problem do you have with it?
Jay Cantwell
Regular Advisor

Re: lvmtab

Cheryl...I did as you suggested, still
the same problem...
Cheryl Griffin
Honored Contributor

Re: lvmtab

Jay,
This problem is not typical of LVM. Will you tell us more of the history of this problem? What lead you to need to rebuild the file? Have you had any hardware issues?

check if the file exists.
# ll /etc/lvmtab
The date/timestamp should be current if it was rebuilt.

Do the volume group directories exist in /dev?

About vgscan:
When disks are used in LVM, SAM runs the pvcreate and vgcreate commands. Both of these commands write information to the header of the disk in areas designated as PVRA (physcial volume reserved area) and the VGRA (volume group reserved area). Unless these areas were destroyed, when you run vgscan these areas will be read and are used to recreate the /etc/lvmtab.
"Downtime is a Crime."
John Palmer
Honored Contributor

Re: lvmtab

Jay,

Posting the ouput from vgscan would be useful.
Jay Cantwell
Regular Advisor

Re: lvmtab

Cheryl .. normally I would agree with about
the header entries on the disks..however, in this case I am really not sure..vgdisplay, pvdisplay are picking them up as logical volumes...I just created another lvmtab again..I have attached the output...thanks again....Jay
Cheryl Griffin
Honored Contributor

Re: lvmtab

Jay, The only thing I notice is that /dev/vg00 is not listed first. I vaguely remember a problem with root not being listed first but don't know if that is the issue here.

What was the SAM error message?
"Downtime is a Crime."
John Palmer
Honored Contributor

Re: lvmtab

OK so the problem is with sam...

There are some known problems in this area. Have you got the latest LVM and SAM patches installed?

Is it HP-UX 11.00 or 10.20?


Jay Cantwell
Regular Advisor

Re: lvmtab

John.. the last patches made to this machine by the previous sysadmin was Dec 99...I took over the sysadmin duties in Jan of this year..would these patches be in the June General release from the software depot...by the way speaking of the software depot, how do we get the general releases, is the software depot site down or been changed???
Jay Cantwell
Regular Advisor

Re: lvmtab

John...did you get my last reply...by the way the OS is 10.20...thanks...
Donald E. Bodle, Jr
Occasional Contributor

Re: lvmtab

On the LVM problem. If you have access to the Technical Knowledge Base, get DocID KBRC00001451. As Cheryl said, it may have to do with vg00 not being first in lvmtab. The steps are to vgexport and then vgimport any vg(s) listed prior to vg00 in lvmtab. Also to edit /sbin/ioinitrc -
from /sbin/lvlnboot -c
to /sbin/lvlnboot -c vg00.
Please check the document from the knowledge base for the details (and to make sure I didn't make a typo).
If we don't change our direction, we're likely to end up where we're headed.
John Palmer
Honored Contributor

Re: lvmtab

Jay,

The latest SAM cumulative patch for 10.20 is PHCO_21186 dated 20th May 2000.

I suggest that you download this from the ITRC and apply it. It has no dependencies and doesn't require a reboot.

Regards,
John