ubuntu环境ceph配置入门(一)

Ubuntu22.04搭建ceph 集群 Ceph是一个开源的、提供软件定义的、统一的分布式存储系统,设计初衷是提供较好的性能、 可靠性和可扩展性。(open-source,distributed,reliable,scalable,unified) “统一的”意味着一套存储系统同时提供块存储、文件存储、对象存储三种功能。 “分布式”意味着Ceph实现了无中心结构和没有理论上限的系统规模可扩展性 阅读详情
环境:ubuntu server 14.04 64bit,安装ceph版本0.79

正常情况下应有多个主机,这里为了快速入门以一台主机为例,多台主机配置方式类似。

1. 配置静态IP及主机名
静态IP配置:
#vi /etc/network/interfaces
修改eth0配置为
auto eth0
iface eth0 inet static
address 192.168.8.235 (根据具体情况填写)
netmask 255.255.255.0 (根据具体情况填写)
gateway 192.168.8.1   (根据具体情况填写)
dns-nameservers 192.168.1.6, 8.8.8.8 (根据具体情况填写)
配置完成后重启网络
#/etc/init.d/networking restart

主机配置:
#vi /etc/hostname 改为指定的主机名,我这里命名为apusapp
#vi /etc/hosts 修改 127.0.1.1 后的主机名为apusapp,并增加一行 192.168.8.235 apusapp 为刚配置的IP
重启机器

2. 安装ceph和ceph-deploy
#sudo apt-get install ceph
#sudo apt-get install ceph-deploy

3. 节点配置
在每个节点上创建一个ceph用户并为用户添加root权限
#sudo useradd -d /home/ceph -m ceph
#sudo passwd ceph
#echo "ceph ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph
#sudo chmod 0440 /etc/sudoers.d/ceph

4. 安装openssh服务并生成密码
#sudo apt-get install openssh-server
#ssh-keygen (回车不输入任何信息)

5. 创建存储集群
#mkdir ceph-cluster
#cd ceph-cluster

a. 创建集群
ceph-deploy new {ceph-node}
#ceph-deploy new apusapp(主机名)



b. 安装ceph
ceph-deploy install {ceph-node}[{ceph-node} ...]
#ceph-deploy install apusapp

c. 增加一个集群监视器
ceph-deploy mon create {ceph-node}
#ceph-deploy mon create apusapp

d. 收集密钥
ceph-deploy gatherkeys {ceph-node}
#ceph-deploy gatherkeys apusapp

收集密钥后会在当前目录生成
1. {cluster-name}.client.admin.keyring
2. {cluster-name}.bootstrap-osd.keyring
3. {cluster-name}.bootstrap-mds.keyring

e. 增加osd
#sudo mkdir -p /srv/ceph/osd0

在管理模式下,使用ceph-deploy准备OSD
ceph-deploy osd prepare {ceph-node}:/path/to/directory
#ceph-deploy osd prepare apusapp:/srv/ceph/osd0

然后激活OSD
ceph-deploy osd activate {ceph-node}:/path/to/directory
#ceph-deploy osd activate apusapp:/srv/ceph/osd0

查看相关信息
#ceph -s

ubuntu ceph部署 参考文档:http://docs.ceph.org.cn/start/ 阅读详情

相关推荐

Ubuntu20.04使用cephadm部署ceph集群

Cephadm通过在单个主机上创建一个Ceph单机集群,然后向集群中添加主机以扩展集群,进而部署其他服务。

优快云博客 3360

Ubuntu部署Ceph

ubuntu部署ceph流程

jkjgj的博客 4912

配置ceph iscsi网关

ceph iscsi 配置,ceph iscsi initiators 扫盘、登录

hejingdong123的博客 1475

在Ubuntu20.04下基于ceph-deploy部署ceph 16.2.10

Ceph 是一个开源的分布式存储系统, 同时支持对象存储、 块设备、 文件系统。ceph 支持 EB(1EB=1,000,000,000GB)级别的数据存储, ceph 把每一个待管理的数据流(文件等数据)切分为一到多个固定大小(默认 4 兆)的对象数据, 并以其为原子单元(原子是构成元素的最小单元)完成数据的读写。

Operational_0624的博客 2001

在ubuntu环境部署ceph集群

ceph-mon1 ceph-mon2 ceph-mon3 ceph-osd1 ceph-osd2 ceph-osd3 (1)edit /etc/hosts file ## ceph nodes informations 192.168.12.100 ceph-mon1 192.168.12.101 ceph-mon2 192.168.12.102 ceph-mon3 192.168.12.103 ceph-osd1 192.168.12.104 ceph-osd2 192.168.12.

ZHANGJNWEI的专栏 1099

ubuntu18源码编译安装ceph

卸载源码安装的cmake:进入安装cmake时解压好的源码文件夹,执行make uninstall。 安装Ceph预期准备:进入ceph目录,安装以下包 sudo apt-get install libatomic-ops-dev sudo apt-get install libaio-dev sudo apt-get install xfslibs-dev sudo apt-get install libboost-iostreams-dev sudo apt-get install l.

sinat_36835510的博客 2280

Ubuntu2204搭建ceph17

基于Ubuntu2204搭建ceph17版本

m0_56363537的博客 909

Ceph快速安装:Ceph-deploy 在Ubuntu 14.04 Server上部署三节点安装

小白搭建ceph环境

老衲射戟的博客 3104

ubuntu环境ceph配置入门(二)

为什么80%的码农都做不了架构师?>>> ...

weixin_34205076的博客 113

【js逆向学习】新手视角破解「广东省公共资源交易平台」

学习js逆向,破解广东省公共资源交易平台,详细记录个人探索、踩坑全过程。网站地址: aHR0cHM6Ly95Z3AuZ2R6d2Z3Lmdvdi5jbi8jLzQ0L2p5Z2c=仅供学习参考,如有疑问欢迎交流,一起学习进步。

DCSDA的博客 3320

TikTok网页版X-bougs和_signature参数逆向实战:从断点到RPC调用的完整流程

本文详细解析了TikTok网页版X-bougs和_signature参数的逆向工程实战,从基础断点调试到高级RPC调用,完整还原加密参数的生成过程。通过工具链搭建、加密定位、核心突破及实战演练,帮助开发者深入理解TikTok的加密体系,并构建自动化签名系统。

weixin_28691003的博客 440

如何30分钟搭建第一个Ceph集群:cephadm快速部署完整指南

想用最短时间上手分布式存储吗?本文手把手教你使用 **cephadm** 在30分钟内完成第一个 **Ceph集群** 的快速部署——从安装、引导(bootstrap)、添加主机到配置存储盘,一条命令流走完全程。cephadm 是 Ceph 官方内置的容器化编排工具,不依赖 Ansible 等外部工具,让新手也能零门槛拥有对象、块、文件三位一体的分布式存储平台。 ## Ceph集群是什么?为什么

gitblog_00771的博客 345

ollama服务暴露公网?三步搞定Nginx反向代理配置(避坑指南)

本文详细介绍了如何通过Nginx反向代理安全地将Ollama服务暴露到公网,避免直接修改OLLAMA_HOST带来的安全隐患。文章提供了从SSL证书部署到高级安全加固的全流程实战指南,包括IP白名单、基础认证、速率限制等企业级安全措施,帮助用户实现安全可靠的外部访问。

wood5的博客 178

Ceph—Ubuntu使用源码手动部署Ceph集群

Ceph—Ubuntu使用源码手动搭建Ceph搭建Ceph准备工作下载依赖开始构建Ceph集群搭建Monitor节点Manger节点OSD节点 搭建Ceph 环境准备:用200G磁盘空间搭建Ceph,用60G的磁盘空间划分osd,每个osd10G 先对60G的磁盘空间进行划分,划分为三个10G的空间。 fdisk /dev/sdc 准备工作 开始搭建Ceph,先从github(或者gitee)上clone源码。 gitee的源码:https://gitee.com/ghxandsky/ceph/tree/

weixin_42016791的博客 916

使用Dify搭建音频文件转文本工作流

使用Dify搭建音频文件转文本工作流

zyx_bx的博客 5624

MTK平台 MT6789 烧录 efuse 3.0 Configuration SOP

=====================生成cert1和cert2 key===============================================生成efuse key相关文件===========================================签名DA==========================================================正常编译。=====================Security3.0 的SOP 说明。

a785722173的博客 2332

CEPH环境搭建与Swift调用

前言 Ceph 是一个高性能、可靠、可扩展的开源存储平台。它是一个自由的分布式存储系统,提供了对象、块和文件级存储的接口,并可以不受单点故障的影响而运行。上周调研了CEPH文件集群的优劣性,准备做一个实际搭建的性能测试,在物理机上虚了多个ubuntu出来,模拟多台物理机集群,参考网络资源,搭建起来的,但是有遇到一些错误,可能对于接触过linux的人来说都不算很严重的难题,这里做个记录。本文参考:...

Must_Do的博客 2358

基于 MATLAB BP 神经网络的财务预测

通过基于 MATLAB BP 神经网络的财务预警模型,我们可以对企业的财务风险进行有效地识别和预测。在具体实现过程中,需要注意对财务数据的预处理、模型参数的调整以及结果的解释等问题。MLP模型的输入层、输出层和隐含层之间均为全连接,每个神经元都是上一层神经元的加权求和再加偏置后的非线性变换。其中,输入层接受财务数据,输出层输出财务预测结果,隐含层则对输入数据进行处理和抽象。其中,X’是标准化后的值,X是原始值,μ_i 和σ_i 分别是指标 i 在样本中的均值和标准差。其中,X’是标准化后的值,X是原始值。

TechPulseZ的博客 923

ceph-deploy在线安装ceph(Ubuntu18)

文章目录准备安装出错重来方法安装ceph-deploy配置各节点的静态IP和hosts安装chrony和openssh-server(所有节点)创建有sudo权限的用户(所有节点)免密登陆配置关闭防火墙安装ceph集群创建集群安装包初始化mon和mgr节点创建OSD检查ceph状态创建rbd 准备 操作系统:ubuntu-18.04.4-desktop-amd64 硬件需求:未使用的磁盘,注意如果是虚拟磁盘,用固定大小盘,不然ceph-deploy osd create会出错 官方文档:https://ce

blvyoucan的专栏 1746

rk3588主板PDM接口接数字MIC录音

本文介绍了Rockchip 3588平台上6麦克风PDM接口的硬件连接与软件调试过程。硬件方面展示了PDM0_CLK0_M0时钟脚和三组数据脚的连接方案。软件配置包括设备树修改,生成声卡节点,并提供了6通道录音命令示例。文章重点分析了两个常见问题:录音无声(需检查供电、接线和波形)和通道数据缺失(需正确配置rockchip,path-map寄存器映射)。最后通过Audition工具验证录音文件,确认各通道工作正常。调试过程完整展现了从硬件连接到软件配置的完整流程。

m0_60805802的博客 1014

机器人视觉联动精度优化:从±2mm到±0.02mm,产线级手眼标定全实战

2025年我接东莞长安Type-C接口分拣项目的时候,就是栽在了手眼标定上:实验室里标定完精度±0.5mm,一到产线直接掉到±2mm,机器人10次有3次抓不住,2000多件Type-C接口直接报废,还撞坏了2套汇川SCARA机器人的吸盘,本来45天的工期拖了3个月,不仅没赚到钱,还倒贴了几万块。手眼标定从来不是简单的跑个demo、算个矩阵就完事了,它是一个系统工程:从硬件选型、安装固定、相机标定、标定流程、算法优化、环境控制、重复验证,每一个环节都会影响最终的联动精度。

这里只有干货:从 Modbus 通信到 MES 对接,从 YOLO 训练到工控机部署,带你搞定工业软件开发全流程。 387

Ceph-Ansible部署Ceph-N(基于ubuntu 18.04 LTS)

常用自动化部署方案比较 名称 实现语言 发布时间 架构 DSL (区域特定语言) SaltStack Python 2011 C/S yaml Ansible Python 2012 Agentless yaml Puppet Ruby 2009 C/S Puppet Language Chef Ruby 2005 C/S 接近Ruby语法的Dsl 环境准备 在...

HHFQ的博客 2706

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

上一篇: 服务端性能分析优化
下一篇: ubuntu环境ceph配置入门(二)
EricGogh
博客等级 码龄19年 24粉丝 32原创
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值