Guest User

Untitled

a guest
May 6th, 2016
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.73 KB | None | 0 0
  1. —>Building SAMBA.
  2. wget https://download.samba.org/pub/samba/samba-4.4.2.tar.gz
  3. tar xf samba-4.4.2.tar.gz t
  4. cd samba-4.4.2
  5. ./configure --prefix=/usr/keeper --with-cluster-support --without-systemd --without-lttng
  6. make
  7.  
  8. The SAMBA build system has the current cephfs libs, so cephfs was included but should not have been used:
  9. dpkg -l | grep ceph
  10. ii libcephfs-dev 10.2.0-1trusty amd64 Ceph distributed file system client library (development files)
  11. ii libcephfs1 10.2.0-1trusty amd64 Ceph distributed file system client library
  12.  
  13. —>smb.conf
  14. cat /usr/keeper/etc/smb.conf
  15. [global]
  16. security = ads
  17. realm = ERIC.LOCAL
  18. wins server = ede-c1-win12-ad.eric.local
  19. workgroup = ERIC
  20. netbios name = ETEST
  21. idmap config * : backend = rid
  22. idmap config * : range = 1000001 - 2000000
  23. idmap config * : base_rid = 0
  24. idmap config ERIC : backend = rid
  25. idmap config ERIC : range = 2000001 - 3000000
  26. idmap config ERIC : base_rid = 0
  27. winbind enum groups = yes
  28. winbind enum users = yes
  29. winbind expand groups = 2
  30. winbind refresh tickets = yes
  31. acl group control = no
  32. acl map full control = no
  33. client ntlmv2 auth = yes
  34. local master = no
  35. log file = /usr/keeper/var/log/samba/log.%m
  36. hide dot files = no
  37. map acl inherit = yes
  38. map archive = no
  39. map hidden = no
  40. map read only = no
  41. map system = no
  42. server signing = auto
  43. reset on zero vc = yes
  44. kernel oplocks = no
  45. restrict anonymous = 0
  46. store dos attributes = yes
  47. syslog = 0
  48. template homedir = /home/winbind/%D/%U
  49. template shell = /bin/false
  50. unix extensions = no
  51. use sendfile = no
  52. use mmap = no
  53. vfs objects = acl_xattr streams_xattr
  54. acl_xattr:ignore system acls = yes
  55. load printers = no
  56. printcap name = /dev/null
  57.  
  58. # For now use kernel mounted cephfs
  59. [cephkern]
  60. path = /cephfs/test
  61. writeable = yes
  62. browseable = yes
  63.  
  64. [cephfuse]
  65. path = /cephfsFUSE/test
  66. writeable = yes
  67. browseable = yes
  68.  
  69.  
  70. —>ceph.conf
  71. mon_host = 10.14.2.11, 10.14.2.12, 10.14.2.13
  72. auth_supported = cephx
  73. auth_cluster_required = cephx
  74. auth_service_required = cephx
  75. auth_client_required = cephx
  76. cephx_cluster_require_signatures = true
  77. cephx_require_signatures = false
  78. cephx_service_require_signatures = false
  79. filestore_xattr_use_omap = true
  80. osd_pool_default_flag_hashpspool = 1
  81. mon_osd_down_out_interval = 600
  82. osd_recovery_max_active = 5
  83. osd_max_backfills = 2
  84. osd_recovery_op_priority = 2
  85. osd_op_threads = 8
  86. filestore_merge_threshold = 40
  87. filestore_split_multiple = 8
  88. osd_pool_default_pg_num = 256
  89. osd_pool_default_pgp_num = 512
  90. mon_osd_full_ratio = .95
  91. mon_osd_nearfull_ratio = 0.85
  92. osd_failsafe_nearfull_ratio = .90
  93. osd_failsafe_full_ratio = .97
  94. osd_backfill_full_ratio = .85
  95. osd_heartbeat_min_peers = 40
  96. mon_pg_warn_min_per_osd = 0
  97. mon_pg_warn_max_per_osd = 10000
  98. osd_dmcrypt_type = plain
  99. mds_cache_size = 500000
  100. mds_max_file_size = 17592186044416
  101. #FIXME: Jewel by default uses RBD features not in kernels <4.6 (maybe 4.7?)
  102. # so for now force it to not turn on these features
  103. rbd default features = 1
  104.  
  105. -->/etc/fstab
  106. # /etc/fstab: static file system information.
  107. #
  108. # Use 'blkid' to print the universally unique identifier for a
  109. # device; this may be used with UUID= as a more robust way to name devices
  110. # that works even if disks are added and removed. See fstab(5).
  111. #
  112. # <file system> <mount point> <type> <options> <dump> <pass>
  113. # / was on /dev/sda1 during installation
  114. UUID=630c002e-1b5c-45f7-a8e2-cf2d34c562dc / ext4 errors=remount-ro 0 1
  115. # /var was on /dev/sda6 during installation
  116. UUID=17207aba-fba4-4fde-a535-01c5db4371dd /var ext4 defaults 0 2
  117. # swap was on /dev/sda5 during installation
  118. UUID=9f01d63f-546e-4c80-8f78-0f629c3d0115 none swap sw 0 0
  119. /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
  120. 10.14.2.11,10.14.2.12,10.14.2.13:/ /cephfs ceph name=cephfs,secretfile=/etc/ceph/client.cephfs,noatime,_netdev 0 0
  121. id=cephfs,keyring=/etc/ceph/client.cephfs.keyring /cephfsFUSE fuse.ceph noatime,_netdev,noauto 0 0
  122.  
  123.  
  124. --> ceph -s
  125. cluster 75a91bbe-b287-11e4-889f-001517987704
  126. health HEALTH_OK
  127. monmap e1: 3 mons at {ede-c1-mon01=10.14.2.11:6789/0,ede-c1-mon02=10.14.2.12:6789/0,ede-c1-mon03=10.14.2.13:6789/0}
  128. election epoch 10, quorum 0,1,2 ede-c1-mon01,ede-c1-mon02,ede-c1-mon03
  129. fsmap e12: 1/1/1 up {1:0=ede-c1-mds01=up:active}, 2 up:standby
  130. osdmap e79: 18 osds: 18 up, 18 in
  131. flags sortbitwise
  132. pgmap v21514: 832 pgs, 4 pools, 20193 MB data, 5871 objects
  133. 61453 MB used, 1001 GB / 1061 GB avail
  134. 832 active+clean
  135.  
  136. --> ceph fs ls
  137. name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]
Add Comment
Please, Sign In to add comment