Operating System - HP-UX
1833802 Members
2120 Online
110063 Solutions
New Discussion

How to remove stuff from lvmtab

 
SOLVED
Go to solution
Jeremy Loukinas
Frequent Advisor

How to remove stuff from lvmtab

I was adding some vg's and lv's on an HP11.00 server. I noticed that when I checked my /etv/lvmtab file there was the this weird /dev/dsk/disk_query in vg02? I wouldn't worry about to much but now I can't create any logical volume because it thinks its missing a pv.

/dev/vg02
/dev/dsk/c0t1d2
/dev/dsk/c0t1d3
/dev/dsk/c0t1d4
/dev/dsk/c0t1d5
/dev/dsk/c0t1d6
/dev/dsk/c0t1d7
/dev/dsk/c0t2d0
/dev/dsk/c0t2d1
/dev/dsk/c0t2d2
/dev/dsk/c0t2d3
/dev/dsk/disk_query <<<<

6 REPLIES 6
Ken Hubnik_2
Honored Contributor

Re: How to remove stuff from lvmtab

Look at the man pages on vgscan. It talks about recreating lvmtab.
Pete Randall
Outstanding Contributor
Solution

Re: How to remove stuff from lvmtab

Jeremy,

As a first attempt, I would mv /etc/lvmtab /etc/lvmtab.save and run vgscan -av.


Pete



Pete
Steven E. Protter
Exalted Contributor

Re: How to remove stuff from lvmtab

You don't edit /etc/lvmtab directly

The system updates it based on what is mounted.

Look at /etc/fstab make changes there, umount stuff you no longer want mounted and /etc/lvmtab will magically show things the way you want.

Your specific error would have me wanting to reboot after checking /etc/fstab



SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
S.K. Chan
Honored Contributor

Re: How to remove stuff from lvmtab

Have you try to recreate your lvmtab file ?
# cd /etc
# mv lvmtab lvmtab.org
# vgscan -a
Elena Leontieva
Esteemed Contributor

Re: How to remove stuff from lvmtab

Jeremy Loukinas
Frequent Advisor

Re: How to remove stuff from lvmtab

After moving the lvmtab file and letting vgscan -av recreate it removed that disk_query business.

/dev/vg02
/dev/dsk/c0t1d2
/dev/dsk/c0t1d3
/dev/dsk/c0t1d4
/dev/dsk/c0t1d5
/dev/dsk/c0t1d6
/dev/dsk/c0t1d7
/dev/dsk/c0t2d0
/dev/dsk/c0t2d1
/dev/dsk/c0t2d2
/dev/dsk/c0t2d3
/dev/dsk/c1t9d2
/dev/dsk/c1t9d3
/dev/dsk/c1t9d4
/dev/dsk/c1t9d5
/dev/dsk/c1t9d6
/dev/dsk/c1t9d7
/dev/dsk/c1t10d0
/dev/dsk/c1t10d1
/dev/dsk/c1t10d2
/dev/dsk/c1t10d3

Also pointed my alternate links correctly.