Operating System - HP-UX
1826332 Members
3444 Online
109692 Solutions
New Discussion

Re: SAM/LVM puts disk_query as a disk into lvmtab

 
Reston Tech Support
Occasional Contributor

SAM/LVM puts disk_query as a disk into lvmtab

yes, it's true, it does it. And now I can't get rid of it, and I can't make any lv's (they error). How can I get rid of /dev/dsk/disk_query in my lvmtab? I know I can rebuild it (which seems faster at this point) and I now have the sam patch. ITRC says "vgreduce -f /dev/vg00 /dev/dsk/disk_query" but that syntax is incorrect. I see know way to reduce it with vgreduce.

TIA
FD
Where's the beef?
4 REPLIES 4
Sajid_1
Honored Contributor

Re: SAM/LVM puts disk_query as a disk into lvmtab

Did you try this:
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -a -v

This will rebuild lvmtab file.
learn unix ..
James R. Ferguson
Acclaimed Contributor

Re: SAM/LVM puts disk_query as a disk into lvmtab

Hi:

The syntax would be (without any pv-path):

# vgreduce -f /dev/vg00

For more information, see the 'vgreduce' man pages.

Regards!

...JRF...
Dewa Negara_1
Advisor

Re: SAM/LVM puts disk_query as a disk into lvmtab

Hi,

Try to omit -f option. So the command would be "vgreduce /dev/vg00 /dev/dsk/disk_query"

Hope this help.

Thanks.
Rgds,
Dewa
log all your daily activities on syslog.log every time...
Reston Tech Support
Occasional Contributor

Re: SAM/LVM puts disk_query as a disk into lvmtab

I don't like using vgscan because it can be very destructive, but is also very recoverable (provided you save it before). But it was the only thing that worked, and it did the job.
vgreduce does not work because both the -f option and w/out the -f, I get "cannot query /dev/dsk/dsk_query" and it fails. vgexport is a quick way to do it also, but it requires that I pvcreate the disks again to make them available for LVM. And with a vg that is 28 disks, that's too much work!

Thanks for all the replies.

FD
Where's the beef?