Skip to contentSkip to conversation

LVM corruption possibilites??

linux-lvm Steve Shorter 3 participants 3 messages Oct 23, 2008 – Oct 24, 2008

lore
Share & tools
lore
#0 lore raw

Howdy!

I intend a simple minimal setup of LVM. I have a number
of hardware nodes connected to a SAN. On the SAN is a pool of drives. If I assign whole drives to Volume Groups and dedicate each Volume Group to a single node, am I correct in assuming that data/metadata corruption will/can not occur? Each node will only modify the VG that it is assigned. Are there any other issues that need to be considered? Am I correct in assuming that Volume/LVM metadata for a volume is written only to disks in that volume and volumes are independent of each other and that in this simple setup some kind of clustering solution is not neccessary?

thanx - steve

#1 lore raw
Quoted 12 lines · Steve Shorter

Howdy!

I intend a simple minimal setup of LVM. I have a number
of hardware nodes connected to a SAN. On the SAN is a pool of drives. If I assign whole drives to Volume Groups and dedicate each Volume Group to a single node, am I correct in assuming that data/metadata corruption will/can not occur? Each node will only modify the VG that it is assigned. Are there any other issues that need to be considered? Am I correct in assuming that Volume/LVM metadata for a volume is written only to disks in that volume and volumes are independent of each other and that in this simple setup some kind of clustering solution is not neccessary?

Well... if the LVM metas are VISIBLE to all hosts, then yes... there are situations where this will cause some confusion.

Let's just say that even it is possible... it just doesn't sound like something wise to do.

Usually you perform LUN masking on storage areas you expose to prevent other hosts within the same zone from seeing each others storage.

The problem without masking is that a scan will find all of the metas if the drives (LUNs) are visible to all.

For safety and to avoid some consistency issues, I'd use LUN masking. Just my opinion.

#2 lore raw
Quoted 2 lines · Chris Cox

For safety and to avoid some consistency issues, I'd use LUN masking. Just my opinion.

LUN masking is a good idea. You can also use LVM tags.

brassow