Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- —>Building SAMBA.
- wget https://download.samba.org/pub/samba/samba-4.4.2.tar.gz
- tar xf samba-4.4.2.tar.gz t
- cd samba-4.4.2
- ./configure --prefix=/usr/keeper --with-cluster-support --without-systemd --without-lttng
- make
- The SAMBA build system has the current cephfs libs, so cephfs was included but should not have been used:
- dpkg -l | grep ceph
- ii libcephfs-dev 10.2.0-1trusty amd64 Ceph distributed file system client library (development files)
- ii libcephfs1 10.2.0-1trusty amd64 Ceph distributed file system client library
- —>smb.conf
- cat /usr/keeper/etc/smb.conf
- [global]
- security = ads
- realm = ERIC.LOCAL
- wins server = ede-c1-win12-ad.eric.local
- workgroup = ERIC
- netbios name = ETEST
- idmap config * : backend = rid
- idmap config * : range = 1000001 - 2000000
- idmap config * : base_rid = 0
- idmap config ERIC : backend = rid
- idmap config ERIC : range = 2000001 - 3000000
- idmap config ERIC : base_rid = 0
- winbind enum groups = yes
- winbind enum users = yes
- winbind expand groups = 2
- winbind refresh tickets = yes
- acl group control = no
- acl map full control = no
- client ntlmv2 auth = yes
- local master = no
- log file = /usr/keeper/var/log/samba/log.%m
- hide dot files = no
- map acl inherit = yes
- map archive = no
- map hidden = no
- map read only = no
- map system = no
- server signing = auto
- reset on zero vc = yes
- kernel oplocks = no
- restrict anonymous = 0
- store dos attributes = yes
- syslog = 0
- template homedir = /home/winbind/%D/%U
- template shell = /bin/false
- unix extensions = no
- use sendfile = no
- use mmap = no
- vfs objects = acl_xattr streams_xattr
- acl_xattr:ignore system acls = yes
- load printers = no
- printcap name = /dev/null
- # For now use kernel mounted cephfs
- [cephkern]
- path = /cephfs/test
- writeable = yes
- browseable = yes
- [cephfuse]
- path = /cephfsFUSE/test
- writeable = yes
- browseable = yes
- —>ceph.conf
- mon_host = 10.14.2.11, 10.14.2.12, 10.14.2.13
- auth_supported = cephx
- auth_cluster_required = cephx
- auth_service_required = cephx
- auth_client_required = cephx
- cephx_cluster_require_signatures = true
- cephx_require_signatures = false
- cephx_service_require_signatures = false
- filestore_xattr_use_omap = true
- osd_pool_default_flag_hashpspool = 1
- mon_osd_down_out_interval = 600
- osd_recovery_max_active = 5
- osd_max_backfills = 2
- osd_recovery_op_priority = 2
- osd_op_threads = 8
- filestore_merge_threshold = 40
- filestore_split_multiple = 8
- osd_pool_default_pg_num = 256
- osd_pool_default_pgp_num = 512
- mon_osd_full_ratio = .95
- mon_osd_nearfull_ratio = 0.85
- osd_failsafe_nearfull_ratio = .90
- osd_failsafe_full_ratio = .97
- osd_backfill_full_ratio = .85
- osd_heartbeat_min_peers = 40
- mon_pg_warn_min_per_osd = 0
- mon_pg_warn_max_per_osd = 10000
- osd_dmcrypt_type = plain
- mds_cache_size = 500000
- mds_max_file_size = 17592186044416
- #FIXME: Jewel by default uses RBD features not in kernels <4.6 (maybe 4.7?)
- # so for now force it to not turn on these features
- rbd default features = 1
- -->/etc/fstab
- # /etc/fstab: static file system information.
- #
- # Use 'blkid' to print the universally unique identifier for a
- # device; this may be used with UUID= as a more robust way to name devices
- # that works even if disks are added and removed. See fstab(5).
- #
- # <file system> <mount point> <type> <options> <dump> <pass>
- # / was on /dev/sda1 during installation
- UUID=630c002e-1b5c-45f7-a8e2-cf2d34c562dc / ext4 errors=remount-ro 0 1
- # /var was on /dev/sda6 during installation
- UUID=17207aba-fba4-4fde-a535-01c5db4371dd /var ext4 defaults 0 2
- # swap was on /dev/sda5 during installation
- UUID=9f01d63f-546e-4c80-8f78-0f629c3d0115 none swap sw 0 0
- /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
- 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
- id=cephfs,keyring=/etc/ceph/client.cephfs.keyring /cephfsFUSE fuse.ceph noatime,_netdev,noauto 0 0
- --> ceph -s
- cluster 75a91bbe-b287-11e4-889f-001517987704
- health HEALTH_OK
- 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}
- election epoch 10, quorum 0,1,2 ede-c1-mon01,ede-c1-mon02,ede-c1-mon03
- fsmap e12: 1/1/1 up {1:0=ede-c1-mds01=up:active}, 2 up:standby
- osdmap e79: 18 osds: 18 up, 18 in
- flags sortbitwise
- pgmap v21514: 832 pgs, 4 pools, 20193 MB data, 5871 objects
- 61453 MB used, 1001 GB / 1061 GB avail
- 832 active+clean
- --> ceph fs ls
- name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]
Add Comment
Please, Sign In to add comment