Ceph分布式存储安装部署过程( 四 )


[ceph_deploy.cli][INFO ] Invoked (1.5.39): /bin/ceph-deploy disk list osd-node1
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] subcommand : list
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x111dcb0>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] func : <function disk at 0x1108398>
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] disk : [('osd-node1', None, None)]
[osd-node1][DEBUG ] connection detected need for sudo
[osd-node1][DEBUG ] connected to host: osd-node1
[osd-node1][DEBUG ] detect platform information from remote host
[osd-node1][DEBUG ] detect machine type
[osd-node1][DEBUG ] find the location of an executable
[ceph_deploy.osd][INFO ] Distro info: CentOS Linux 7.4.1708 Core
[ceph_deploy.osd][DEBUG ] Listing disks on osd-node1...
[osd-node1][DEBUG ] find the location of an executable
[osd-node1][INFO ] Running command: sudo /usr/sbin/ceph-disk list
[osd-node1][DEBUG ] /dev/dm-0 other, ext4, mounted on /
[osd-node1][DEBUG ] /dev/sda :
[osd-node1][DEBUG ] /dev/sda3 other, LVM2_member
[osd-node1][DEBUG ] /dev/sda2 swap, swap
[osd-node1][DEBUG ] /dev/sda1 other, ext4, mounted on /boot
[osd-node1][DEBUG ] /dev/sdb other, unknown
[osd-node1][DEBUG ] /dev/sdc other, unknown
[osd-node1][DEBUG ] /dev/sdd other, unknown
[osd-node1][DEBUG ] /dev/sr0 other, unknown
[sysadmin@admin-node my-cluster]$
将osd节点的sdb作为日志盘
将osd节点的sdc作为数据盘并分别进行分区格式化 。使用ceph推荐的xfs文件系统和gpt分区 。
parted -a optimal --script /dev/sdc -- mktable gpt
parted -a optimal --script /dev/sdc -- mkpart primary xfs 0% 100%
mkfs.xfs /dev/sdc1
6、准备OSD磁盘
查看磁盘:
[sysadmin@admin-node my-cluster]$ ceph-deploy disk list osd-node1
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/sysadmin/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.39): /bin/ceph-deploy disk list osd-node1
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] subcommand : list
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x1580cb0>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] func : <function disk at 0x156b398>
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] disk : [('osd-node1', None, None)]
[osd-node1][DEBUG ] connection detected need for sudo
[osd-node1][DEBUG ] connected to host: osd-node1
[osd-node1][DEBUG ] detect platform information from remote host
[osd-node1][DEBUG ] detect machine type
[osd-node1][DEBUG ] find the location of an executable
[ceph_deploy.osd][INFO ] Distro info: CentOS Linux 7.4.1708 Core
[ceph_deploy.osd][DEBUG ] Listing disks on osd-node1...
[osd-node1][DEBUG ] find the location of an executable
[osd-node1][INFO ] Running command: sudo /usr/sbin/ceph-disk list
[osd-node1][DEBUG ] /dev/dm-0 other, ext4, mounted on /
[osd-node1][DEBUG ] /dev/sda :
[osd-node1][DEBUG ] /dev/sda3 other, LVM2_member
[osd-node1][DEBUG ] /dev/sda2 swap, swap
[osd-node1][DEBUG ] /dev/sda1 other, ext4, mounted on /boot
[osd-node1][DEBUG ] /dev/sdb :
[osd-node1][DEBUG ] /dev/sdb1 other, xfs
[osd-node1][DEBUG ] /dev/sdc :
[osd-node1][DEBUG ] /dev/sdc1 other, xfs
[osd-node1][DEBUG ] /dev/sdd other, unknown
[osd-node1][DEBUG ] /dev/sr0 other, unknown
[sysadmin@admin-node my-cluster]$
[sysadmin@admin-node my-cluster]$ ceph-deploy disk list osd-node2
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/sysadmin/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.39): /bin/ceph-deploy disk list osd-node2
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] subcommand : list
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x1122cb0>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] func : <function disk at 0x110d398>


推荐阅读