Skip to contentSkip to conversation

SAN

linux-lvm Jonathan Tripathy 2 participants 4 messages Apr 22, 2011

lore
Share & tools
lore
#0 lore raw

Hi Everyone,

I am considering my options at deploying a large SAN for our Xen cloud. We love LVM and find that it's great for expanding and shrinking LVs.

What is the best way to deploy LVM in such a way that multiple servers could access the LVs? Really what I'm looking for is a "common VG" for all of our servers. Note though that only one server will actually access each LV, however it would be cool if another server could make a snapshot to perform an rsync backup.

Any help or advice would be appreciated

Thanks

#1 lore raw
Quoted 1 line · Jonathan Tripathy

What is the best way to deploy LVM in such a way that multiple servers could access the LVs? Really what I'm looking for is a "common VG" for all of our servers. Note though that only one server will actually access each LV, however it would be cool if another server could make a snapshot to perform an rsync backup.

This is what cluster LVM is for. It provides a locking mechanism to avoid conflicting changes to LVM metadata.

--

	      Stuart D. Gathman <[email protected]>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154

"Confutatis maledictis, flammis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial.

#2 lore raw
Quoted 7 lines · Stuart D. Gathman
Quoted 1 line · Jonathan Tripathy

What is the best way to deploy LVM in such a way that multiple servers could access the LVs? Really what I'm looking for is a "common VG" for all of our servers. Note though that only one server will actually access each LV, however it would be cool if another server could make a snapshot to perform an rsync backup.

This is what cluster LVM is for. It provides a locking mechanism to avoid conflicting changes to LVM metadata.

I'm a little confused on where CLVM fits into the "big picture". Let's say I have one SAN server, and 10 Xen Servers. Where do I install CLVM?

#3 lore raw
Quoted 12 lines · Jonathan Tripathy
Quoted 7 lines · Stuart D. Gathman
Quoted 1 line · Jonathan Tripathy

What is the best way to deploy LVM in such a way that multiple servers could access the LVs? Really what I'm looking for is a "common VG" for all of our servers. Note though that only one server will actually access each LV, however it would be cool if another server could make a snapshot to perform an rsync backup.

This is what cluster LVM is for. It provides a locking mechanism to avoid conflicting changes to LVM metadata.

I'm a little confused on where CLVM fits into the "big picture". Let's say I have one SAN server, and 10 Xen Servers. Where do I install CLVM?

Am I correct in saying that I only need to install CLVM on my Xen nodes? Assuming that my SAN server is just a standard iSCSI server exporting a few targets. I would probably only have 1 LUN per vg (hense 1 PV per vg).

Is that correct?