public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* LVM vs btrfs as a "volume manager" for SANs
@ 2009-04-22 19:20 Tomasz Chmielewski
  2009-04-23  0:13 ` Dmitri Nikulin
  2009-04-23 18:45 ` Chris Mason
  0 siblings, 2 replies; 7+ messages in thread
From: Tomasz Chmielewski @ 2009-04-22 19:20 UTC (permalink / raw)
  To: linux-btrfs

Right now, the majority of Linux users probably have LVM on their SAN 
devices (i.e those being iSCSI targets).

Using LVM on a SAN device is easy: just create a new logical volume or 
its snapshot, make it a target to iSCSI initiators, done.

I was wondering how btrfs would fit here and if it could replace LVM.


I see the following benefits of using btrfs instead of LVM:

- you can create sparse files which would grow as iSCSI initators use 
more space (you can do it with ext3 now as well)

- you can use btrfs compression, to further reduce used space and 
perhaps increase speed (SANs are mostly IO bound, not CPU bound)

- LVM has a big performance hit when using snapshots; btrfs doesn't



However, with btrfs, I'm not sure about:

- what happens if SAN machine crashes while the iSCSI file images were 
being written to; with LVM and its block devices, I'm somehow more 
confident it wouldn't make more data loss than necessary

- taking snapshots of individual files (file images on SAN) is not 
possible with btrfs? Probably they would have to be placed in separate 
directories first to make snapshots - some minor manageability issue


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-06 18:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-22 19:20 LVM vs btrfs as a "volume manager" for SANs Tomasz Chmielewski
2009-04-23  0:13 ` Dmitri Nikulin
2009-04-23 18:45 ` Chris Mason
2009-04-23 23:34   ` Tomasz Chmielewski
2009-04-24 12:38     ` Chris Mason
2009-07-02 15:22       ` Tomasz Chmielewski
2009-07-06 18:51         ` Chris Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox