• http;www.tbplay918.com_http;www.tbplay918.com【微信快捷支付】

  • 发布时间:2016-01-22 02:33 | 作者:yc | 来源:互联网 | 浏览:1200 次
  • http;www.tbplay918.com_http;www.tbplay918.com【微信快捷支付】

    chain forward (policy accept 0 packets, 0 bytes)

    3、ip192.168.81.138

    【预备几个osd 】

    [--overwrite-conf] [--cluster name] [--ceph-conf ceph_conf]

    inet addr:172.16.66.134bcast:172.16.66.255mask:255.255.255.0

    3.19.0-25-generic x86_64

    掷中 http://ceph.com trusty/main amd64 packages

    unpacking ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.4) ...

    |e o.* = o|

    quantalubuntu 12.10

    掷中 http://ceph.com trusty inrelease

    您期望持续实行吗? [y/n] y

    '|`

    codename: trusty

    纰漏 http://ceph.com trusty/main translation-en

    root@ceph:~# mkdir /etc/sudoers.d

    获取:1 http://mirrors.163.com/ubuntu/ trusty-security/main openssh-server amd64 1:6.6p1-2ubuntu2.3 [319 kb]

    (http://ceph.com/ceph-deploy/docs/conf.html)

    在2015年10月20日实行apt-get install ceph-deploy 会提示找不到文件包

    回到deploy-admin的osd家目录

    下列【新】软件包将被装配:

    /usr/bin/ssh-copy-id: info: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys

    generating public/private rsa key pair.

    需求下载 884 kb 的软件包

    -h, --helpshow this help message and exit

    创立专用的用户,在每个ceph节点中为用户添加 root 权限

    cluster.conf and keyring for it.

    commands:

    ).-.(

    /\

    osd@ceph:/root$ ssh osd2

    root@ceph-admin:~# lsb_release -a

    your public key has been saved in /home/osd/.ssh/id_rsa.pub.

    root@ceph-admin:~#apt-get update && apt-get install ceph-deploy

    正在剖析软件包的寄托联系树

    -r--r----- 1 root root 31 10月 18 16:17 /etc/sudoers.d/osd

    python-setuptools

    trustyubuntu 14.04

    pkts bytes targetprot opt inoutsourcedestination

    获取:1 http://mirrors.163.com/ubuntu/ trusty-updates/main python-setuptools all 3.3-1ubuntu2 [230 kb]

    |o * +s|

    distributor id: ubuntu

    2015年10月19日

    下载 884 kb,耗时 2秒 (418 kb/s)

    host osd2

    forgetkeysremove authentication keys from the local directory.

    正在剖析软件包的寄托联系树

    正在选中未遴选的软件包 python-setuptools

    usage of /:6.2% of 18.58gbusers logged in:1

    number of key(s) added: 1

    purgedatapurge (delete, destroy, discard, shred) any ceph data

    正在设置 ceph-deploy (1.5.28trusty) ...

    deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

    为了运用大略,在每个节点上都创立osd用户,而且暗码都设置为osd

    root@ceph-osd2:~# sudo fdisk -l

    osd@ceph-admin:/root$ ssh-keygen -t rsa -p ''

    ureadahead will be reprofiled on next reboot

    $ /sbin/ifconfig

    每一个节点都要装配

    chain output (policy accept 0 packets, 0 bytes)

    ceph-deploy admin node installation

    | '|` |

    processing triggers for libc-bin (2.19-0ubuntu6.6) ...

    user osd

    【洞开iptables端口或许全开】

    from /var/lib/ceph

    正在读取软件包列表... 完结

    |= o|

    要是是ubuntu 14.04 在sources.list文件顶部添加

    正在读取状况信息... 完结

    https://landscape.canonical.com/

    正预备解包 .../ceph-deploy_1.5.28trusty_all.deb...

    在deploy-admin节点反省

    reporepo definition management

    (正在读取数据库 ... 体系当前共装配有 55875 个文件和目录)

    获取:2 http://ceph.com/debian/ trusty/main ceph-deploy all 1.5.28trusty [113 kb]

    welcome to ubuntu 14.04.3 lts (gnu/linux 3.19.0-25-generic x86_64)

    2、体系内核

    获取:1 http://mirrors.163.com/ubuntu/ trusty/main libopts25 amd64 1:5.18-2ubuntu2 [55.3 kb]

    正在设置 ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.4) ...

    下列软件包将被晋级:

    no lsb modules are available.

    inet addr:172.16.66.133bcast:172.16.66.255mask:255.255.255.0

    jessiedebian 8

    --username usernamethe username to connect to the remote host

    deb http://mirrors.ustc.edu.cn/ceph/debian/ wheezy main

    正在读取状况信息... 完结

    11、在deploy-admin节点 装配 ssh server

    要是是ubuntu 14.04 在sources.list文件顶部添加

    the key fingerprint is:

    |.|

    the key's randomart image is:

    wheezydebian 8

    simply replace http://ceph.com/ by

    debian7的疑问:

    deb http://ceph.com/debian/ wheezy main

    your identification has been saved in /home/osd/.ssh/id_rsa.

    eth0link encap:ethernethwaddr 00:0c:29:83:79:46

    10、在deploy-admin节点 装配 ntp

    /dev/sda1*3linux

    units = sectors of 1 * 512 = 512 bytes

    需求下载 473 kb 的软件包

    deploy-admin节点也要创立

    sector size (logical/physical): 512 bytes / 512 bytes

    processing triggers for man-db (2.6.7.1-1ubuntu1) ...

    usage: ceph-deploy [-h] [-v | -q] [--version] [--username username]

    deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

    processing triggers for man-db (2.6.7.1-1ubuntu1) ...

    ||

    正在读取软件包列表... 完结

    osd@ceph-osd1:~$ sudo su

    hostname 172.16.66.135

    deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

    hostname 172.16.66.134

    ssh-rsa aaaab3nzac1yc2eaaaadaqabaaabaqc8clpoluhvah2ra3upvgsds2h9bzbc5uentmudeo+wuh16gndmtzj7joriklyz5oz7pu0z7mvnbzcfli6dpckbfmj481yijhj2gebkakbznk4bnjayo8usmso6muh43vzo7+xemoclwnrwepbzzp4ynpia05qfiw8k4togyz4sva35q7batomr8zqwt3ojs4o7kwlpyr4byotjskfwas9kmuju9t4auehgzyr7lcyl5vqainljykfrpzdoqslxyjuybe3equ5htudvuvbh3/edyqfol0f5azewbbuyjx4xedn5fggp/ub2hfebbsxk6uj9pajnhzg74nyj+ho9ybid osd@ceph-admin

    主张装配的软件包:

    deb http://ceph.com/debian/ trusty main

    在osd节点,反省

    ecdsa key fingerprint is fc:56:05:a6:16:70:c8:23:6f:4d:0b:81:fc:3d:7b:66.

    pkgmanage packages on remote hosts.

    system information as of sun oct 18 17:18:24 cst 2015

    retype new unix password: osd

    preciseubuntu 12.04

    正在设置 openssh-server (1:6.6p1-2ubuntu2.3) ...

    root@ceph-osd1:~#useradd -d /home/osd -m osd

    要是是debian7在sources.list文件顶部添加

    掷中 http://ceph.com trusty/main i386 packages

    deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

    preparing to unpack .../openssh-server_1%3a6.6p1-2ubuntu2.3_amd64.deb ...

    正在解包 ceph-deploy (1.5.28trusty) ...

    user o注册送体验金sd

    下列【新】软件包将被装配:

    unpacking openssh-server (1:6.6p1-2ubuntu2.3) over (1:6.6p1-2ubuntu2) ...

    inet addr:172.16.66.135bcast:172.16.66.255mask:255.255.255.0

    正在设置 openssh-client (1:6.6p1-2ubuntu2.3) ...

    preciseubuntu 12.04

    deb http://mirrors.ustc.edu.cn/ceph/debian/ trusty main

    installinstall ceph packages on remote hosts.

    root@ceph-admin:~# vim /etc/apt/sources.list

    -v, --verbosebe more verbose

    6、update your repository and install ceph-deploy

    sudo: unable to resolve host ceph-osd2

    4、设置设备摆设源

    正在读取软件包列表... 完结

    libopts25 ntp

    解压缩后会耗丧掉落 1,676 kb 的额定空间

    configcopy ceph.conf to/from remote host(s)

    root@ceph-admin:~# vim /etc/apt/sources.list

    enter new unix password: osd

    测验,在eploy-admin节点登录osd节点

    host osd1

    unpacking openssh-client (1:6.6p1-2ubuntu2.3) over (1:6.6p1-2ubuntu2) ...

    正在设置 python-setuptools (3.3-1ubuntu2) ...

    i/o size (minimum/optimal): 512 bytes / 512 bytes

    '/|||\`

    $ sudo su

    uninstallremove ceph packages from remote hosts.

    解压缩后会耗丧掉落 0 b 的额定空间

    deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

    获取:2 http://mirrors.163.com/ubuntu/ trusty-security/main openssh-client amd64 1:6.6p1-2ubuntu2.3 [564 kb]

    pkts bytes targetprot opt inoutsourcedestination

    osd@ceph-admin:~/.ssh$ ssh-copy-id

    adminpush configuration and client.admin key to a remote

    在deploy-admin节点上切换到osd用户,天生 无暗码的ssh key,并拷贝到每个节点上

    晋级了 2 个软件包,新装配了 0 个软件包,要卸载 0 个软件包,有 63 个软件包未被晋级

    预备:

    9、ceph node setup

    device bootstartendblocksidsystem

    root@ceph-admin:~# uname -rm

    osd@ceph:/root$ ssh osd1

    swap usage:0%

    osd@ceph-admin:~/.ssh$ cat /home/osd/.ssh/id_rsa.pub

    将会装配下列额定的软件包:

    192.168.81.139 这是一个osd1节点

    purgeremove ceph packages from remote hosts and purge all

    要是是debian7在sources.list文件顶部添加

    5、add the release key:

    hostname 172.16.66.133

    下载 343 kb,耗时 2秒 (124 kb/s)

    办理法子:

    root@ceph-osd1:~#apt-get install openssh-server

    (正在读取数据库 ... 体系当前共装配有 55918 个文件和目录)

    root@ceph-osd3:/etc/apt# apt-get update;apt-get install sudo

    you can also use the eu mirror eu.ceph.com for downloading your packages.

    正在设置 libopts25:amd64 (1:5.18-2ubuntu2) ...

    |+ =.. o|

    root@ceph:/home/osd/.ssh# vim /etc/passwd

    |o o|ceph-deploy v1.5.28

    纰漏 http://ceph.com trusty/main translation-zh

    ||

    processing triggers for ureadahead (0.100.0-16) ...

    您期望持续实行吗? [y/n] y

    ensure the ssh server is running on all ceph nodes.

    ensure that you enable the ntp service. ensure that each ceph node uses the same ntp time server. see ntp for details.

    deploy-admin节点也要装配

    trustyubuntu 14.04

    ceph官方源,支撑以下debian类linux

    eth0link encap:ethernethwaddr 00:0c:29:5f:b5:e9

    created directory '/home/osd/.ssh'.

    commanddescription

    正在预设定软件包 ...

    正在选中未遴选的软件包 ceph-deploy

    1、体系版别,我的是server版的ubuntu 14.04

    passwd: password updated successfully

    --cluster namename of the cluster

    eth0link encap:ethernethwaddr 00:0c:29:ca:dd:a4

    newstart deploying a new cluster, and write a

    openssh-client

    ceph-deploy python-setuptools

    user osd

    ssh-rsa aaaab3nzac1yc2eaaaadaqabaaabaqc8clpoluhvah2ra3upvgsds2h9bzbc5uentmudeo+wuh16gndmtzj7joriklyz5oz7pu0z7mvnbzcfli6dpckbfmj481yijhj2gebkakbznk4bnjayo8usmso6muh43vzo7+xemoclwnrwepbzzp4ynpia05qfiw8k4togyz4sva35q7batomr8zqwt3ojs4o7kwlpyr4byotjskfwas9kmuju9t4auehgzyr7lcyl5vqainljykfrpzdoqslxyjuybe3equ5htudvuvbh3/edyqfol0f5azewbbuyjx4xedn5fggp/ub2hfebbsxk6uj9pajnhzg74nyj+ho9ybid osd@ceph-admin

    每一个节点都要装配

    -q, --quietbe less verbose

    release: 14.04

    calamariinstall and configure calamari nodes. assumes that a

    办理措施:

    deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

    255 heads, 63 sectors/track, 65270 cylinders, total sectors

    deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

    主张装配的软件包:

    将会装配下列额定的软件包:

    host.

    chain input (policy accept 0 packets, 0 bytes)

    rgwceph rgw daemon management

    正预备解包 .../python-setuptools_3.3-1ubuntu2_all.deb...

    root@ceph-admin:~#

    * starting ntp server ntpd[ ok ]

    ntp-doc

    $ /sbin/ifconfig

    获取:2 http://mirrors.163.com/ubuntu/ trusty-proposed/main ntp amd64 1:4.2.6.p5+dfsg-3ubuntu2.14.04.4 [418 kb]

    root@ceph-osd1:~#apt-get install ntp

    osd@ceph-admin:~/.ssh$ ssh

    command ...

    将会装配下列额定的软件包:

    root@ceph-admin:~# su osd

    -^-

    root@ceph-osd1:/home/osd#

    /dev/sdalinux

    deb http://ceph.com/debian/ trusty main

    正在读取软件包列表... 完结

    http;www.tbplay918.com_http;www.tbplay918.com【微信快捷支付】

    正在剖析软件包的寄托联系树

    osdprepare a data disk on remote host.

    /dev/sdaextended

    正在读取状况信息... 完结

    --ceph-conf ceph_conf

    openssh-client openssh-server

    root@ceph-admin:~# wget --no-check-certificate -q -o- 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | apt-key add -

    650) this.width=650;" src="http://s3.51cto.com/wyfs02/m00/74/b1/wkiom1ymmt6dz_uwaab06ipscla420.jpg" title="ceph.png" alt="wkiom1ymmt6dz_uwaab06ipscla420.jpg" />

    memory usage: 12%ip address for eth0: 192.168.81.139

    root@ceph-osd3:~# cd /etc/apt/

    processing triggers for ufw (0.34~rc-0ubuntu2) ...

    ssh start/running, process 1433

    use (or reuse) a given ceph.conf file

    repository with calamari packages is already

    root@ceph:/home/osd/.ssh# vim /home/osd/.ssh/config

    --overwrite-confoverwrite an existing conf file on remote host (if

    http;www.tbplay918.com_http;www.tbplay918.com【微信快捷支付】

    要是你感觉sh不好用,能够新博娱乐变动为bash

    deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

    $ /sbin/ifconfig

    | .... =|

    deb http://mirrors.ustc.edu.cn/ceph/debian/ wheezy main

    http://eu.ceph.com/

    system load:0.0processes:165

    /usr/bin/ssh-copy-id: info: attempting to log in with the new key(s), to filter out any that are already installed

    gatherkeysgather authentication keys for provisioning new nodes.

    正在解包 python-setuptools (3.3-1ubuntu2) ...

    libopts25

    preparing to unpack .../ntp_1%3a4.2.6.p5+dfsg-3ubuntu2.14.04.4_amd64.deb ...

    下载 473 kb,耗时 0秒 (1,116 kb/s)

    monceph mon daemon management

    easy ceph deployment

    (正在读取数据库 ... 体系当前共装配有 56100 个文件和目录)

    root@ceph:~# su osd

    要是你的是debian7,运用官方引荐的deb http://ceph.com/debian/ wheezy main 这个源 ,

    晋级了 0 个软件包,新装配了 2 个软件包,要卸载 0 个软件包,有 65 个软件包未被晋级

    root@ceph-admin:~# ceph-deploy --help

    osd:x:1001:1001::/home/osd:/bin/bash

    description: ubuntu 14.04.3 lts

    * documentation:https://help.ubuntu.com/

    full documentation can be found at: http://ceph.com/ceph-deploy/docs

    44:3c:1b:f3:5c:38:d9:88:ba:52:1b:b8:e1:5c:02:86 osd@ceph-admin

    mdsceph mds daemon management

    debian7 的sudo疑问

    要是上面的这条指令实行犯错,请--no-check-certificate

    把在deploy-admin节点的key传给每个osds

    ssh stop/waiting

    解压缩后会耗丧掉落 1,529 kb 的额定空间

    您期望持续实行吗? [y/n] y

    graph this data and manage this system at:

    不需求暗码

    present)

    root@ceph-admin:~# wget -q -o- 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | sudo apt-key add -

    squeezedebian 6

    晋级了 0 个软件包,新装配了 2 个软件包,要卸载 0 个软件包,有 65 个软件包未被晋级

    /dev/sdalinux swap / solaris

    拷贝到每个节点

    8、[note]

    now try logging into the machine, with:"ssh ''"

    | . . . ..b o|

    's password:

    data.

    processing triggers for ureadahead (0.100.0-16) ...

    are you sure you want to continue connecting (yes/no)? yes

    configured. refer to the docs for examples

    diskmanage disks on a remote host.

    root@ceph-osd1:~# echo "osdall = (root) nopasswd:all">> /etc/sudoers.d/osd

    能够运用中科大年夜的ceph源,替换上面sources.list文件的终极一行

    ssh-askpass libpam-ssh keychain monkeysphere rssh molly-guard

    --versionthe current installed version of ceph-deploy

    wheezydebian 7

    提示:-bash: sudo: command not found

    +--[ rsa 2048]----+

    pkts bytes targetprot opt inoutsourcedestination

    中科大年夜的ceph源,支撑的debian类linux

    disk identifier: 0xe2

    enter file in which to save the key (/home/osd/.ssh/id_rsa):

    root@ceph-osd3:/etc/apt# wget -o sources.list http://mirrors.163.com/.help/sources.list.wheezy

    raringubuntu 13.04

    7、ceph

    and check to make sure that only the key(s) you wanted were added.

    deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

    +-----------------+

    osd@ceph:/root$ ssh mon

    unpacking libopts25:amd64 (1:5.18-2ubuntu2) ...

    disk /dev/sda: 536.9 gb, 00 bytes

    selecting previously unselected package ntp.

    root@ceph-osd1:/home/osd# iptables -l -nv

    osd@ceph-osd1:~/.ssh$ cat /home/osd/.ssh/authorized_keys

    root@ceph-osd1:~# chmod 0440 /etc/sudoers.d/osd

    root@ceph-osd1:~# ll /etc/sudoers.d/osd

    selecting previously unselected package libopts25:amd64.

    root@ceph-admin:~# vim /etc/apt/sources.list

    纰漏 http://ceph.com trusty/main translation-zh_cn

    host mon

    the authenticity of host '192.168.81.139 (192.168.81.139)' can't be established.

    optional arguments:

    需求下载 343 kb 的软件包

    preparing to unpack .../openssh-client_1%3a6.6p1-2ubuntu2.3_amd64.deb ...

    processing triggers for ureadahead (0.100.0-16) ...

    这篇文章出自 “生命不息
           折腾不止” 博客,谢绝转发!

    preparing to unpack .../libopts25_1%3a5.18-2ubuntu2_amd64.deb ...

    包管通讯,在admin节点 切换用户 su osd

    root@ceph-osd1:~#passwd osd

  • 相关内容

友情链接: