From Fedora Project Wiki

(Created page with '= Clustered Samba per GFS2 = == Sommario == Support for clustered samba (including active/active configuration) over GFS2 using CTDB. == Owner == * Name: [[User:adas| Abhijith ...')
 
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Clustered Samba per GFS2 =
{{old}}
= Cluster Samba su GFS2 =


== Sommario ==
== Sommario ==
Support for clustered samba (including active/active configuration) over GFS2 using CTDB.
Supporto a cluster Samba (inclusa configurazione active/active) su GFS2 usando CTDB.  


== Owner ==
== Progettista ==
* Name: [[User:adas| Abhijith Das]]
* Nome: [[User:adas| Abhijith Das]]
* email: adas@redhat.com
* email: [mailto:adas@redhat.com adas@redhat.com]


== Current status ==
== Stato corrente ==
* Targeted release: [[Releases/12 | Fedora 12 ]]
* Rilascio: [[Releases/12| Fedora 12]]
* Last updated: 9/29/2009
* Per informazioni aggiornate sullo stato di ''GFS2ClusteredSamba'' consultare la [[Features/GFS2ClusteredSamba#Current_status | pagina originale]].
* Percentage of completion: 100%
* Il progettista ha sperimentalmente eseguito:
* I've been able to test the following:
** Esportazioni contemporanee via samba della stessa condivisione da nodi cluster multpli (configurazione active/active)
** Simultaneous samba exports of the same share from multiple cluster nodes (active/active samba)
** Esportazione di condivisioni via indirizzo IP pubblico e montaggio su nodo client usando lo stesso indirizzo IP
** Export the shares through a public IP address and mount from a client node using this public IP address
** Eseguiti con successo nbench test forzati da un client  
** Run successful smbtorture nbench tests from a client
** Altro
** Active failover of samba service from one node (when killed) to another. I've _not_ tested this in f12 as I encountered a gfs2 recovery hang (it's a gfs2 bug I'm working on, has nothing to do with clustered samba), but I have seen this work with RHEL5 testing of gfs2-clustered-samba and should work in f12 as well.


== Detailed Description ==
== Descrizione dettagliata ==
With the availability of a clustered database (CTDB) for Samba, multiple instances of smbd across different nodes of a cluster are able to share state. It is now possible to export a gfs2 filesystem through one or more nodes in the cluster in a active/passive or active/active configuration to provide a highly-available Samba service.
Con la disponibilità di un database cluster (CTDB) per Samba, istanze multiple di smbd attraverso nodi differenti di un cluster sono capaci di condividere lo stesso stato. E' ora possibile esportare un filesystem gfs2 via uno o più nodi di un cluster in configurazione active/passive o active/active garantendo un servizio Samba altamente affidabile.


== Benefit to Fedora ==
== Vantaggi per Fedora ==
Samba was not cluster-aware until the introduction of CTDB and hence it was not possible to have a highly available samba service. Particularly, active/active configuration was not possible. With this feature, it will be possible to run highly available samba service(s) with different configurations (active/active, active/passive) over a shared gfs2 filesystem on the Red Hat cluster infrastructure.
Fino all'introduzione di CTDB, Samba non era adatto al cluster e quindi fin allora non era possibile avere un servzio samba altamente affidabile. In particolare, la configurazione active/active non era possibile. Con questa feature, ora è possibile eseguire servizi samba altamente affidabili con diverse configurazioni (active/active, active/passive) su un filesystem gfs2 condiviso dell'infrastruttura a cluster di Red Hat.


== Scope ==
== Documentazione ==
* Verify simple functionality by exporting samba shares over gfs2 and running smbtorture tests (in progress)
* fcntl posix locks performance: Improve upon gfs2's posix lock performance (single-node & clustered) as smbd uses them extensively when posix locking is turned on. (in progress)
* Get CTDB and CTDB-supported Samba packages into F12. (complete)
* Get Conga interface ready for manipulating the various config files (/etc/cluster/cluster.conf, /etc/sysconfig/ctdb, /etc/samba/smb.conf) through web-based GUI. (Alternative to hand-editing configs) (in progress)
* Verify working of clustered samba use cases such as service failover, recovery, etc., and document respective configuration parameters. (in progress)
 
This feature will not affect the operation of non-clustered samba setups or other gfs2-based setups. It will provide the capability to setup clustered samba over gfs2.
 
== How To Test ==
Hardware Requirements
* cluster nodes (2 or more) connected to shared storage
* client node(s) to run client loads from.
 
Packages
* kernel with gfs2 and dlm enabled
* Red Hat cluster packages cman/openais/corosync/lvm2-cluster etc. See [http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=blob;f=doc/usage.txt;h=f9e2866c4e558f22514076c8620cf5b88ffe3392;hb=refs/heads/STABLE3 usage.txt] for more information.
* Latest samba and ctdb packages.
 
Setup
* Setup the cluster.conf file and start up the cluster 'service cman start'
* If you're using clustered lvm, 'service clvmd start'
* mount a gfs2-formatted clustered volume at the same mountpoint on all nodes.
* Export this mountpoint (or a directory within it) as a samba share. All smb.conf files in all nodes should be identical
* Set ctdb configuration. See [http://wiki.samba.org/index.php/CTDB_Setup#Critical_smb.conf_parameters ctdb setup]
* start the ctdb service and check 'ctdb status' to make sure the ctdb cluster is up.
* Now you should simultaneously be able to access the samba share through all the exporting nodes and run operations on them simultaneously.
 
Tests
* The smbtorture test suite in the samba package has a few scenarios RAW_BENCH_LOCK, RAW_BENCH_OPEN, BENCH_NBENCH etc. See [http://wiki.samba.org/index.php/CTDB_Setup#Testing_your_cluster testing ctdb]
* There's also the ping_pong test at: [http://wiki.samba.org/index.php/CTDB_Setup#Filesystem_specific_configuration ping_pong doc]
* Any other test you can think of with multiple clients (windows users mounting the samba share) that stresses ctdb/gfs2.
 
== User Experience ==
Users not using gfs2, samba or ctdb should notice no change. Users will now have the ability to run a clustered samba setup exporting gfs2 shares.
 
== Dependencies ==
Most of the kernel support (gfs2 filesystem) is already upstream. ctdb and samba packages have been included in Fedora.
<!-- What other packages (RPMs) depend on this package?  Are there changes outside the developers' control on which completion of this feature depends?  In other words, completion of another feature owned by someone else and might cause you to not be able to finish on time or that you would need to coordinate?  Other upstream projects like the kernel (if this is not a kernel feature)? -->
 
== Contingency Plan ==
In it's current state, a basic clustered samba setup should work. Enhancements such as posix lock performance & conga interface and testing of different use-cases would be nice to get done with. If not done with these tasks, in it's current form, the feature is still acceptable.
 
== Documentation ==
* [http://ctdb.samba.org/ ctdb]
* [http://ctdb.samba.org/ ctdb]
* [http://www.samba.org/ samba]
* [http://www.samba.org/ samba]
* [http://en.wikipedia.org/wiki/Red_Hat_Cluster_Suite Cluster Suite] on Wikipedia
* [http://en.wikipedia.org/wiki/Red_Hat_Cluster_Suite Cluster Suite] su Wikipedia
* [http://en.wikipedia.org/wiki/Global_File_System GFS/GFS2] on Wikipedia
* [http://en.wikipedia.org/wiki/Global_File_System GFS/GFS2] su Wikipedia
* [http://it.wikipedia.org/wiki/Global_File_System GFS/GFS2 (it)] su Wikipedia
* [http://sources.redhat.com/cluster/wiki/ Cluster Wiki] page
* [http://sources.redhat.com/cluster/wiki/ Cluster Wiki] page
* [http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/filesystems/gfs2.txt;h=593004b6bbabaeee282b1041835f580cf12baa2e;hb=HEAD GFS2 kernel documentation] (a very basic introduction)
* [http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/filesystems/gfs2.txt;h=593004b6bbabaeee282b1041835f580cf12baa2e;hb=HEAD GFS2 kernel documentation] (una introduzione molto elementare)
 
== Altre informazioni ==
Per:
* Obiettivi
* Test Plan
* Esperienza Utente
* Dipendenze
* Progetto corrente
* Documentazione
* Commenti e Discussioni


== Release Notes ==
visitare la en-wiki [[Features/GFS2ClusteredSamba | Features: GFS2ClusteredSamba]].
* Fedora now has support for clustered samba over gfs2


== Comments and Discussion ==
[[Category:Italiano]]
* See [[Talk:Features/GFS2ClusteredSamba]] <!-- This adds a link to the "discussion" tab associated with your page.  This provides the ability to have ongoing comments or conversation without bogging down the main feature page -->
[[Category:F-12 Features IT|{{SUBPAGENAME}}]]




[[Category:FeatureAcceptedF12]]
[[Category:FeatureAcceptedF12]]
<!-- When your feature page is completed and ready for review -->
<!-- remove Category:FeaturePageIncomplete and change it to Category:FeatureReadyForWrangler -->
<!-- After review, the feature wrangler will move your page to Category:FeatureReadyForFesco... if it still needs more work it will move back to Category:FeaturePageIncomplete-->
<!-- A pretty picture of the page category usage is at: https://fedoraproject.org/wiki/Features/Policy/Process -->
<!-- Note that the current Feature guidelines require useful Scope and Test Plans at certain milestones; QA is responsible for checking these, and will change this category as needed. -->

Latest revision as of 14:01, 19 January 2016

Important.png
Old page
This page has been marked as "old", and likely contains content that is irrelevant or incorrect. If you can, please update this page. This page will be deleted if action is not taken.

Cluster Samba su GFS2

Sommario

Supporto a cluster Samba (inclusa configurazione active/active) su GFS2 usando CTDB.

Progettista

Stato corrente

  • Rilascio: Fedora 12
  • Per informazioni aggiornate sullo stato di GFS2ClusteredSamba consultare la pagina originale.
  • Il progettista ha sperimentalmente eseguito:
    • Esportazioni contemporanee via samba della stessa condivisione da nodi cluster multpli (configurazione active/active)
    • Esportazione di condivisioni via indirizzo IP pubblico e montaggio su nodo client usando lo stesso indirizzo IP
    • Eseguiti con successo nbench test forzati da un client
    • Altro

Descrizione dettagliata

Con la disponibilità di un database cluster (CTDB) per Samba, istanze multiple di smbd attraverso nodi differenti di un cluster sono capaci di condividere lo stesso stato. E' ora possibile esportare un filesystem gfs2 via uno o più nodi di un cluster in configurazione active/passive o active/active garantendo un servizio Samba altamente affidabile.

Vantaggi per Fedora

Fino all'introduzione di CTDB, Samba non era adatto al cluster e quindi fin allora non era possibile avere un servzio samba altamente affidabile. In particolare, la configurazione active/active non era possibile. Con questa feature, ora è possibile eseguire servizi samba altamente affidabili con diverse configurazioni (active/active, active/passive) su un filesystem gfs2 condiviso dell'infrastruttura a cluster di Red Hat.

Documentazione

Altre informazioni

Per:

  • Obiettivi
  • Test Plan
  • Esperienza Utente
  • Dipendenze
  • Progetto corrente
  • Documentazione
  • Commenti e Discussioni

visitare la en-wiki Features: GFS2ClusteredSamba.