ceph-deploy admin node Installation
准备:
1、系统版本,我的是server版的ubuntu 14.04
[email protected]:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty
2、系统内核
[email protected]:~# uname -rm 3.19.0-25-generic x86_64
3、IP 192.168.81.138
4、配置源
[email protected]:~# vim /etc/apt/sources.list deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse deb http://ceph.com/debian/ trusty main
5、Add the release key:
[email protected]:~# wget -q -O- ‘https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc‘ | sudo apt-key add -
6、Update your repository and install ceph-deploy
[email protected]:~# sudo apt-get update && sudo apt-get install ceph-deploy 命中 http://ceph.com trusty InRelease 命中 http://ceph.com trusty/main amd64 Packages 命中 http://ceph.com trusty/main i386 Packages 忽略 http://ceph.com trusty/main Translation-zh_CN 忽略 http://ceph.com trusty/main Translation-zh 忽略 http://ceph.com trusty/main Translation-en 正在读取软件包列表... 完成 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 将会安装下列额外的软件包: python-setuptools 下列【新】软件包将被安装: ceph-deploy python-setuptools 升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 65 个软件包未被升级。 需要下载 343 kB 的软件包。 解压缩后会消耗掉 1,529 kB 的额外空间。 您希望继续执行吗? [Y/n] y 获取:1 http://mirrors.163.com/ubuntu/ trusty-updates/main python-setuptools all 3.3-1ubuntu2 [230 kB] 获取:2 http://ceph.com/debian/ trusty/main ceph-deploy all 1.5.28trusty [113 kB] 下载 343 kB,耗时 2秒 (124 kB/s) 正在选中未选择的软件包 python-setuptools。 (正在读取数据库 ... 系统当前共安装有 56100 个文件和目录。) 正准备解包 .../python-setuptools_3.3-1ubuntu2_all.deb ... 正在解包 python-setuptools (3.3-1ubuntu2) ... 正在选中未选择的软件包 ceph-deploy。 正准备解包 .../ceph-deploy_1.5.28trusty_all.deb ... 正在解包 ceph-deploy (1.5.28trusty) ... 正在设置 python-setuptools (3.3-1ubuntu2) ... 正在设置 ceph-deploy (1.5.28trusty) ...
7、ceph
[email protected]:~# ceph-deploy --help usage: ceph-deploy [-h] [-v | -q] [--version] [--username USERNAME] [--overwrite-conf] [--cluster NAME] [--ceph-conf CEPH_CONF] COMMAND ... Easy Ceph deployment -^- / |O o| ceph-deploy v1.5.28 ).-.( ‘/|||\` | ‘|` | ‘|` Full documentation can be found at: http://ceph.com/ceph-deploy/docs optional arguments: -h, --help show this help message and exit -v, --verbose be more verbose -q, --quiet be less verbose --version the current installed version of ceph-deploy --username USERNAME the username to connect to the remote host --overwrite-conf overwrite an existing conf file on remote host (if present) --cluster NAME name of the cluster --ceph-conf CEPH_CONF use (or reuse) a given ceph.conf file commands: COMMAND description new Start deploying a new cluster, and write a CLUSTER.conf and keyring for it. install Install Ceph packages on remote hosts. rgw Ceph RGW daemon management mds Ceph MDS daemon management mon Ceph MON Daemon management gatherkeys Gather authentication keys for provisioning new nodes. disk Manage disks on a remote host. osd Prepare a data disk on remote host. admin Push configuration and client.admin key to a remote host. repo Repo definition management config Copy ceph.conf to/from remote host(s) uninstall Remove Ceph packages from remote hosts. purge Remove Ceph packages from remote hosts and purge all data. purgedata Purge (delete, destroy, discard, shred) any Ceph data from /var/lib/ceph forgetkeys Remove authentication keys from the local directory. pkg Manage packages on remote hosts. calamari Install and configure Calamari nodes. Assumes that a repository with Calamari packages is already configured. Refer to the docs for examples (http://ceph.com/ceph-deploy/docs/conf.html) [email protected]:~#
8、[Note]
You can also use the EU mirror eu.ceph.com for downloading your packages.
Simply replace http://ceph.com/ by
【admin-node ceph-deploy】OK !
时间: 2024-10-12 19:29:30