[root@stor02 ~]#ceph -s 【查看是否开始同步】
集群内任意存储节点上都可以执行【包括mon节点】
[root@stor02 ~]# ceph osd unset noout
[root@stor02 ~]# ceph osd unset nodeep-scrub
【mount节点执行】【操作6】
[root@controller01 ~]# ssh 【mon节点IP】
root@10.'s password:
Last login: Mon Mar 29 21:06:43 2021 from controller01
Authorized users only. All activity may be monitored and reported
[root@stor02 ~]# pwd
/root
[root@stor02 ~]# ceph-deploy --overwrite-conf osd prepare stor07:/dev/sda1:/dev/sdg3
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.31): /usr/bin/ceph-deploy --overwrite-conf osd prepare stor07:/dev/sda1:/dev/sdg3
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] disk : [(‘stor07’, ‘/dev/sda1’, ‘/dev/sdg3’)]
[ceph_deploy.cli][INFO ] dmcrypt : False
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] overwrite_conf : True
[ceph_deploy.cli][INFO ] subcommand : prepare
[ceph_deploy.cli][INFO ] dmcrypt_key_dir : /etc/ceph/dmcrypt-keys
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x3fff8442e5f0>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] fs_type : xfs
[ceph_deploy.cli][INFO ] func : <function osd at 0x3fff84424cf8>
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] zap_disk : False
[ceph_deploy.osd][DEBUG ] Preparing cluster ceph disks stor07:/dev/sda1:/dev/sdg3
Authorized users only. All activity may be monitored and reported
Authorized users only. All activity may be monitored and reported
[stor07][DEBUG ] connected to host: stor07
[stor07][DEBUG ] detect platform information from remote host
[stor07][DEBUG ] detect machine type
[stor07][DEBUG ] find the location of an executable
[ceph_deploy.osd][INFO ] Distro info: Red Hat Enterprise Linux Server 7.3 Maipo
[ceph_deploy.osd][DEBUG ] Deploying osd to stor07
[stor07][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[ceph_deploy.osd][DEBUG ] Preparing host stor07 disk /dev/sda1 journal /dev/sdg3 activate False
[stor07][INFO ] Running command: ceph-disk -v prepare --cluster ceph --fs-type xfs – /dev/sda1 /dev/sdg3
[stor07][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=fsid
[stor07][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mkfs_options_xfs
[stor07][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_mount_options_xfs
[stor07][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-osd --cluster=ceph --show-config-value=osd_journal_size
[stor07][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_cryptsetup_parameters
[stor07][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_dmcrypt_key_size
[stor07][WARNIN] INFO:ceph-disk:Running command: /usr/bin/ceph-conf --cluster=ceph --name=osd. --lookup osd_dmcrypt_type
[stor07][WARNIN] DEBUG:ceph-disk:Journal /dev/sdg3 is a partition
[stor07][WARNIN] WARNING:ceph-disk:OSD will not be hot-swappable if journal is not the same device as the osd data
[stor07][WARNIN] INFO:ceph-disk:Running command: /usr/sbin/blkid -p -o udev /dev/sdg3
[stor07][WARNIN] WARNING:ceph-disk:Journal /dev/sdg3 was not prepared with ceph-disk. Symlinking directly.
[stor07][WARNIN] DEBUG:ceph-disk:OSD data device /dev/sda1 is a partition
[stor07][WARNIN] DEBUG:ceph-disk:Creating xfs fs on /dev/sda1
[stor07][WARNIN] INFO:ceph-disk:Running command: /usr/sbin/mkfs -t xfs -f -f – /dev/sda1
[stor07][DEBUG ] meta-data=/dev/sda1 isize=512 agcount=32, agsize=45780928 blks
[stor07][DEBUG ] = sectsz=4096 attr=2, projid32bit=1
[stor07][DEBUG ] = crc=1 finobt=0, sparse=0
[stor07][DEBUG ] data = bsize=4096 blocks=1464989696, imaxpct=5
[stor07][DEBUG ] = sunit=64 swidth=64 blks
[stor07][DEBUG ] naming =version 2 bsize=4096 ascii-ci=0 ftype=1
[stor07][DEBUG ] log =internal log bsize=4096 blocks=521728, version=2
[stor07][DEBUG ] = sectsz=4096 sunit=1 blks, lazy-count=1
[stor07][DEBUG ] realtime =none extsz=4096 blocks=0, rtextents=0
[stor07][WARNIN] DEBUG:ceph-disk:Mounting /dev/sda1 on /var/lib/ceph/tmp/mnt.N0i3Ne with options
rw,noexec,nodev,noatime,nodiratime,nobarrier
[stor07][WARNIN] INFO:ceph-disk:Running command: /usr/bin/mount -t xfs -o r