Skip to contentSkip to conversation

Distributed LVM/filesystem/storage

linux-lvm Jan-Benedict Glaw 7 participants 12 messages May 29, 2008 – Jun 2, 2008

lore
Share & tools
lore
#0 lore raw

Hi!

I'm just thinking about using my friend's overly empty harddisks for a common large filesystem by merging them all together into a single, large storage pool accessible by everybody.

However I still fail to find a good approach. One initial idea was to export all physical volumes (partitions or full disks) vie NBD, join them all on a single machine into one VG/LV, create a filesystem and re-export that via NFS/SMB/... However, all data would need to go through the net twice. While speed isn't the most important thing here (but storage is!), that's way suboptimal.

I also thought about something like tahoe (www.allmydata.org), or other P2P based approaches like Freenet, but I'm not sure if that's a good start.

It would be nice to see if anybody of you did the same before (merging the free space from a lot computers into one commonly used large filesystem), if it was successful and what techniques (LVM/NBD/DM/MD/iSCSI/Tahoe/Freenet/Other P2P/...) you used to get there, and how well that worked out in the end.

Thanks, JBG

Signature · 3 lines
      Jan-Benedict Glaw      [email protected]              +49-172-7608481
Signature of:               http://www.eyrie.org/~eagle/faqs/questions.html
the second  :
#1 lore raw

Maybe have a look at GFS.

Regards

Quoted 2 lines

-----Original Message-----
From: [email protected]

[mailto:[email protected]]

Quoted 18 lines

On Behalf Of Jan-Benedict Glaw
Sent: 30 May 2008 00:12
To: [email protected]
Subject: [linux-lvm] Distributed LVM/filesystem/storage

Hi!

I'm just thinking about using my friend's overly empty harddisks for a common large filesystem by merging them all together into a single, large storage pool accessible by everybody.

However I still fail to find a good approach. One initial idea was to export all physical volumes (partitions or full disks) vie NBD, join them all on a single machine into one VG/LV, create a filesystem and re-export that via NFS/SMB/... However, all data would need to go through the net twice. While speed isn't the most important thing here (but storage is!), that's way suboptimal.

Quoted 8 lines

I also thought about something like tahoe (www.allmydata.org), or other P2P based approaches like Freenet, but I'm not sure if that's a good start.

It would be nice to see if anybody of you did the same before (merging the free space from a lot computers into one commonly used large filesystem), if it was successful and what techniques (LVM/NBD/DM/MD/iSCSI/Tahoe/Freenet/Other P2P/...) you used to get

there,

Quoted 10 lines

and how well that worked out in the end.

Thanks, JBG

--
Jan-Benedict Glaw [email protected] +49-172-
7608481
Signature of:
http://www.eyrie.org/~eagle/faqs/questions.html
the second :

#2 lore raw
Quoted 4 lines · Gerrard Geldenhuis

On Behalf Of Jan-Benedict Glaw

Quoted 3 lines

I'm just thinking about using my friend's overly empty harddisks for a common large filesystem by merging them all together into a single, large storage pool accessible by everybody.

[...]

Quoted 7 lines
Quoted 5 lines

It would be nice to see if anybody of you did the same before (merging the free space from a lot computers into one commonly used large filesystem), if it was successful and what techniques (LVM/NBD/DM/MD/iSCSI/Tahoe/Freenet/Other P2P/...) you used to get there, and how well that worked out in the end.

Maybe have a look at GFS.

GFS (or GFS2 fwiw) imposes a single, shared storage as its backend. At least I get that from reading the documentation. This would result in merging all the single disks via NBD/LVM to one machine first and export that merged volume back via NBD/iSCSI to the nodes. In case the actual data is local to a client, it would still be first send to the central machine (running LVM) and loaded back from there. Not as distributed as I hoped, or are there other configuration possibilities to not go that route?

MfG, JBG

Signature · 3 lines
      Jan-Benedict Glaw      [email protected]              +49-172-7608481
Signature of:         Alles wird gut! ...und heute wirds schon ein bißchen besser.
the second  :
#3 lore raw
Quoted 8 lines · Jan-Benedict Glaw

GFS (or GFS2 fwiw) imposes a single, shared storage as its backend. At least I get that from reading the documentation. This would result in merging all the single disks via NBD/LVM to one machine first and export that merged volume back via NBD/iSCSI to the nodes. In case the actual data is local to a client, it would still be first send to the central machine (running LVM) and loaded back from there. Not as distributed as I hoped, or are there other configuration possibilities to not go that route?

Any possible scheme combining disks over the network is going to send the data over the network twice. The solution is simple - put the low level disk traffic on its own network. Consider it a long distance SCSI bus. If you think about it, normal NFS disk traffic goes over a "network" twice also. Once over the ethernet, and again over the IDE/SCSI/SATA "network".

Signature · 4 lines
	      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.
#5 lore raw
In reply to Jan-Benedict Glaw
Quoted 19 lines · Jan-Benedict Glaw
Quoted 6 lines · Gerrard Geldenhuis

On Behalf Of Jan-Benedict Glaw

Quoted 4 lines

I'm just thinking about using my friend's overly empty harddisks for a common large filesystem by merging them all together into a single, large storage pool accessible by everybody.

[...]

Quoted 8 lines
Quoted 6 lines

It would be nice to see if anybody of you did the same before (merging the free space from a lot computers into one commonly used large filesystem), if it was successful and what techniques (LVM/NBD/DM/MD/iSCSI/Tahoe/Freenet/Other P2P/...) you used to get there, and how well that worked out in the end.

Maybe have a look at GFS.

Quoted 9 lines

GFS (or GFS2 fwiw) imposes a single, shared storage as its backend. At least I get that from reading the documentation. This would result in merging all the single disks via NBD/LVM to one machine first and export that merged volume back via NBD/iSCSI to the nodes. In case the actual data is local to a client, it would still be first send to the central machine (running LVM) and loaded back from there. Not as distributed as I hoped, or are there other configuration possibilities to not go that route?

GFS is certainly developed and well tuned in a SAN environment where the shared storage(s) and cluster nodes reside on the very same fibre channel switch network. However, with its symmetric architecture, nothing can prevent it running on top of a group of iscsi disks (with GFS node as initiator), as long as each node can see and access these disks. It doesn't care where the iscsi targets live, nor how many there are. Of course, whether it can perform well in this environment is another story. In short, the notion that GFS requires all disks to be merged into one machine first and then export the merged volume back to the GFS node is *not* correct.

I actually have a 4-nodes cluster in my house. Two nodes running Linux iscsi initiators that have a 2-node GFS cluster setup. Another two nodes running a special version of free-BSD as iscsi targets, each directly exports their local disks to the GFS nodes. I have not put too much IO loads on the GFS nodes though (since the cluster is mostly used to study storage block allocation issues - not for real data and/or application).

cc linxu-cluster

-- Wendy

#6 lore raw
Quoted 26 lines · Wendy Cheng
Quoted 16 lines · Jan-Benedict Glaw
Quoted 4 lines · Gerrard Geldenhuis

On Behalf Of Jan-Benedict Glaw

Quoted 3 lines

I'm just thinking about using my friend's overly empty harddisks for a common large filesystem by merging them all together into a single, large storage pool accessible by everybody.

[...]

Quoted 7 lines
Quoted 5 lines

It would be nice to see if anybody of you did the same before (merging the free space from a lot computers into one commonly used large filesystem), if it was successful and what techniques (LVM/NBD/DM/MD/iSCSI/Tahoe/Freenet/Other P2P/...) you used to get there, and how well that worked out in the end.

Maybe have a look at GFS.

Quoted 8 lines

GFS (or GFS2 fwiw) imposes a single, shared storage as its backend. At least I get that from reading the documentation. This would result in merging all the single disks via NBD/LVM to one machine first and export that merged volume back via NBD/iSCSI to the nodes. In case the actual data is local to a client, it would still be first send to the central machine (running LVM) and loaded back from there. Not as distributed as I hoped, or are there other configuration possibilities to not go that route?

Quoted 5 lines

However, with its symmetric architecture,
nothing can prevent it running on top of a group of iscsi disks (with GFS node as initiator), as long as each node can see and access these disks. It doesn't care where the iscsi targets live, nor how many there are.

So I'd configure each machine's empty disk/partition as an iSCSI target and let them show up an every "client" machine and run that setup. How good will GFS deal with temporary (or total) outage of single targets? Eg. 24h disconnects with ADSL connectivity etc.?

MfG, JBG

Signature · 3 lines
      Jan-Benedict Glaw      [email protected]              +49-172-7608481
Signature of:                http://catb.org/~esr/faqs/smart-questions.html
the second  :
#7 lore raw
Quoted 32 lines · Jan-Benedict Glaw
Quoted 30 lines · Wendy Cheng
Quoted 28 lines · Jan-Benedict Glaw
Quoted 6 lines · Gerrard Geldenhuis

On Behalf Of Jan-Benedict Glaw

Quoted 4 lines

I'm just thinking about using my friend's overly empty harddisks for a common large filesystem by merging them all together into a single, large storage pool accessible by everybody.

[...]

Quoted 8 lines
Quoted 6 lines

It would be nice to see if anybody of you did the same before (merging the free space from a lot computers into one commonly used large filesystem), if it was successful and what techniques (LVM/NBD/DM/MD/iSCSI/Tahoe/Freenet/Other P2P/...) you used to get there, and how well that worked out in the end.

Maybe have a look at GFS.

GFS (or GFS2 fwiw) imposes a single, shared storage as its backend. At least I get that from reading the documentation. This would result in merging all the single disks via NBD/LVM to one machine first and export that merged volume back via NBD/iSCSI to the nodes. In case the actual data is local to a client, it would still be first send to the central machine (running LVM) and loaded back from there. Not as distributed as I hoped, or are there other configuration possibilities to not go that route?

Quoted 10 lines
Quoted 3 lines

However, with its symmetric architecture,
nothing can prevent it running on top of a group of iscsi disks (with GFS node as initiator), as long as each node can see and access these disks. It doesn't care where the iscsi targets live, nor how many there are.

So I'd configure each machine's empty disk/partition as an iSCSI target and let them show up an every "client" machine and run that setup. How good will GFS deal with temporary (or total) outage of single targets? Eg. 24h disconnects with ADSL connectivity etc.?

High availability will not work well in this particular setup - it is more about data and storage sharing between GFS nodes.

Note that GFS normally runs on top of CLVM (clustered lvm, in case you don't know about it). You might want to check current (Linux) CLVM raid level support to see whether it fits your needs.

-- Wendy

#8 lore raw
Quoted 22 lines · Wendy Cheng
Quoted 14 lines · Jan-Benedict Glaw
Quoted 13 lines · Wendy Cheng
Quoted 12 lines · Jan-Benedict Glaw
Quoted 4 lines · Gerrard Geldenhuis

On Behalf Of Jan-Benedict Glaw

Quoted 3 lines

I'm just thinking about using my friend's overly empty harddisks for a common large filesystem by merging them all together into a single, large storage pool accessible by everybody.

[...]

Quoted 6 lines
Quoted 5 lines

It would be nice to see if anybody of you did the same before (merging the free space from a lot computers into one commonly used large filesystem), if it was successful and what techniques (LVM/NBD/DM/MD/iSCSI/Tahoe/Freenet/Other P2P/...) you used to get there, and how well that worked out in the end.

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Maybe have a look at GFS.

So I'd configure each machine's empty disk/partition as an iSCSI target and let them show up an every "client" machine and run that setup. How good will GFS deal with temporary (or total) outage of single targets? Eg. 24h disconnects with ADSL connectivity etc.?

Quoted 6 lines

High availability will not work well in this particular setup - it is more about data and storage sharing between GFS nodes.

Note that GFS normally runs on top of CLVM (clustered lvm, in case you don't know about it). You might want to check current (Linux) CLVM raid level support to see whether it fits your needs.

As I expect nodes to come and leave the filesystem and that these nodes all provide different amounts of disk capacity, reshaping the RAID stuff several times a week (or even per day) won't be that much fun at all...

MfG, JBG

Signature · 3 lines
      Jan-Benedict Glaw      [email protected]              +49-172-7608481
Signature of:                 Friends are relatives you make for yourself.
the second  :
#4 lore raw
In reply to Stuart D. Gathman
Quoted 6 lines · Stuart D. Gathman

Any possible scheme combining disks over the network is going to send the data over the network twice. The solution is simple - put the low level disk traffic on its own network. Consider it a long distance SCSI bus. If you think about it, normal NFS disk traffic goes over a "network" twice also. Once over the ethernet, and again over the IDE/SCSI/SATA "network".

It seems that in a proper cluster filesystem and a proper cluster volume manager, each node would hold the volume meta data and only need to access the drives containing the data it needs. The data shouldn't have to move over the network twice, only directly between the node holding the disk and the node using the data. That's actually kind of the whole point of a cluster filesystem.

The hard part is the locking so that these nodes can all update the filesystem without hopelessly scrambling it.

<http://en.wikipedia.org/wiki/Shared_disk_file_system>

David

#9 lore raw
In reply to Jan-Benedict Glaw
Quoted 6 lines · Jan-Benedict Glaw

However I still fail to find a good approach. One initial idea was to export all physical volumes (partitions or full disks) vie NBD, join them all on a single machine into one VG/LV, create a filesystem and re-export that via NFS/SMB/... However, all data would need to go through the net twice. While speed isn't the most important thing here (but storage is!), that's way suboptimal.

GlusterFS with Unify translator is exactly what you are asking for.

http://www.gluster.org/docs/index.php/GlusterFS

Signature · 2 lines
Best regards,
Hannes Dorbath
#10 lore raw
Quoted 11 lines · Hannes Dorbath
Quoted 6 lines · Jan-Benedict Glaw

However I still fail to find a good approach. One initial idea was to export all physical volumes (partitions or full disks) vie NBD, join them all on a single machine into one VG/LV, create a filesystem and re-export that via NFS/SMB/... However, all data would need to go through the net twice. While speed isn't the most important thing here (but storage is!), that's way suboptimal.

GlusterFS with Unify translator is exactly what you are asking for.

http://www.gluster.org/docs/index.php/GlusterFS

Already had a look at that, too. "Unify" seems to not directly implement any measure of redundancy. So if one Brick goes down, everything that was there is gone. Maybe its possible to play with the `mirror' translator as well, but on the first look, it seems to be non-trivial to accomodate for a steady loss and addition of bricks.

MfG, JBG

Signature · 7 lines
      Jan-Benedict Glaw      [email protected]              +49-172-7608481
Signature of: 23:53 <@jbglaw> So, ich kletter' jetzt mal ins Bett.
the second  : 23:57 <@jever2> .oO( kletter ..., hat er noch Gitter vorm Bett, wie früher meine Kinder?)
              00:00 <@jbglaw> jever2: *patsch*
              00:01 <@jever2> *aua*, wofür, Gedanken sind frei!
              00:02 <@jbglaw> Nee, freie Gedanken, die sind seit 1984 doch aus!
              00:03 <@jever2> 1984? ich bin erst seit 1985 verheiratet!
#11 lore raw

2008/6/1 Jan-Benedict Glaw <[email protected]>:

Quoted 13 lines · Hannes Dorbath
Quoted 11 lines
Quoted 6 lines · Jan-Benedict Glaw

However I still fail to find a good approach. One initial idea was to export all physical volumes (partitions or full disks) vie NBD, join them all on a single machine into one VG/LV, create a filesystem and re-export that via NFS/SMB/... However, all data would need to go through the net twice. While speed isn't the most important thing here (but storage is!), that's way suboptimal.

GlusterFS with Unify translator is exactly what you are asking for.

http://www.gluster.org/docs/index.php/GlusterFS

Quoted 7 lines

Already had a look at that, too. "Unify" seems to not directly implement any measure of redundancy. So if one Brick goes down, everything that was there is gone. Maybe its possible to play with the `mirror' translator as well, but on the first look, it seems to be non-trivial to accomodate for a steady loss and addition of bricks.

MfG, JBG

I haven't seen Lustre mentioned in this thread. I think there is kernel support, etc. May be worth checking out. (I have not used it.)

Quoting wikipedia http://en.wikipedia.org/wiki/Lustre_(file_system)
===
High availability

Lustre file system high availability features include a robust failover and recovery mechanism, making server failures and reboots transparent. Version interoperability between successive minor versions of the Lustre software enables a server to be upgraded by taking it offline (or failing it over to a standby server), performing the upgrade, and restarting it, while all active jobs continue to run, merely experiencing a delay.

Lustre MDSs are configured as an active/passive pair, while OSSs are typically deployed in an active/active configuration that provides redundancy without extra overhead. Often the standby MDS is the active MDS for another Lustre file system, so no nodes are idle in the cluster.
===

Greg

Signature · 9 lines
Greg Freemyer
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com