LVM

 
SOLVED
Go to solution
Prashant Zanwar_4
Respected Contributor

LVM

What would happen if I vgexport VG's having devices with NO_HW state?
Thanks and regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: LVM

Your VG would still get exported and the /dev/vg* directory be removed.

A vgexport does not do anything to the VGRA on the disks which is why you can later vgimport if you need to.

Robert-Jan Goossens
Honored Contributor

Re: LVM

I think vgexport will execute.

--- Man vgexport---
Using the format of the first command line of the SYNOPSIS above, the vgexport command can be used to remove a volume group from the system. The volume group will be removed without modifying the logical volume information found on the physical volumes.
---
Last line is important.

Hope this helps,
Robert-Jan
Cesare Salvioni
Trusted Contributor

Re: LVM

hi
same opinion as other ppl.
vgexport works only on internal tables, doesn't change anything on the disks (that's the trick) so doesn't matter the disks state

hope it helps
Geoff Wild
Honored Contributor

Re: LVM

The disk would be exported from the server.

Same as pulling a disk out - and not replacing it.

vgexport only removes from the OS.

Example, you could vgimport that disk on another server.

That's why it is best to blow away the contents of a disk - easy way - pvcreate -f it - that will remove all lvol information.

You may also have to rmsf the device files - to clean up.

Then re-run ioscan -fnC disk, and insf -e

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Florian Heigl (new acc)
Honored Contributor

Re: LVM

(Of course the vg has to be inactive - but vgchange also works in that situation from what I can remember)
yesterday I stood at the edge. Today I'm one step ahead.