fs set <fs_name> max_mds|max_file_size|allow_new_snaps|inline_data|cluster_down|allow_multimds|allow_dirfrags| balancer|standby_count_wanted|session_timeout|session_autoclose <val> {<confirm>} set fs parameter <var> to <val>
实验1
1
[root@ceph1 ~]# ceph fs set cephfs session_autoclose 400
MON相关配置 客户端blacklist entries保留在OSD map中的持续时间(以秒为单位) Option("mon_osd_blacklist_default_expire", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED) .set_default(1_hr) .add_service("mon") .set_description("Duration in seconds that blacklist entries for clients remain in the OSD map"),
MDS daemons的blacklist entries保留在OSD map中的持续时间(以秒为单位) Option("mon_mds_blacklist_interval", Option::TYPE_FLOAT, Option::LEVEL_DEV) .set_default(1_day) .set_min(1_hr) .add_service("mon") .set_description("Duration in seconds that blacklist entries for MDS daemons remain in the OSD map"),
RBD相关配置 是否将损坏锁的客户端列入blacklist Option("rbd_blacklist_on_break_lock", Option::TYPE_BOOL, Option::LEVEL_ADVANCED) .set_default(true) .set_description("whether to blacklist clients whose lock was broken"),
blacklist的秒数 - OSD 默认值为 0 Option("rbd_blacklist_expire_seconds", Option::TYPE_UINT, Option::LEVEL_ADVANCED) .set_default(0) .set_description("number of seconds to blacklist - set to 0 for OSD default"),
MDS相关配置 是否将sessions已过期的客户端列入blacklist Option("mds_session_blacklist_on_timeout", Option::TYPE_BOOL, Option::LEVEL_ADVANCED) .set_default(true) .set_description("blacklist clients whose sessions have become stale"),
是否将被逐出的客户端列入blacklist Option("mds_session_blacklist_on_evict", Option::TYPE_BOOL, Option::LEVEL_ADVANCED) .set_default(true) .set_description("blacklist clients that have been evicted"),
数秒后,没有响应MDS的“cap revoke messages”的客户端将被驱逐。(默认为0,表示关闭该功能) Option("mds_cap_revoke_eviction_timeout", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED) .set_default(0) .set_description("number of seconds after which clients which have not responded to cap revoke messages by the MDS are evicted."),
MDS重新连接恢复状态期间等待客户端重新连接的超时时间(以秒为单位) Option("mds_reconnect_timeout", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED) .set_default(45) .set_description("timeout in seconds to wait for clients to reconnect during MDS reconnect recovery state"),
Udevadm info starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device.
recovery_deletes flags:Ceph现在在recovery过程中处理delete操作,而不是在peering过程中。以前,将down或out超过15分钟的OSD带回到群集中会导致placement group peering时间延长。peering过程需要很长时间才能完成,因为delete操作是在合并placement group日志作为peering过程的一部分时内联处理的。结果,对处于peering状态的placement group的操作被blocked。通过此更新,Ceph可以在正常recovery过程中而不是peering过程中处理delete操作。结果可以使peering过程更快完成,并且操作不再blocked。(This was fixed with the help of Red Hat Ceph Storage feature request #1452780 and this was released in 2.4 errata version 10.2.7-32.el7cp.)
8.1、查看当前rank数量 执行命令:ceph mds stat 命令输出:cephfs-1/1/1 up {0=ceph3=up:active}, 2 up:standby 如果rank为2,命令输出为:cephfs-2/2/2 up {0=ceph3=up:active,1=ceph2=up:active}, 1 up:standby
8.2、查看cephfs名称 执行命令:ceph fs ls 命令输出:name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]
8.3、将ranks数减少到1 执行命令:ceph fs set <fs_name> max_mds 1 命令输出:空
8.4、通过定期检查状态,等待集群停用所有non-zero ranks,当{0=ceph3=up:active}时为已停用所有non-zero ranks 执行命令:ceph status 命令输出:cephfs-1/1/1 up {0=ceph3=up:active}, 2 up:standby
[global] workgroup = SAMBA security = user passdb backend = tdbsam printing = cups printcap name = cups load printers = yes cups options = raw
[homes] comment = Home Directories valid users = %S, %D%w%S browseable = No read only = No inherit acls = Yes writable = Yes
[ceph] comment = ceph path = /root/ceph-rbd-1-mountpoint/ valid users = %S, %D%w%S browseable = No read only = No inherit acls = Yes writable = Yes
[printers] comment = All Printers path = /var/tmp printable = Yes create mask = 0600 browseable = No
[print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @printadmin root force group = @printadmin create mask = 0664 directory mask = 0775
systemctl restart smb
9、为samba添加ceph用户
1
smbpasswd -a ceph
10、客户端访问samba
1
\\10.20.10.23\ceph
window清除samba连接,重新登录
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
C:\Users\JiangYu>net use 会记录新的网络连接。 状态 本地 远程 网络 ------------------------------------------------------------------------------- OK \\10.20.10.23\IPC$ Microsoft Windows Network 命令成功完成。
C:\Users\JiangYu>net use \\10.20.10.23\IPC$ /del \\10.20.10.23\IPC$ 已经删除。
#======================= Global Settings =====================================
[global]
# ----------------------- Network-Related Options ------------------------- # # workgroup = Windows NT domain name 或 workgroup name, 例如, MYGROUP. # # server string = 等效于Windows NT Description字段(用于描述). # # netbios name = 用于指定不与hostname绑定的server name,最多15个字符。 # # interfaces = 用于将Samba配置为侦听多个network interfaces。如果您有多个interfaces,则可以使用"interfaces ="选项来配置Samba侦听哪些interface。 切勿忽略localhost interface (lo)。 # # hosts allow = 允许连接的主机。This option can also be used on a per-share basis. # # hosts deny = 不允许主机连接。 This option can also be used on a per-share basis. # workgroup = MYGROUP server string = Samba Server Version %v
Name : ctdb Summary : A Clustered Database based on Samba's Trivial Database (TDB) Description : CTDB是Samba和其他项目用来存储临时数据的TDB数据库的集群实现。如果应用程序已经在使用TDB来存储临时数据,则很容易将该应用程序转换为群集感知型,而使用CTDB。
Name : samba-devel Summary : Developer tools for Samba libraries Description : samba-devel package包含开发Samba套件时的SMB,RPC和其他程序所需libraries的header files。
Name : samba-vfs-glusterfs Summary : Samba VFS module for GlusterFS Description : 包含GlusterFS集成Samba VFS的模块。
Name : ctdb-tests Summary : CTDB clustered database test suite Description : CTDB的测试套件。CTDB是Samba和其他项目用来存储临时数据的TDB数据库的集群实现。如果应用程序已经在使用TDB来存储临时数据,则很容易将该应用程序转换为群集感知型,而使用CTDB。
Name : libsmbclient Summary : The SMB client library Description : libsmbclient包含来自Samba套件的SMB客户端library。
Name : samba-common-libs Summary : Libraries used by both Samba servers and clients Description : samba-common-libs package包含SMB/CIFS客户端所需的internal libraries。
Name : libwbclient-devel Summary : Developer tools for the winbind library Description : libwbclient-devel package为wbclient library提供了developer tools。
Name : samba-dc-libs Summary : Samba AD Domain Controller Libraries Description : samba-dc-libs package包含DC去链接SMB,RPC和其他协议所需的库。
Name : samba-test Summary : Testing tools for Samba servers and clients Description : samba-test为Samba的server和client packages提供测试工具。
Name : samba Summary : Server and Client software to interoperate with Windows machines Description : Samba is the standard Windows interoperability suite of programs : for Linux and Unix.
Name : samba-debuginfo Summary : Debug information for package samba Description : 该软件包提供了samba软件包的debug information。
Name : samba-test-libs Summary : Libraries need by the testing tools for Samba servers and clients Description : samba-test-libs提供测试工具所需的libraries。
… POOLS: POOL ID STORED OBJECTS USED %USED MAX AVAIL data 0 63 TiB 44.59M 63 TiB 30.21 48 TiB … but when one OSD was updated it changed to POOLS: POOL ID STORED OBJECTS USED %USED MAX AVAIL data 0 558 GiB 43.50M 1.7 TiB 1.22 45 TiB
根本原因是,从Nautilus开始,BlueStore维护了每个池的使用情况统计信息,但是它需要对磁盘上的格式进行少量更改。 除非您运行ceph-bluestore-tool修复,否则升级后的OSD不会拥有新的统计信息。 问题在于,一旦* any * OSD报告了er-pool统计信息,mon就开始使用新的统计信息(而不是等到* all * OSD都在这样做)。