Cephalocon 2025 Demo Materials #225
phlogistonjohn
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Demo 1
Demo 1 is a brief demonstration of a minimal set of commands needed to bring up an SMB cluster on Ceph. Said cluster uses CTDB and is joined to AD.
Recording
YouTube
Prereqs
Commands
ceph orch ls
- Shows no existing SMB servicesceph smb cluster create demo1 active-directory DOMAIN1.SINK.TEST --domain-join-user-pass=Administrator%Passw0rd --placement=3
- create smb cluster resourceceph smb share create demo1 photos cephfs --subvolume=g1/sv1 --path=/ --share-name='Photo Archive
- create smb share resourceceph orch ls
- View services statusSwitch to windows client and connect to share at
\\192.168.76.200\Photo Archive
demonstrating windows client access. Connect to same share at\\192.168.76.201\Photo Archive
demonstrating the share through a different host.Demo 2
This demo is more advanced. It shows setting up three clusters via the declarative interface to the smb mgr module. One cluster uses custom ports while two others use custom bind addresses showing cluster colocation on just three ceph nodes. One cluster is configured to use the remote control sidecar service.
Recording
YouTube
Resource Definitions
The YAML based resource definitions used in this demo:
Commands
Commands used in the demo follow
SMB Configuration
ceph fs subvolume create cephfs --group-name=g1 --sub-name=admins --mode=0777 --casesensitive=false
- create a cephfs subvolume to demonstrate the--casesensitive
being set to false, making the subvolume case insenstiveceph orch ls
- Show cephadm services before creating smb clustersceph smb apply -i - < demo2.yaml
- submit the resource definitions to the smb mgr moduleceph orch ls
- Show cephadm services after creating smb clustersceph smb show --format=yaml --password-filter=hidden
- view resources as configured, avoid printing sensitive data on the consoleceph smb show --format=yaml --password-filter=hidden ceph.smb.cluster
- show only cluster resourcesceph smb show --format=yaml --password-filter=hidden ceph.smb.tls.credential
- show only tls credential resourcesAdmins cluster client connection
smbclient -U 'bob%Passw0rd' --port 5445 //192.168.76.200/'Admin Documents'
- connect to the share on the cluster with custom port valuesRemote Control
The grpcurl command makes use of TESTTLSDIR, to locate a directory holding tls certs, and SAMBACCDIR to locate a directory containing the sambacc git checkout where a copy of the grpc proto file is available.
Note that the remote control gRPC service must have matching CA, server, and client certs for the
grpcurl commands to work successfully.
smbclient -U 'domain1\bwayne' //192.168.76.200/'Soup Vegetables'
- connect linux client to sharegrpcurl -cacert $TESTTLSDIR/ca/ca.crt -cert $TESTTLSDIR/edfu.crt -key $TESTTLSDIR/edfu.key -import-path $SAMBACCDIR/sambacc/grpc/protobufs/ -proto control.proto 192.168.76.200:54445 SambaControl/Status
- get client connection informationgrpcurl -cacert $TESTTLSDIR/ca/ca.crt -cert $TESTTLSDIR/edfu.crt -key $TESTTLSDIR/edfu.key -import-path $SAMBACCDIR/sambacc/grpc/protobufs/ -proto control.proto -d '{"ip_address": "192.168.76.1"}' 192.168.76.200:54445 SambaControl/KillClientConnection
- disconnect the linux clientBeta Was this translation helpful? Give feedback.
All reactions