hci_ceph安装过程
auto lo
iface lo inet loopback
auto enp50s0f0
iface enp50s0f0 inet static
address 192.168.1.6
netmask 255.255.255.0
iface enp46s0f1 inet manual
iface enp0s20f0u1u6 inet manual
iface enp50s0f1 inet manual
iface enp50s0f2 inet manual
iface enp50s0f3 inet manual
iface enp28s0f0 inet manual
iface enp28s0f1 inet manual
iface enp46s0f0 inet manual
auto bond0
iface bond0 inet manual
bond-slaves enp28s0f0 enp46s0f0
bond-miimon 100
bond-mode balance-rr
auto bond0.7
iface bond0.7 inet manual
auto bond0.8
iface bond0.8 inet manual
auto bond1
iface bond1 inet static
address 192.168.3.6
netmask 255.255.255.0
bond-slaves enp28s0f1 enp46s0f1
bond-miimon 100
bond-mode balance-rr
auto vmbr8
iface vmbr8 inet manual
bridge-ports bond0.8
bridge-stp off
bridge-fd 0
auto vmbr7
iface vmbr7 inet static
address 192.168.7.206
netmask 255.255.255.0
gateway 192.168.7.254
bridge-ports bond0.7
bridge-stp off
bridge-fd 0
----------------------------------------------
rm -rf /etc/apt/sources.list.d/pve-enterprise.list
添加社区源
wget -q -O- 'http://download.proxmox.com/debian/pve/dists/stretch/proxmox-ve-release-5.x.gpg' | apt-key add -
echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
debian源改为阿里源
> /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian stretch main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free
deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free
apt clean all 没有用
apt update && apt dist-upgrade -y
这一步较慢,主要是pve-kernel,用了1个半小时,平均20kB/s,下午15:00-17:00
还有就是ceph-common,ceph-mon,ceph-osd也较慢,平均20kB/s
ceph版本是12.2.12
pve版本是5.4-4
慢的原因主要是这个网站的问题http://download.proxmox.com/debian/ceph-luminous stretch/main
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
root@pve04:~# gdisk /dev/sdk
GPT fdisk (gdisk) version 1.0. Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present Found valid GPT with protective MBR; using GPT. Command (? for help): p
Disk /dev/sdk: sectors, 119.2 GiB
Logical sector size: bytes
Disk identifier (GUID): ADDBB660-E1C5--A896-E55C3556BF6D
Partition table holds up to entries
First usable sector is , last usable sector is
Partitions will be aligned on -sector boundaries
Total free space is sectors ( bytes) Number Start (sector) End (sector) Size Code Name
1007.0 KiB EF02
512.0 MiB EF00
118.7 GiB 8E00 root@cu-pve05:~# gdisk /dev/sdk
GPT fdisk (gdisk) version 1.0. Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present Found valid GPT with protective MBR; using GPT. Command (? for help): p
Disk /dev/sdk: sectors, 119.2 GiB
Logical sector size: bytes
Disk identifier (GUID): FE3DB5F2--48C3-BF94-E3AC1A59C97A
Partition table holds up to entries
First usable sector is , last usable sector is
Partitions will be aligned on -sector boundaries
Total free space is sectors ( bytes) Number Start (sector) End (sector) Size Code Name
1007.0 KiB EF02
512.0 MiB EF00
118.7 GiB 8E00 Command (? for help): root@pve04:~#
sdk : .2G disk
├─sdk1 : 1007K part
├─sdk2 : 512M part /boot/efi
└─sdk3 : .7G part
├─pve-swap : 8G lvm [SWAP]
├─pve-root : .5G lvm /
├─pve-data_tmeta : 1G lvm
│ └─pve-data : .4G lvm
└─pve-data_tdata : .4G lvm
└─pve-data : .4G lvm root@cu-pve05:~#
sdk : .2G disk
├─sdk1 : 1007K part
├─sdk2 : 512M part /boot/efi
└─sdk3 : .7G part
├─pve-swap : 8G lvm [SWAP]
├─pve-root : .5G lvm /
├─pve-data_tmeta : 1G lvm
│ └─pve-data : .4G lvm
└─pve-data_tdata : .4G lvm
└─pve-data : .4G lvm root@cu-pve06:~#
sdk : .2G disk
├─sdk1 : 1007K part
├─sdk2 : 512M part /boot/efi
└─sdk3 : .7G part
├─pve-swap : 8G lvm [SWAP]
├─pve-root : .5G lvm /
├─pve-data_tmeta : 1G lvm
│ └─pve-data : .4G lvm
└─pve-data_tdata : .4G lvm
└─pve-data : .4G lvm
清除磁盘分区,以便在web界面上能看到osd,因为之前做过,所以再次做的时候会有这个问题
ceph-disk list
ceph-disk zap /dev/sd[abcdefghij]
root@cu-pve04:~# ceph-disk list
/dev/dm- swap, swap
/dev/dm- other, xfs, mounted on /
/dev/dm- other, unknown
/dev/dm- other, unknown
/dev/dm- other, unknown
/dev/loop0 other, unknown
/dev/loop1 other, unknown
/dev/loop2 other, unknown
/dev/loop3 other, unknown
/dev/loop4 other, unknown
/dev/loop5 other, unknown
/dev/loop6 other, unknown
/dev/loop7 other, unknown
/dev/sda :
/dev/sda1 ceph block.db, for /dev/sdb1
/dev/sda2 ceph block.db, for /dev/sdc1
/dev/sda3 ceph block.db, for /dev/sde1
/dev/sda4 ceph block.db, for /dev/sdf1
/dev/sdb :
/dev/sdb1 ceph data, prepared, unknown cluster 439800b8-b1cd-43bd-b365-8f7b33ba5994, osd., block /dev/sdb2, block.db /dev/sda1
/dev/sdb2 ceph block, for /dev/sdb1
/dev/sdc :
/dev/sdc1 ceph data, prepared, unknown cluster 439800b8-b1cd-43bd-b365-8f7b33ba5994, osd., block /dev/sdc2, block.db /dev/sda2
/dev/sdc2 ceph block, for /dev/sdc1
/dev/sdd :
/dev/sdd1 ceph block.db, for /dev/sdg1
/dev/sdd2 ceph block.db, for /dev/sdh1
/dev/sdd3 ceph block.db, for /dev/sdi1
/dev/sdd4 ceph block.db, for /dev/sdj1
/dev/sde :
/dev/sde1 ceph data, prepared, unknown cluster 439800b8-b1cd-43bd-b365-8f7b33ba5994, osd., block /dev/sde2, block.db /dev/sda3
/dev/sde2 ceph block, for /dev/sde1
/dev/sdf :
/dev/sdf1 ceph data, prepared, unknown cluster 439800b8-b1cd-43bd-b365-8f7b33ba5994, osd., block /dev/sdf2, block.db /dev/sda4
/dev/sdf2 ceph block, for /dev/sdf1
/dev/sdg :
/dev/sdg1 ceph data, prepared, unknown cluster 439800b8-b1cd-43bd-b365-8f7b33ba5994, osd., block /dev/sdg2, block.db /dev/sdd1
/dev/sdg2 ceph block, for /dev/sdg1
/dev/sdh :
/dev/sdh1 ceph data, prepared, unknown cluster 439800b8-b1cd-43bd-b365-8f7b33ba5994, osd., block /dev/sdh2, block.db /dev/sdd2
/dev/sdh2 ceph block, for /dev/sdh1
/dev/sdi :
/dev/sdi1 ceph data, prepared, unknown cluster 439800b8-b1cd-43bd-b365-8f7b33ba5994, osd., block /dev/sdi2, block.db /dev/sdd3
/dev/sdi2 ceph block, for /dev/sdi1
/dev/sdj :
/dev/sdj1 ceph data, prepared, unknown cluster 439800b8-b1cd-43bd-b365-8f7b33ba5994, osd., block /dev/sdj2, block.db /dev/sdd4
/dev/sdj2 ceph block, for /dev/sdj1
/dev/sdk :
/dev/sdk1 other, --6e6f-744e-
/dev/sdk2 other, vfat, mounted on /boot/efi
/dev/sdk3 other, LVM2_member
root@cu-pve04:~#
-------------------------------------------------------------------------- 清除原有分区表
root@cu-pve05:~# ceph-disk zap /dev/sd[abcdefghij]
root@cu-pve04:~# ceph-disk zap /dev/sdb
+ records in
+ records out
bytes ( MB, MiB) copied, 0.989543 s, MB/s
/dev/sdb1: bytes were erased at offset 0x00000000 (xfs):
+ records in
+ records out
bytes ( MB, MiB) copied, 0.475141 s, MB/s
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header. Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables. Warning! One or more CRCs don't match. You should repair the disk! ****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries.
The operation has completed successfully.
root@cu-pve04:~# -------------------------------------------------------------------------- web界面上创建osd的日志
create OSD on /dev/sdb (bluestore)
using device '/dev/sda' for block.db
wipe disk/partition: /dev/sdb
+ records in
+ records out
bytes ( MB, MiB) copied, 0.921603 s, MB/s
Creating new GPT entries.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries.
The operation has completed successfully.
Setting name!
partNum is
REALLY setting name!
The operation has completed successfully.
prepare_device: OSD will not be hot-swappable if block.db is not the same device as the osd data
Setting name!
partNum is
REALLY setting name!
The operation has completed successfully.
The operation has completed successfully.
Setting name!
partNum is
REALLY setting name!
The operation has completed successfully.
The operation has completed successfully.
meta-data=/dev/sdb1 isize= agcount=, agsize= blks
= sectsz= attr=, projid32bit=
= crc= finobt=, sparse=, rmapbt=, reflink=
data = bsize= blocks=, imaxpct=
= sunit= swidth= blks
naming =version bsize= ascii-ci= ftype=
log =internal log bsize= blocks=, version=
= sectsz= sunit= blks, lazy-count=
realtime =none extsz= blocks=, rtextents=
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot or after you
run partprobe() or kpartx()
The operation has completed successfully.
TASK OK 创建8个osd,一个ssd缓存盘对应4个hdd数据盘。
-------------------------------------------------------------------------- root@cu-pve04:~# ceph-disk list
/dev/dm- swap, swap
/dev/dm- other, xfs, mounted on /
/dev/dm- other, unknown
/dev/dm- other, unknown
/dev/dm- other, unknown
/dev/loop0 other, unknown
/dev/loop1 other, unknown
/dev/loop2 other, unknown
/dev/loop3 other, unknown
/dev/loop4 other, unknown
/dev/loop5 other, unknown
/dev/loop6 other, unknown
/dev/loop7 other, unknown
/dev/sda :
/dev/sda1 ceph block.db, for /dev/sdb1
/dev/sda2 ceph block.db, for /dev/sdc1
/dev/sda3 ceph block.db, for /dev/sde1
/dev/sda4 ceph block.db, for /dev/sdf1
/dev/sdb :
/dev/sdb1 ceph data, active, cluster ceph, osd., block /dev/sdb2, block.db /dev/sda1
/dev/sdb2 ceph block, for /dev/sdb1
/dev/sdc :
/dev/sdc1 ceph data, active, cluster ceph, osd., block /dev/sdc2, block.db /dev/sda2
/dev/sdc2 ceph block, for /dev/sdc1
/dev/sdd :
/dev/sdd1 ceph block.db, for /dev/sdg1
/dev/sdd2 ceph block.db, for /dev/sdh1
/dev/sdd3 ceph block.db, for /dev/sdi1
/dev/sdd4 ceph block.db, for /dev/sdj1
/dev/sde :
/dev/sde1 ceph data, active, cluster ceph, osd., block /dev/sde2, block.db /dev/sda3
/dev/sde2 ceph block, for /dev/sde1
/dev/sdf :
/dev/sdf1 ceph data, active, cluster ceph, osd., block /dev/sdf2, block.db /dev/sda4
/dev/sdf2 ceph block, for /dev/sdf1
/dev/sdg :
/dev/sdg1 ceph data, active, cluster ceph, osd., block /dev/sdg2, block.db /dev/sdd1
/dev/sdg2 ceph block, for /dev/sdg1
/dev/sdh :
/dev/sdh1 ceph data, active, cluster ceph, osd., block /dev/sdh2, block.db /dev/sdd2
/dev/sdh2 ceph block, for /dev/sdh1
/dev/sdi :
/dev/sdi1 ceph data, active, cluster ceph, osd., block /dev/sdi2, block.db /dev/sdd3
/dev/sdi2 ceph block, for /dev/sdi1
/dev/sdj :
/dev/sdj1 ceph data, active, cluster ceph, osd., block /dev/sdj2, block.db /dev/sdd4
/dev/sdj2 ceph block, for /dev/sdj1
/dev/sdk :
/dev/sdk1 other, --6e6f-744e-
/dev/sdk2 other, vfat, mounted on /boot/efi
/dev/sdk3 other, LVM2_member
root@cu-pve04:~#
hci_ceph安装过程的更多相关文章
- webstorm下载&&安装过程&&打开项目
一.webstorm下载 WebStorm 是jetbrains公司旗下一款JavaScript 开发工具.被广大中国JS开发者誉为"Web前端开发神器"."最强大的HT ...
- vagrant 1.8.6 安装过程及总结遇到的坑
下面先总结遇到的问题,这些问题如果你也遇到,可能需要搜索很多次才能找到原因. 如果想看安装过程,可以先直接跳到后面第二部分部分. 1 问题汇总: 1.1 vagrant版本过高问题. vagrant ...
- 安装过程错误[INS-30131]
问题:Oracle Database 安装过程错误[INS-30131] 原因:安装用户没有对临时文件夹的读写权限 解决方案: 1.以管理员身份运行cmd.exe 2.输入命令(需启动Se ...
- TortoiseGIT的安装过程详解
TortoiseGIT简介 TortoiseGIT 是Git版本控制系统的一个免费开源客户端,它是git版本控制的 Windows 扩展.可以使你避免使用枯燥而且不方便的命令行.它完全嵌入 Windo ...
- RabbitMQ 集群安装过程详解
一.安装Erlang 1.rabbitMQ是基于erlang的,所以首先必须配置erlang环境. 从erlang官网下载 otp 18.3.下载链接:http://erlang.org/downlo ...
- JAVA安装过程中出现的“javac不是内部或外部指令”的解决方法
近来重新安装了JAVA,安装过程中出现问题,网上找到解决办法,汇总发布. 解决流程: 1.确定自己的环境变量设置没问题,没有出现遗漏 : . 等情况 (具体环境变量设置百度) 2.环境变量设置后 ,d ...
- LNMP安装过程
LNMP一键安装包是什么? LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat/Fedora.Debian/Ubuntu/Raspbian/Deepin VPS或独 ...
- hbase 1.1.7在centor6.5安装过程
1.自己安装的最新版一直没成功,换成了1.1.7稳定版的.中间遇到的问题记录下 1) jdk 用的1.7版本的,安装过程省略. 2)下载hbase zip包:https://mirrors.tuna ...
- 2016最新cocoapods安装流程,安装过程中遇到的问题及解决方法
现在的cocoapods与之前比较.有很多不一样的地方.自己试了一试,终于搞定.现在大概纪录一下. 1.首先查看ruby是否是最新版的. ruby是通过rvm安装的所以需要先安装rvm后查看ruby是 ...
随机推荐
- CentOS7 图形化方式安装Oracle 18c 安装配置
下载 Oracle 数据库,zip 包 https://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.h ...
- ReplicatorLayer 复制图层
使用文档介绍: #import <QuartzCore/CALayer.h> NS_ASSUME_NONNULL_BEGIN CA_CLASS_AVAILABLE (10.6, 3.0, ...
- USACO 5.5 章节
Picture 题目大意 IOI 1998 求n (<=5000)个矩形 覆盖的图形 的周长(包括洞), 坐标范围[-10000,10000] 题解 一眼离散化+2维线段树,但仔细一想 空间不太 ...
- VB - FSO的常见对象和方法
1. set fs=wscript.createobject(“scripting.filesystemobject”) 这样就建立了fso的模型.如果要释放的话也很简单, set fs=nothin ...
- Java组合实体模式~
组合实体模式用于EJB持久化机制. 组合实体是表示对象图的EJB实体bean. 当组合实体更新时,内部依赖对象bean将自动更新为由EJB实体bean管理. 以下是组合实体Bean的参与者. 组合实体 ...
- scrapy错误-[scrapy.core.scraper] ERROR: Spider error processing
一.问题,就是我的callback没得回调函数 二:然后我查看源代码,发现: 三.我把解析页数的函数名设置为,def parse(self,response): 就没保错了 能运行成功 总结:在sp ...
- 这么简单的 Redis 面试题都不懂,怎么拿offer?
来源:mp.weixin.qq.com/s/daBkliC8dAT_zYyoLiS7WA 随着系统访问量的提高,复杂度的提升,响应性能成为一个重点的关注点.而缓存的使用成为一个重点.redis 作为缓 ...
- Scrapy框架: 通用爬虫之CrawlSpider
步骤01: 创建爬虫项目 scrapy startproject quotes 步骤02: 创建爬虫模版 scrapy genspider -t quotes quotes.toscrape.com ...
- 在$CF$水题の记录
CF1158C CF1163E update after CF1173 很好,我!expert!掉rating了!! 成为pupil指日可待== 下次要记得合理安排时间== ps.一道题都没写的\(a ...
- 编译Linux-2.6.23内核中遇见的错误
编译linux-2.6.23 错误[1]: elf_x86_64: 没有那个文件或目录 原因是 gcc 4.6 不再支持 linker-style 架构.在 arch/x86/vdso/Makefil ...