惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
SecWiki News
SecWiki News
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
Jina AI
Jina AI
N
Netflix TechBlog - Medium
GbyAI
GbyAI
IT之家
IT之家
Apple Machine Learning Research
Apple Machine Learning Research
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
L
Lohrmann on Cybersecurity
C
Cybersecurity and Infrastructure Security Agency CISA
I
Intezer
T
Tor Project blog
P
Palo Alto Networks Blog
P
Privacy & Cybersecurity Law Blog
P
Privacy International News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Proofpoint News Feed
T
Tailwind CSS Blog
C
Check Point Blog
Cloudbric
Cloudbric
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
Forbes - Security
Forbes - Security
Last Week in AI
Last Week in AI
S
Security Affairs
博客园 - Franky
F
Fortinet All Blogs
量子位
M
MIT News - Artificial intelligence
C
Cisco Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
S
Secure Thoughts
V
Visual Studio Blog
AI
AI
美团技术团队
B
Blog RSS Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
Engineering at Meta
Engineering at Meta
人人都是产品经理
人人都是产品经理
Microsoft Security Blog
Microsoft Security Blog
T
Threatpost
Cyberwarzone
Cyberwarzone

泠泫凝的异次元空间

通过串口安装Linux | 泠泫凝的异次元空间 curl自编译 | 泠泫凝的异次元空间 Minecraft 认证服务器代理 | 泠泫凝的异次元空间 飞塔分流配置实战 | 泠泫凝的异次元空间 Windows 安全启动证书检查 | 泠泫凝的异次元空间 Lxn-OneDriveCLI | 泠泫凝的异次元空间 华三交换机配置 ERPS 环网 | 泠泫凝的异次元空间 PVE 配置 VLAN 感知 | 泠泫凝的异次元空间 MT7922 无线网卡安装 | 泠泫凝的异次元空间 无显示输出 Linux 主机配置桌面显示 | 泠泫凝的异次元空间 Wireguard 部署 SOP 手册(自用) | 泠泫凝的异次元空间 Zabbix 7.4 通过钉钉发送告警提醒 | 泠泫凝的异次元空间 Debian with xfce 通过 VNC 共享屏幕 华三S6860 IRF堆叠 | 泠泫凝的异次元空间 iPad 应用侧载 | 泠泫凝的异次元空间 Smart DNS 分区解析 | 泠泫凝的异次元空间 建立 NFS 服务器并挂载到客户端 | 泠泫凝的异次元空间 将 Android 以 MTP 方式连接至 Debian PVE 虚拟机迁移至 vCenter | 泠泫凝的异次元空间 vCenter 虚拟机迁移至 PVE | 泠泫凝的异次元空间 PVE迁移时提示密钥验证失败 | 泠泫凝的异次元空间 修改Windows设备设置区域 | 泠泫凝的异次元空间 恢复 SecureCRT 7.x 保存的密码 | 泠泫凝的异次元空间 PVE 超融合下电与上电流程 | 泠泫凝的异次元空间 记一次Zabbix异常处理 | 泠泫凝的异次元空间 苹果设备保存SHSH2 | 泠泫凝的异次元空间 PVE超融合部署 | 泠泫凝的异次元空间 树莓派启用zram | 泠泫凝的异次元空间 在 Hyper-V 上安装 EVE-NG | 泠泫凝的异次元空间 Zabbix 部署与 Windows 硬件信息收集 | 泠泫凝的异次元空间 在WSL2中安装CUDA支持 | 泠泫凝的异次元空间 vmware 虚拟化平台备份工具 Veeam 12 安装及配置 ubuntu 24.04 安装 nVidia 驱动后网卡消失 XMRig 自编译 | 泠泫凝的异次元空间 云桌面通过组策略统一体验配置 | 泠泫凝的异次元空间 Fortigate SSLVPN 无法连接内网 VNC 服务器 CentOS 7 使用镜像作为本地源并将自身作为YUM源服务器 | 泠泫凝的异次元空间 CentOS 7 离线更新 OpenSSH 服务 使用KubeKey离线部署Kubernetes | 泠泫凝的异次元空间 使用PGP对消息进行签名 | 泠泫凝的异次元空间 禁止MinIO展示桶内文件列表 | 泠泫凝的异次元空间 华为 Fusion Access 云桌面部署 | 泠泫凝的异次元空间 vmware Horizon 模板机部署 | 泠泫凝的异次元空间 vmware Horizon 云桌面与云应用部署 | 泠泫凝的异次元空间 Citrix XenApp 云应用交付 | 泠泫凝的异次元空间 Citrix XenDesktop 云桌面部署 | 泠泫凝的异次元空间 PVE LVM 扩容 | 泠泫凝的异次元空间 Linux 网络聚合(bond方式) | 泠泫凝的异次元空间 Citrix XenServer 7.2 部署教程 | 泠泫凝的异次元空间 在 Windows Server 2019 上安装 AMD 显卡驱动 openEuler 安装并使用 EPEL 源 | 泠泫凝的异次元空间 从已有Linux系统创建带桌面环境的Docker镜像 | 泠泫凝的异次元空间 下载联想原厂镜像及解密 | 泠泫凝的异次元空间 在基于 arm 架构的服务器上安装 PVE | 泠泫凝的异次元空间 自制 EVE-NG 镜像 | 泠泫凝的异次元空间 不使用 Snap 在 ubuntu 上安装 Chromium 浏览器 Fortigate 6.2 固件从 PPPoE 获得 IPv6 地址 Fortigate 手记 | 泠泫凝的异次元空间 Fortigate 通过命令行自定义 NTP 服务器 | 泠泫凝的异次元空间 arm 架构 CentOS 7 安装 MySQL 5.7 版本 ubuntu 20 安装计算卡驱动和 CUDA Toolkit 锐捷诺客云添加设备后一直显示“等待同步” | 泠泫凝的异次元空间 Windows 10 自动登录 | 泠泫凝的异次元空间 OpenWRT IPv6 防火墙设置 | 泠泫凝的异次元空间 k8s 部署踩坑合集 | 泠泫凝的异次元空间 改变 Ubuntu TTY 终端字体 | 泠泫凝的异次元空间 Parted 无损扩容磁盘分区 | 泠泫凝的异次元空间 NTP服务器测试 | 泠泫凝的异次元空间 【相亲相爱】2024祝大家!新年快乐!!! ESXi中重新挂载数据盘 | 泠泫凝的异次元空间 使用 MediaMTX + RTSP 搭建低延迟直播服务器 Firewalld 手记 | 泠泫凝的异次元空间 Ubuntu 上不使用 snapd 安装 Firefox 在 armbian 上安装 xfce 和 VNC 做远程桌面 在 ubuntu 20 上使用 TigerVNC 做远程桌面 在 openEuler 上部署安装 openGauss | 泠泫凝的异次元空间 Wireguard 组网笔记 | 泠泫凝的异次元空间 让特定IP(段)走VPN连接 | 泠泫凝的异次元空间 在Wireguard中排除部分IP(段) | 泠泫凝的异次元空间 CentOS 7 上升级 OpenSSL | 泠泫凝的异次元空间 将黑群晖部署到ESXi(笔记) | 泠泫凝的异次元空间 apk 代码反编译笔记 | 泠泫凝的异次元空间 Windows 搭建 iSCSI 服务器全攻略 | 泠泫凝的异次元空间 CentOS 7 编译安装 Python 3 开源语音识别工具 Whisper | 泠泫凝的异次元空间 Ubuntu 下 Python 编译安装及关联问题解决 | 泠泫凝的异次元空间 Ansible Tower 安装 | 泠泫凝的异次元空间 提高 PowerPoint 导出到图片时的分辨率 | 泠泫凝的异次元空间 利用亚马逊云服务器和VPC 构建安全可靠的虚拟网络 | 泠泫凝的异次元空间 Windows Server 多网卡链路聚合 | 泠泫凝的异次元空间 MT3000路由+移远EC20模块体验 | 泠泫凝的异次元空间 Python安装依赖时出现ctype问题 | 泠泫凝的异次元空间 GL-MT3000日用设置 | 泠泫凝的异次元空间 解除 vCenter 的最低内存限制 | 泠泫凝的异次元空间 跳过Windows 11的强制联网和账户登录 | 泠泫凝的异次元空间 Cloudflare Trace API 信息详解 | 泠泫凝的异次元空间 在CentOS中搭建由nginx反代和Apache2作为后端的Wordpress | 泠泫凝的异次元空间 通过nginx进行文件共享 | 泠泫凝的异次元空间 禁用 sudo 时密码认证 | 泠泫凝的异次元空间 在docker中一键搭建IPSec/IKEv2 VPN | 泠泫凝的异次元空间
MinIO 集群部署 | 泠泫凝的异次元空间
Lxn's Area · 2025-07-19 · via 泠泫凝的异次元空间

部署一个MinIO集群,个人记录。

规划

首先准备好数个节点,官方要求不低于4个节点,各节点间时间同步,且建议节点数量为偶数,我这里使用6个节点,系统为CentOS 7(官方现已不再支持内核较低的版本,我这里只是测试就无所谓了)。前端由单独的机器做ubuntu 24.04起HAProxy做L4负载均衡。

同时为了防止存储内部传输对业务网络造成影响,存储仅配置L2网络用于局域网通信。

节点上提前做好硬盘的挂载,建议将数据放置在单独的硬盘上。

注意:
MinIO 分布式集群的拓扑是“静态”的,不能动态添加节点或磁盘,如果需要更改拓扑,则必须重建集群。
因此请务必在正式开始建设前确定好稳定的拓扑和架构,一旦集群创建并有数据写入后,整个拓扑就不再能添加节点或磁盘了。

部署

  1. 下载MinIO到本机,目前的话RELEASE.2025-04-22T22-12-26Z是最后一个内置WebUI面板的版本
    1
    2
    wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio.RELEASE.2025-04-22T22-12-26Z -O minio
    chmod +x minio
    测试有效性,直接执行如下指令:
    1
    ./minio server --address '0.0.0.0:9000' --console-address '0.0.0.0:9001' /storage0/
    正常应该可以访问http://0.0.0.0:9001到MinIO的控制面板,能够访问后按下Ctrl+C,kill掉当前minio进程。
  2. 禁用IPv6
    将如下配置项写入/etc/sysctl.conf
    1
    2
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    然后应用:
    1
    sysctl -p
  3. 写hosts文件
    1
    2
    3
    4
    5
    6
    30.20.10.11 storNode01
    30.20.10.12 storNode02
    30.20.10.13 storNode03
    30.20.10.14 storNode04
    30.20.10.15 storNode05
    30.20.10.16 storNode06
  4. 写SystemD配置文件
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    [Unit]
    Description=MinIO
    After=network.target

    [Service]
    Environment="MINIO_ROOT_USER=lxnchan"
    Environment="MINIO_ROOT_PASSWORD=lxnchanminioadmin"
    ExecStart=/root/minio server http://stornode0{1...6}/storage0 --address '0.0.0.0:9000' --console-address '0.0.0.0:9001'
    Restart=always
    LimitNOFILE=1048576
    TasksMax=infinity
    TimeoutStopSec=infinity
    SendSIGKILL=no

    [Install]
    WantedBy=multi-user.target
    注意修改MINIO_ROOT_USERMINIO_ROOT_PASSWORD
  5. hostsminio.service同步到剩余节点
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    scp /etc/hosts root@30.20.10.12:/etc/hosts
    scp /etc/systemd/system/minio.service root@30.20.10.12:/etc/systemd/system/minio.service
    scp /etc/hosts root@30.20.10.13:/etc/hosts
    scp /etc/systemd/system/minio.service root@30.20.10.13:/etc/systemd/system/minio.service
    scp /etc/hosts root@30.20.10.14:/etc/hosts
    scp /etc/systemd/system/minio.service root@30.20.10.14:/etc/systemd/system/minio.service
    scp /etc/hosts root@30.20.10.15:/etc/hosts
    scp /etc/systemd/system/minio.service root@30.20.10.15:/etc/systemd/system/minio.service
    scp /etc/hosts root@30.20.10.16:/etc/hosts
    scp /etc/systemd/system/minio.service root@30.20.10.16:/etc/systemd/system/minio.service
  6. 所有节点起MinIO:
    1
    systemctl enable --now minio
    最后访问任一节点IP都可以访问到MinIO,如果访问不到看一下日志。

HAProxy

  1. 安装HAProxy
    1
    sudo apt update && apt install haproxy -y
  2. 创建CA证书
    因为我这里的业务要求强制使用HTTPS方式链接,因此我这里先本地自签个SSL证书。
    1
    2
    3
    4
    openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
    -keyout private.key -out public.crt \
    -subj "/C=CN/ST=Tianjin/L=Tianjin/O=LxnChan/OU=IT/CN=30.20.10.10" \
    -addext "subjectAltName=IP:30.20.10.10,DNS:storl4lb"
    然后将两个证书和密钥合成一个文件,以便给HAProxy使用:
    1
    cat public.crt private.key > haproxy.pem
  3. 写入配置文件
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    frontend minio_frontend
    #bind *:80
    bind *:443 ssl crt /root/certs/minio.pem
    mode tcp
    default_backend minio_backend

    backend minio_backend
    # Layer7
    #mode http
    #balance roundrobin
    #option httpchk GET /minio/health/ready
    #http-check expect status 200

    # Layer4
    mode tcp
    balance roundrobin
    option tcp-check
    tcp-check connect

    # server [name] [source] [check or empty]
    server minio1 stornode01:9000 check
    server minio2 stornode02:9000 check
    server minio3 stornode03:9000 check
    server minio4 stornode04:9000 check
    server minio5 stornode05:9000 check
    server minio6 stornode06:9000 check
    测试配置文件是否有效:
    1
    2
    root@storl4lb:~# haproxy -c -f /etc/haproxy/haproxy.cfg
    Configuration file is valid
    重启HAProxy以应用配置文件:
    1
    systemctl restart haproxy

 上一篇

Windows Linux ubuntu Debian