SlideShare uma empresa Scribd logo
1 de 24
Baixar para ler offline
Samba as a gateway to OpenAFS

          Fabrizio Manfredi Furuholmen




SambaXP                                   April   2007
Agenda

   Goal
   Solution
   Gateway Architecture
   Gateway Configuration
   Integration Tools
   Tuning
   Performance
   Result


                           Page 2
Goals
                  Project Goal

  Primary goal of the project was to design and build
  an inexpensive storage system

  Requirements:
     Handle terabytes of data
     Transparent to final user
     Working in WAN environment
     Good level of scalability




                                                        Page 3
Solution
                Considerations

  Centralize Storage (hardware solution)
    SAN
       Blockdevice interface
       Performance
    NAS
       Filesystem interface
       Shared filesystem

  Distributed Filesystem (software solution)
    Filesystem interface
    Single file system across multiple computer nodes



                                                    Page 4
Solution
               Considerations


 Big Server vs Small Server      (Google Techs)

  Small number of inexpensive fileservers
  provides similar performance to client side

  Increase in capacity are inexpensive

  Better manageability and   redundancy.



                                                  Page 5
Solution
                          Storage Price
 Terabyte Cost (SAS/FB)             Components            NAS       SAN       DFS
    14k euro NAS/SAN
    4k euro DFS                     Storage1.5 Tb with     52.000    52.000
                                    10 disks (110/150)
 Disks Size                         Storage 14TB          200.000   200.000
    143 vs 300 SAS/FB reduce 30%    100 disks (110/150)

 Disks Type                         3 Server Storage                             9.000
    250/500 SATA Disk reduce >50%   500Gb (SAS)
                                    14 Server Storage                           56.000
                                    1Tb (SAS)
 Installation
                                    4 FB interface                    1.600

 Software                           2 Switch FB                       6.000
                                    2 Server Gw                       2.000      2.000
 Discount                           2 Switch Gb             1.200     1.200      1.200
                                    TOTAL for 1.5 Tb       53.200    62.800     12.200
 Administration
                                    TOTAL for 14 Tb       201.200   210.800     59.200


                                                                              Page 6
Solution
                                Solution
   Distributed Filesystem
     AFS
           Free available and stable
           Support of large installations (>200TB with 40 milion Files)
           More then 20 platforms are supported
           Aggressive Roadmap ($350,000 per year from CSG)
     Samba (Gateway)
           AFS windows client uses internal file server emulation (slow)
           Clientless
           Fast and stable


   User Identity
     Heimdal Kerberos Autentichation (SSO)
           KA emulation
           LDAP backend
           2b protocol (large kerberos ticket)
     Openldap
           Centralize storage
     User administration scripts (custom provisioning)


                                                                           Page 7
Solution
                        AFS Features
  Transparent Access and Uniform Namespace
     Cell
     Partitions and volumes
     Mount Points
     In-use volume moves

  Scalability
     Client Caching
     Replication
     Load balance among servers while data is in use

  Security
     Authentication and secure communication
     Authorization and flexible access control

  System Management
     Single system interface
     Administration tasks without system outage
     Delegation
     Backup

                                                       Page 8
Gateway Architeture
                        Architeture
 Scalability
    Storage scalability
   (Filesystem layer)
    User scalability
   (Samba Gateway layer)

 Performance
   Load balancing
   Roaming user/branch office

 Clientless

 Centralized Identity
   Kerberos
   Ldap




                                      Page 9
Gateway Configuration
               Enable AFS in Samba
  Compile Options
    Enable KA server emulation
     --with-fake-kaserver
    Enable AFS ACL mapping
     --with-vfs-afsacl
    Don’t use AFS clear text password switch (old not supported)
     --with-afs

  Setting Samba Trusting (undocumented)
    Obtain KeyFile from AFS fileserver (/usr/afs/etc/)
    Import an OpenAFS KeyFile into secrets.tdb:
     net afs key AFSKeyFile
    Custom script for AFSKeyFile sync (Key rotation)

  Useful command (undocumented)
    Impersonate user, create a token for user@cell:
     net afs impersonate <user> <cell>




                                                                   Page 10
Gateway Configuration
                          smb.conf
    Mapping Domain User<-> Pts
      Single domain/unique identification:
          afs username map = %u@zero.it


      Multiple domain/duplicated identification
         Store DOMAIN+user:
           afs username map = %D+%u@zero.it
          Store the SID in pt server:
           afs username map = %s@zero.it


    Enable AFS share
    afs share = yes




                                                  Page 11
Gateway Configuration
                 smb.conf locking

    Access only from samba server
      Samba default


    Access only from samba and local gw
      Disable oplocks , level2 oplocks ..
      Only with Byte-range locking on AFS client (AFS>1.5.X)


    Access from all system
      Enable strict locking option (mandatory lock)




                                                         Page 12
Gateway Configuration
           Samba scalability and HA
    Primary server HA (DFS Root)
      Heartbeat
      VIP associated to primary Samba Server

    Transparent Access (MSDFS)
      No compile option required
      Enable DFS on Primary Samba server
      host msdfs = yes

    Samba Scalability
      DFS Proxy,
          Share redirection
          Name resolved with DNS (link is FQDN)
       (ex. msdfs proxy = gw1.intranet.zeropiu.itshare)
      DFS root ,
          Directory link
          Fault tolerance
          (ex. ln –s msdfs:server1share1,server2share1 share1)


                                                                     Page 13
Gateway Configuration
                     Identity Storage
    Heimdal integration
       Compile
           Enable ldap backend (--with-openldap)
      Configuration
           Enable ldap backend
           Enable 2b token for Kerberos V integration
           Only if have old client: enable-kaserver / afs3-salt
    LDAP
      Openldap 2.3 (SASL EXTERNAL)
      Extending Schema (Samba,hdb ..)
      nss_switch with ldap support


    PAM
      PAM Kerberos V integration



                                                                  Page 14
Integration Tools
             Identity Administration
   Custom user administration script (iauser.pl)
     Unix user (ldap)
     Samba user (ldap)
     Kerberos user (ldap)
     Pt server user
     Volume and mount point

   Groups administration script (iagroup.pl)
     Create unix group (ldap)
     Create samba group (ldap)
     Create pt server group


   Syncronization administration script (ptsSync.pl)
     Synchronization user from ldap to pt server



                                                       Page 15
Performance
                    Test Enviroment
  Hardware
    3 FileServer Linux
        2 GB of RAM, 3GHz Xeon processor
        2x36Gb SAS RAID 1 for operating system partition
        4x 143GB SAS RAID5 storage
    2 Server Gateway Linux
        2 GB of RAM, 3GHz Xeon dual processor
        2x36Gb SCSI RAID 1 for operating system partition


  Software
    Samba 3.22
    OpenAFS 1.4.2
    IOzone 3.8




                                                            Page 16
Performance
   Samba Client
                                                                                     write



                     45000

                     40000


Client:              35000
                     30000
                                                                                                                                      40000-45000
                                                                                                                                      35000-40000


    Windows XP sp2   25000                                                                                                            30000-35000
                                                                                                                                      25000-30000
                      20000
                                                                                                                                      20000-25000

Server:
                      15000
                                                                                                                                      15000-20000
                      10000                                                                                                           10000-15000
                                                                                                                   16384
                       5000                                                                                                           5000-10000

    Linux 2.6.9
                                                                                                                 1024
                             0                                                                                           block        0-5000
                                                                                                            64




                                 64

                                      256

                                                  1024

                                                          4096
    Samba 3.22
                                                                                                       4




                                                                   16384


                                                                             65536


                                                                                          262144
                                            kb




Write: 30-43MB/sec                                                                 read



Read: 40-50MB/sec    70000

                     60000

                     50000
                                                                                                                                     60000-70000
                     40000                                                                                                           50000-60000
                                                                                                                                     40000-50000
                     30000
                                                                                                                                     30000-40000
                     20000                                                                                                           20000-30000
                                                                                                                  16384              10000-20000
                     10000
                                                                                                                1024                 0-10000
                             0                                                                                          block
                                                                                                           64
                                 64

                                      256

                                                 1024

                                                         4096
                                                                                                   4




                                                                 16384

                                                                           65536


                                                                                       262144
                                            kb




                                                                                                                                 Page 17
Performance
                                                                                                  write


    AFS Client             40000

                           35000

Client:                    30000
                                                                                                                                                35000-40000
                           25000

    Linux 2.6.9
                                                                                                                                                30000-35000

                           20000                                                                                                                25000-30000
                                                                                                                                                20000-25000

    openafs 1.4.2
                           15000
                                                                                                                                                15000-20000
                            10000                                                                                                               10000-15000
                                                                                                                             16384              5000-10000

Server:
                             5000
                                                                                                                           1024                 0-5000
                                   0                                                                                              block
                                                                                                                      64




                                       64

                                            256
    Linux 2.6.9




                                                       1024


                                                                   4096
                                                                                                               4




                                                                                16384


                                                                                          65536


                                                                                                     262144
                                                  kb

    openafs 1.4.2
                                                                                                  read



Write: 20-37MB/sec         90000

                           80000

                           70000
                                                                                                                                                80000-90000
                           60000                                                                                                                70000-80000


Read
                           50000                                                                                                                60000-70000
                                                                                                                                                50000-60000
                           40000
                                                                                                                                                40000-50000

 Cold Cache: 22-28MB/sec
                           30000
                                                                                                                                                30000-40000
                           20000                                                                                                                20000-30000
                            10000                                                                                                               10000-20000

 Warm Cache: >45MB/sec             0
                                                                                                                              131072
                                                                                                                            16384      43
                                                                                                                                                0-10000
                                       4


                                             16


                                                              64


                                                                          256
                                                                                                                       2048




                                                                                        1024



                                                                                                     4096



                                                                                                              16384
                                                         a




                                                                                                                                            Page 18
Performance
                                                                                    write


   Samba GW               25000


Server:                   20000



    Linux 2.6.9           15000
                                                                                                                            20000-25000
                                                                                                                            15000-20000

    openafs 1.4.2         10000                                                                                             10000-15000
                                                                                                                            5000-10000


Gateway:                   5000                                                                            16384
                                                                                                         1024
                                                                                                                            0-5000




    Linux 2.6.9
                                  0                                                                             block
                                                                                                    64




                                      64

                                           256

                                                      1024

                                                             4096
                                                                                                4




                                                                    16384

                                                                            65536


                                                                                       262144
    OpenAFS 1.4.2                                kb



    Samba 3.22                                                                      read

Client:
    Windows XP sp2        45000

                          40000

                          35000
                                                                                                                            40000-45000
                          30000                                                                                             35000-40000

Write: 18-25MB/sec        25000
                          20000
                                                                                                                            30000-35000
                                                                                                                            25000-30000
                                                                                                                            20000-25000
                          15000
                                                                                                                            15000-20000
                          10000

Read
                                                                                                           16384            10000-15000
                            5000                                                                                            5000-10000
                                                                                                         1024
                                  0                                                                                         0-5000

Warm Cache: 30-40MB/sec
                                                                                                    64          block
                                      64

                                           256

                                                      1024

                                                             4096
                                                                                                4




                                                                    16384

                                                                            65536

                                                                                       262144
                                                 kb




                                                                                                                        Page 19
Performance
                                                           Throughoutput Coparison
                                                   write

45000

40000

35000

30000
                                                                                          AFS
25000
                                                                                          Samba
20000
                                                                                          Samba-GW
15000

10000                                                                                                                                  read

5000                                                                                     90000
   0
                                                                                         80000
           2


                 4


                        8


                               6


                                      2


                                              4


                                                     8


                                                             6

                                                                    72


                                                                            44


                                                                                    88
                  2


                         4


                                9


                                       9

                                            38


                                                   76


                                                           53
        51




                                                                                         70000
                                                                  10


                                                                          21


                                                                                  42
               10


                      20


                             40


                                    81

                                           16


                                                  32


                                                         65

                                                                 13


                                                                         26


                                                                                 52




                                            filesize                                     60000

                                                                                         50000                                                                                    AFS
                                                                                                                                                                                  Samba
                                                                                         40000                                                                                    Samba-GW
                                                                                         30000

                                                                                         20000

                                                                                         10000

                                                                                            0
                                                                                                  2

                                                                                                       24


                                                                                                             48


                                                                                                                   96


                                                                                                                         92


                                                                                                                                  4


                                                                                                                                          8


                                                                                                                                                  6

                                                                                                                                                          72


                                                                                                                                                                   44


                                                                                                                                                                            88
                                                                                                                               38


                                                                                                                                       76


                                                                                                                                               53
                                                                                                 51




                                                                                                                                                       10


                                                                                                                                                                21


                                                                                                                                                                         42
                                                                                                      10


                                                                                                            20


                                                                                                                  40


                                                                                                                        81

                                                                                                                              16


                                                                                                                                      32


                                                                                                                                              65

                                                                                                                                                      13


                                                                                                                                                               26


                                                                                                                                                                        52
                                                                                                                                                                                 Page 20
Performance
                         Tuning
  Samba Configuration (increase 30%)
    Enable socket options = TCP_NODELAY (Default)
    Increase SO_RCVBUF (16384)
    Increase SO_SNDBUF (32768)


  AFS Cache Manager (increase 20%)
    Increase block size (chunksize 19)
    Increase cache elements (dcache 5000)
    Increase server daemon (daemons 6)
    Increase rx packet (rxpck 2000)
    Increase data cache file (files 50000)
    Increase Cache size (cache size 4gb)
    Use separated disk for cache


                                                    Page 21
Result
                        Benefit
  Reduced cost
    Reduced storage cost 40.000 Euro (1.5TB Storage)
    Reduced down time

  Increase performance
    Client side

  Simplify System Administration task
    Data accessible from everywhere
    High security level (kerberos base)
    Single sign-on
    Disaster recovery (Volume replication)




                                                       Page 22
Next
                      Under Testing
  OpenAFS
       Lock subsystem, support AFS 1.5.X (Byte range)
       Windows client, support AFS 1.5.X
       Inode interface
       Socket communication vlserver/fileserver
       Memory cache
       Disable fsync on write (AFS 1.5.X + patch)
       WebDav

  Samba
       Cluster

  External project (www.beolink.org)
       Ptserver with ldap backend (ptsldap)
       Web Administration interface (AFS Manager)


                                                        Page 23
The End

Manfred at zeropiu.it
 www.beolink.org




                        Page 24

Mais conteúdo relacionado

Mais procurados

Docker networking tutorial 102
Docker networking tutorial 102Docker networking tutorial 102
Docker networking tutorial 102LorisPack Project
 
Keeping DNS server up-and-running with “runit
Keeping DNS server up-and-running with “runitKeeping DNS server up-and-running with “runit
Keeping DNS server up-and-running with “runitMen and Mice
 
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
Docker Meetup: Docker Networking 1.11, by Madhu VenugopalDocker Meetup: Docker Networking 1.11, by Madhu Venugopal
Docker Meetup: Docker Networking 1.11, by Madhu VenugopalMichelle Antebi
 
Why Managed Service Providers Should Embrace Container Technology
Why Managed Service Providers Should Embrace Container TechnologyWhy Managed Service Providers Should Embrace Container Technology
Why Managed Service Providers Should Embrace Container TechnologySagi Brody
 
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOSPart 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOSMen and Mice
 
MySQL HA with PaceMaker
MySQL HA with  PaceMakerMySQL HA with  PaceMaker
MySQL HA with PaceMakerKris Buytaert
 
How Networking works with Data Science
How Networking works with Data Science How Networking works with Data Science
How Networking works with Data Science HungWei Chiu
 
Sharing experience implementing Direct NFS
Sharing experience implementing Direct NFSSharing experience implementing Direct NFS
Sharing experience implementing Direct NFSYury Velikanov
 
FIWARE Tech Summit - Docker Swarm Secrets for Creating Great FIWARE Platforms
FIWARE Tech Summit - Docker Swarm Secrets for Creating Great FIWARE PlatformsFIWARE Tech Summit - Docker Swarm Secrets for Creating Great FIWARE Platforms
FIWARE Tech Summit - Docker Swarm Secrets for Creating Great FIWARE PlatformsFIWARE
 
Breda Development Meetup 2016-06-08 - High Availability
Breda Development Meetup 2016-06-08 - High AvailabilityBreda Development Meetup 2016-06-08 - High Availability
Breda Development Meetup 2016-06-08 - High AvailabilityBas Peters
 
Docker summit : Docker Networking Control-plane & Data-Plane
Docker summit : Docker Networking Control-plane & Data-PlaneDocker summit : Docker Networking Control-plane & Data-Plane
Docker summit : Docker Networking Control-plane & Data-PlaneMadhu Venugopal
 
Installation Openstack Swift
Installation Openstack SwiftInstallation Openstack Swift
Installation Openstack Swiftymtech
 
Docker Networking Overview
Docker Networking OverviewDocker Networking Overview
Docker Networking OverviewSreenivas Makam
 
Libnetwork update at Moby summit June 2017
Libnetwork update at Moby summit June 2017Libnetwork update at Moby summit June 2017
Libnetwork update at Moby summit June 2017Docker, Inc.
 
Docker Setting for Static IP allocation
Docker Setting for Static IP allocationDocker Setting for Static IP allocation
Docker Setting for Static IP allocationJi-Woong Choi
 
Galera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction SlidesGalera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction SlidesSeveralnines
 

Mais procurados (20)

Docker networking tutorial 102
Docker networking tutorial 102Docker networking tutorial 102
Docker networking tutorial 102
 
Keeping DNS server up-and-running with “runit
Keeping DNS server up-and-running with “runitKeeping DNS server up-and-running with “runit
Keeping DNS server up-and-running with “runit
 
FreeBSD and Hardening Web Server
FreeBSD and Hardening Web ServerFreeBSD and Hardening Web Server
FreeBSD and Hardening Web Server
 
FreeBSD is not Linux
FreeBSD is not LinuxFreeBSD is not Linux
FreeBSD is not Linux
 
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
Docker Meetup: Docker Networking 1.11, by Madhu VenugopalDocker Meetup: Docker Networking 1.11, by Madhu Venugopal
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
 
Why Managed Service Providers Should Embrace Container Technology
Why Managed Service Providers Should Embrace Container TechnologyWhy Managed Service Providers Should Embrace Container Technology
Why Managed Service Providers Should Embrace Container Technology
 
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOSPart 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
 
MySQL HA with PaceMaker
MySQL HA with  PaceMakerMySQL HA with  PaceMaker
MySQL HA with PaceMaker
 
How Networking works with Data Science
How Networking works with Data Science How Networking works with Data Science
How Networking works with Data Science
 
Sharing experience implementing Direct NFS
Sharing experience implementing Direct NFSSharing experience implementing Direct NFS
Sharing experience implementing Direct NFS
 
FIWARE Tech Summit - Docker Swarm Secrets for Creating Great FIWARE Platforms
FIWARE Tech Summit - Docker Swarm Secrets for Creating Great FIWARE PlatformsFIWARE Tech Summit - Docker Swarm Secrets for Creating Great FIWARE Platforms
FIWARE Tech Summit - Docker Swarm Secrets for Creating Great FIWARE Platforms
 
macvlan and ipvlan
macvlan and ipvlanmacvlan and ipvlan
macvlan and ipvlan
 
Breda Development Meetup 2016-06-08 - High Availability
Breda Development Meetup 2016-06-08 - High AvailabilityBreda Development Meetup 2016-06-08 - High Availability
Breda Development Meetup 2016-06-08 - High Availability
 
Docker summit : Docker Networking Control-plane & Data-Plane
Docker summit : Docker Networking Control-plane & Data-PlaneDocker summit : Docker Networking Control-plane & Data-Plane
Docker summit : Docker Networking Control-plane & Data-Plane
 
Installation Openstack Swift
Installation Openstack SwiftInstallation Openstack Swift
Installation Openstack Swift
 
Docker Networking Overview
Docker Networking OverviewDocker Networking Overview
Docker Networking Overview
 
Libnetwork update at Moby summit June 2017
Libnetwork update at Moby summit June 2017Libnetwork update at Moby summit June 2017
Libnetwork update at Moby summit June 2017
 
Docker Setting for Static IP allocation
Docker Setting for Static IP allocationDocker Setting for Static IP allocation
Docker Setting for Static IP allocation
 
MySQL Sandbox 3
MySQL Sandbox 3MySQL Sandbox 3
MySQL Sandbox 3
 
Galera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction SlidesGalera cluster for MySQL - Introduction Slides
Galera cluster for MySQL - Introduction Slides
 

Semelhante a Samba as a gateway to OpenAFS

FalconStor NSS Presentation
FalconStor NSS PresentationFalconStor NSS Presentation
FalconStor NSS Presentationrpsprowl
 
Storage, San And Business Continuity Overview
Storage, San And Business Continuity OverviewStorage, San And Business Continuity Overview
Storage, San And Business Continuity OverviewAlan McSweeney
 
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...Виталий Стародубцев
 
Storage Technology Overview
Storage Technology OverviewStorage Technology Overview
Storage Technology Overviewnomathjobs
 
Tsm7.1 seminar Stavanger
Tsm7.1 seminar StavangerTsm7.1 seminar Stavanger
Tsm7.1 seminar StavangerSolv AS
 
Experience In Building Scalable Web Sites Through Infrastructure's View
Experience In Building Scalable Web Sites Through Infrastructure's ViewExperience In Building Scalable Web Sites Through Infrastructure's View
Experience In Building Scalable Web Sites Through Infrastructure's ViewPhuwadon D
 
Integrated server
Integrated serverIntegrated server
Integrated serverfebru
 
Storage virtualization citrix blr wide tech talk
Storage virtualization citrix blr wide tech talkStorage virtualization citrix blr wide tech talk
Storage virtualization citrix blr wide tech talkSisimon Soman
 
NoSql day 2019 - Floating on a Raft - Apache HBase durability with Apache Ratis
NoSql day 2019 - Floating on a Raft - Apache HBase durability with Apache RatisNoSql day 2019 - Floating on a Raft - Apache HBase durability with Apache Ratis
NoSql day 2019 - Floating on a Raft - Apache HBase durability with Apache RatisAnkit Singhal
 
Floating on a RAFT: HBase Durability with Apache Ratis
Floating on a RAFT: HBase Durability with Apache RatisFloating on a RAFT: HBase Durability with Apache Ratis
Floating on a RAFT: HBase Durability with Apache RatisDataWorks Summit
 
Putting Wings on the Elephant
Putting Wings on the ElephantPutting Wings on the Elephant
Putting Wings on the ElephantDataWorks Summit
 

Semelhante a Samba as a gateway to OpenAFS (20)

BSDCan2006.pdf
BSDCan2006.pdfBSDCan2006.pdf
BSDCan2006.pdf
 
Cl116
Cl116Cl116
Cl116
 
FalconStor NSS Presentation
FalconStor NSS PresentationFalconStor NSS Presentation
FalconStor NSS Presentation
 
NVMe over Fabric
NVMe over FabricNVMe over Fabric
NVMe over Fabric
 
HP StorageWorks
HP StorageWorksHP StorageWorks
HP StorageWorks
 
Storage, San And Business Continuity Overview
Storage, San And Business Continuity OverviewStorage, San And Business Continuity Overview
Storage, San And Business Continuity Overview
 
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
 
Sun VDI 3.1 - Oct 2009
Sun VDI 3.1 - Oct 2009Sun VDI 3.1 - Oct 2009
Sun VDI 3.1 - Oct 2009
 
Storage spaces direct webinar
Storage spaces direct webinarStorage spaces direct webinar
Storage spaces direct webinar
 
Storage Technology Overview
Storage Technology OverviewStorage Technology Overview
Storage Technology Overview
 
Tsm7.1 seminar Stavanger
Tsm7.1 seminar StavangerTsm7.1 seminar Stavanger
Tsm7.1 seminar Stavanger
 
JetStor NAS series 2016
JetStor NAS series 2016JetStor NAS series 2016
JetStor NAS series 2016
 
Experience In Building Scalable Web Sites Through Infrastructure's View
Experience In Building Scalable Web Sites Through Infrastructure's ViewExperience In Building Scalable Web Sites Through Infrastructure's View
Experience In Building Scalable Web Sites Through Infrastructure's View
 
Integrated server
Integrated serverIntegrated server
Integrated server
 
Storage virtualization citrix blr wide tech talk
Storage virtualization citrix blr wide tech talkStorage virtualization citrix blr wide tech talk
Storage virtualization citrix blr wide tech talk
 
San Presentation
San PresentationSan Presentation
San Presentation
 
NoSql day 2019 - Floating on a Raft - Apache HBase durability with Apache Ratis
NoSql day 2019 - Floating on a Raft - Apache HBase durability with Apache RatisNoSql day 2019 - Floating on a Raft - Apache HBase durability with Apache Ratis
NoSql day 2019 - Floating on a Raft - Apache HBase durability with Apache Ratis
 
Floating on a RAFT: HBase Durability with Apache Ratis
Floating on a RAFT: HBase Durability with Apache RatisFloating on a RAFT: HBase Durability with Apache Ratis
Floating on a RAFT: HBase Durability with Apache Ratis
 
Eql demo
Eql demoEql demo
Eql demo
 
Putting Wings on the Elephant
Putting Wings on the ElephantPutting Wings on the Elephant
Putting Wings on the Elephant
 

Mais de Manfred Furuholmen (19)

Pisa
PisaPisa
Pisa
 
Restfs internals
Restfs internalsRestfs internals
Restfs internals
 
Introduction to message_queue
Introduction to message_queueIntroduction to message_queue
Introduction to message_queue
 
Restfs
RestfsRestfs
Restfs
 
Winbind as Identity Management Connector
Winbind as Identity Management ConnectorWinbind as Identity Management Connector
Winbind as Identity Management Connector
 
Use Distributed Filesystem as a Storage Tier
Use Distributed Filesystem as a Storage TierUse Distributed Filesystem as a Storage Tier
Use Distributed Filesystem as a Storage Tier
 
Managing OpenAFS users with OpenIDM
Managing OpenAFS users with OpenIDMManaging OpenAFS users with OpenIDM
Managing OpenAFS users with OpenIDM
 
Afs manager
Afs managerAfs manager
Afs manager
 
Pt server ng
Pt server ngPt server ng
Pt server ng
 
Best Practices to create High Load Websites
Best Practices to create High Load WebsitesBest Practices to create High Load Websites
Best Practices to create High Load Websites
 
Be lazy... make automation
Be lazy... make automationBe lazy... make automation
Be lazy... make automation
 
Disaster recovery
Disaster recoveryDisaster recovery
Disaster recovery
 
Domestic cloud
Domestic cloudDomestic cloud
Domestic cloud
 
Inexpensive storage
Inexpensive storageInexpensive storage
Inexpensive storage
 
Samba management Console
Samba management ConsoleSamba management Console
Samba management Console
 
Link Samba to Cloud Storage
Link Samba to Cloud StorageLink Samba to Cloud Storage
Link Samba to Cloud Storage
 
Samba distributed env
Samba distributed envSamba distributed env
Samba distributed env
 
AFS introduction
AFS introductionAFS introduction
AFS introduction
 
AFS case study
AFS case studyAFS case study
AFS case study
 

Último

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 

Último (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 

Samba as a gateway to OpenAFS

  • 1. Samba as a gateway to OpenAFS Fabrizio Manfredi Furuholmen SambaXP April 2007
  • 2. Agenda Goal Solution Gateway Architecture Gateway Configuration Integration Tools Tuning Performance Result Page 2
  • 3. Goals Project Goal Primary goal of the project was to design and build an inexpensive storage system Requirements: Handle terabytes of data Transparent to final user Working in WAN environment Good level of scalability Page 3
  • 4. Solution Considerations Centralize Storage (hardware solution) SAN Blockdevice interface Performance NAS Filesystem interface Shared filesystem Distributed Filesystem (software solution) Filesystem interface Single file system across multiple computer nodes Page 4
  • 5. Solution Considerations Big Server vs Small Server (Google Techs) Small number of inexpensive fileservers provides similar performance to client side Increase in capacity are inexpensive Better manageability and redundancy. Page 5
  • 6. Solution Storage Price Terabyte Cost (SAS/FB) Components NAS SAN DFS 14k euro NAS/SAN 4k euro DFS Storage1.5 Tb with 52.000 52.000 10 disks (110/150) Disks Size Storage 14TB 200.000 200.000 143 vs 300 SAS/FB reduce 30% 100 disks (110/150) Disks Type 3 Server Storage 9.000 250/500 SATA Disk reduce >50% 500Gb (SAS) 14 Server Storage 56.000 1Tb (SAS) Installation 4 FB interface 1.600 Software 2 Switch FB 6.000 2 Server Gw 2.000 2.000 Discount 2 Switch Gb 1.200 1.200 1.200 TOTAL for 1.5 Tb 53.200 62.800 12.200 Administration TOTAL for 14 Tb 201.200 210.800 59.200 Page 6
  • 7. Solution Solution Distributed Filesystem AFS Free available and stable Support of large installations (>200TB with 40 milion Files) More then 20 platforms are supported Aggressive Roadmap ($350,000 per year from CSG) Samba (Gateway) AFS windows client uses internal file server emulation (slow) Clientless Fast and stable User Identity Heimdal Kerberos Autentichation (SSO) KA emulation LDAP backend 2b protocol (large kerberos ticket) Openldap Centralize storage User administration scripts (custom provisioning) Page 7
  • 8. Solution AFS Features Transparent Access and Uniform Namespace Cell Partitions and volumes Mount Points In-use volume moves Scalability Client Caching Replication Load balance among servers while data is in use Security Authentication and secure communication Authorization and flexible access control System Management Single system interface Administration tasks without system outage Delegation Backup Page 8
  • 9. Gateway Architeture Architeture Scalability Storage scalability (Filesystem layer) User scalability (Samba Gateway layer) Performance Load balancing Roaming user/branch office Clientless Centralized Identity Kerberos Ldap Page 9
  • 10. Gateway Configuration Enable AFS in Samba Compile Options Enable KA server emulation --with-fake-kaserver Enable AFS ACL mapping --with-vfs-afsacl Don’t use AFS clear text password switch (old not supported) --with-afs Setting Samba Trusting (undocumented) Obtain KeyFile from AFS fileserver (/usr/afs/etc/) Import an OpenAFS KeyFile into secrets.tdb: net afs key AFSKeyFile Custom script for AFSKeyFile sync (Key rotation) Useful command (undocumented) Impersonate user, create a token for user@cell: net afs impersonate <user> <cell> Page 10
  • 11. Gateway Configuration smb.conf Mapping Domain User<-> Pts Single domain/unique identification: afs username map = %u@zero.it Multiple domain/duplicated identification Store DOMAIN+user: afs username map = %D+%u@zero.it Store the SID in pt server: afs username map = %s@zero.it Enable AFS share afs share = yes Page 11
  • 12. Gateway Configuration smb.conf locking Access only from samba server Samba default Access only from samba and local gw Disable oplocks , level2 oplocks .. Only with Byte-range locking on AFS client (AFS>1.5.X) Access from all system Enable strict locking option (mandatory lock) Page 12
  • 13. Gateway Configuration Samba scalability and HA Primary server HA (DFS Root) Heartbeat VIP associated to primary Samba Server Transparent Access (MSDFS) No compile option required Enable DFS on Primary Samba server host msdfs = yes Samba Scalability DFS Proxy, Share redirection Name resolved with DNS (link is FQDN) (ex. msdfs proxy = gw1.intranet.zeropiu.itshare) DFS root , Directory link Fault tolerance (ex. ln –s msdfs:server1share1,server2share1 share1) Page 13
  • 14. Gateway Configuration Identity Storage Heimdal integration Compile Enable ldap backend (--with-openldap) Configuration Enable ldap backend Enable 2b token for Kerberos V integration Only if have old client: enable-kaserver / afs3-salt LDAP Openldap 2.3 (SASL EXTERNAL) Extending Schema (Samba,hdb ..) nss_switch with ldap support PAM PAM Kerberos V integration Page 14
  • 15. Integration Tools Identity Administration Custom user administration script (iauser.pl) Unix user (ldap) Samba user (ldap) Kerberos user (ldap) Pt server user Volume and mount point Groups administration script (iagroup.pl) Create unix group (ldap) Create samba group (ldap) Create pt server group Syncronization administration script (ptsSync.pl) Synchronization user from ldap to pt server Page 15
  • 16. Performance Test Enviroment Hardware 3 FileServer Linux 2 GB of RAM, 3GHz Xeon processor 2x36Gb SAS RAID 1 for operating system partition 4x 143GB SAS RAID5 storage 2 Server Gateway Linux 2 GB of RAM, 3GHz Xeon dual processor 2x36Gb SCSI RAID 1 for operating system partition Software Samba 3.22 OpenAFS 1.4.2 IOzone 3.8 Page 16
  • 17. Performance Samba Client write 45000 40000 Client: 35000 30000 40000-45000 35000-40000 Windows XP sp2 25000 30000-35000 25000-30000 20000 20000-25000 Server: 15000 15000-20000 10000 10000-15000 16384 5000 5000-10000 Linux 2.6.9 1024 0 block 0-5000 64 64 256 1024 4096 Samba 3.22 4 16384 65536 262144 kb Write: 30-43MB/sec read Read: 40-50MB/sec 70000 60000 50000 60000-70000 40000 50000-60000 40000-50000 30000 30000-40000 20000 20000-30000 16384 10000-20000 10000 1024 0-10000 0 block 64 64 256 1024 4096 4 16384 65536 262144 kb Page 17
  • 18. Performance write AFS Client 40000 35000 Client: 30000 35000-40000 25000 Linux 2.6.9 30000-35000 20000 25000-30000 20000-25000 openafs 1.4.2 15000 15000-20000 10000 10000-15000 16384 5000-10000 Server: 5000 1024 0-5000 0 block 64 64 256 Linux 2.6.9 1024 4096 4 16384 65536 262144 kb openafs 1.4.2 read Write: 20-37MB/sec 90000 80000 70000 80000-90000 60000 70000-80000 Read 50000 60000-70000 50000-60000 40000 40000-50000 Cold Cache: 22-28MB/sec 30000 30000-40000 20000 20000-30000 10000 10000-20000 Warm Cache: >45MB/sec 0 131072 16384 43 0-10000 4 16 64 256 2048 1024 4096 16384 a Page 18
  • 19. Performance write Samba GW 25000 Server: 20000 Linux 2.6.9 15000 20000-25000 15000-20000 openafs 1.4.2 10000 10000-15000 5000-10000 Gateway: 5000 16384 1024 0-5000 Linux 2.6.9 0 block 64 64 256 1024 4096 4 16384 65536 262144 OpenAFS 1.4.2 kb Samba 3.22 read Client: Windows XP sp2 45000 40000 35000 40000-45000 30000 35000-40000 Write: 18-25MB/sec 25000 20000 30000-35000 25000-30000 20000-25000 15000 15000-20000 10000 Read 16384 10000-15000 5000 5000-10000 1024 0 0-5000 Warm Cache: 30-40MB/sec 64 block 64 256 1024 4096 4 16384 65536 262144 kb Page 19
  • 20. Performance Throughoutput Coparison write 45000 40000 35000 30000 AFS 25000 Samba 20000 Samba-GW 15000 10000 read 5000 90000 0 80000 2 4 8 6 2 4 8 6 72 44 88 2 4 9 9 38 76 53 51 70000 10 21 42 10 20 40 81 16 32 65 13 26 52 filesize 60000 50000 AFS Samba 40000 Samba-GW 30000 20000 10000 0 2 24 48 96 92 4 8 6 72 44 88 38 76 53 51 10 21 42 10 20 40 81 16 32 65 13 26 52 Page 20
  • 21. Performance Tuning Samba Configuration (increase 30%) Enable socket options = TCP_NODELAY (Default) Increase SO_RCVBUF (16384) Increase SO_SNDBUF (32768) AFS Cache Manager (increase 20%) Increase block size (chunksize 19) Increase cache elements (dcache 5000) Increase server daemon (daemons 6) Increase rx packet (rxpck 2000) Increase data cache file (files 50000) Increase Cache size (cache size 4gb) Use separated disk for cache Page 21
  • 22. Result Benefit Reduced cost Reduced storage cost 40.000 Euro (1.5TB Storage) Reduced down time Increase performance Client side Simplify System Administration task Data accessible from everywhere High security level (kerberos base) Single sign-on Disaster recovery (Volume replication) Page 22
  • 23. Next Under Testing OpenAFS Lock subsystem, support AFS 1.5.X (Byte range) Windows client, support AFS 1.5.X Inode interface Socket communication vlserver/fileserver Memory cache Disable fsync on write (AFS 1.5.X + patch) WebDav Samba Cluster External project (www.beolink.org) Ptserver with ldap backend (ptsldap) Web Administration interface (AFS Manager) Page 23
  • 24. The End Manfred at zeropiu.it www.beolink.org Page 24