1748204 Members
3444 Online
108759 Solutions
New Discussion

Re: lvm question

 
Patrick Wallek
Honored Contributor

Re: lvm question

Unless you have other issues, you should not need to do a vgscan after removing a disk from a VG to remove it from the /etc/lvmtab file.

That is part of the work that the LVM commands do.

The question was: "how do i remove a physical disk path from lvmtab file."

The answer is "remove the disk from the VG." To do this you use the vgreduce command. If everything else is working correctly, that is ALL you need to do.

If you have other problems, then other actions may be required, but that is not what was asked.
James R. Ferguson
Acclaimed Contributor

Re: lvm question

Hi:

I second Patrick's last response. You should familarize yourself with the side-effects of running 'vgscan' to reconstruct an 'lvmtab'. Read the WARNINGS section of the manpages!

http://www.docs.hp.com/en/B2355-60130/vgscan.1M.html

As noted, if there isn't a specific need to reconstruct the 'lvmtab' then doing so only leads to more work on your part!

Regards!

...JRF...