[linux-lvm] LVM + raid + san
Stuart D. Gathman
stuart at bmsi.com
Fri Nov 5 04:39:25 UTC 2010
On Thu, 4 Nov 2010, Phillip Susi wrote:
> I was wondering about using LVM to manage disks on a SAS SAN with one or more
> multi disk enclosures and multiple host servers. It looks like LVM has the
> capability to manage all of the disks as PVs and coordinate between the hosts
> to allow any given host to mount any given lv at any time, but I could not
> figure out how raid would fit into the picture.
I would run LVM on the SAN server, exporting LVs as SAN units, and each host
would get a virtual SAN disk to do with as it pleased, including running
LVM on it. Then you don't have to deal with locking issues for a shared
volume group. If your SAN server is embedded, it must already have some sort
of management interface to parcel out disk space as virtual disks.
If you don't like its interface, then consider replacing it with a
general purpose host running LVM as described above. That said, many
do use shared volume groups with no problem.
Generally, your SAN (whether embedded or a dedicated general purpose host)
already has the raid built in. The exported virtual disks are raid
reliable. If not, replace the SAN. The whole point of SAN is to not
worry about physical disks anymore on the client systems. If you had multiple
SANs on separate physical LANs, you could stripe them for super speed, but
otherwise raid is already built in. And you can bond multiple 1000BT
interfaces with a gigabit switch to get really fast transfer from
the SAN anyway.
If the SAN server is a general purpose host, I would run raid10, or linux md
extensions to it that get most of the benefits with fewer disks:
raid5 has the read/modify/rewrite problem.
I would not use the device-mapper raid, as you note.
Caveat: I've never actually setup a SAN, just used them.
Stuart D. Gathman <stuart at bmsi.com>
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.
More information about the linux-lvm