Skip to content

Commit

Permalink
Update proxmox.rst (#232)
Browse files Browse the repository at this point in the history
* Update proxmox.rst

ceph for pve8

* Update proxmox.rst

* Update proxmox.rst

* Update proxmox.rst

sed只适合未修改过的原始source文件,如果之前已修改为其他mirror,这个代码更普适

* proxmox: polish description about ceph repo

* proxmox: update ceph description

ceph is installed by default after PVE 8

---------

Co-authored-by: taoky <[email protected]>
  • Loading branch information
berlin2123 and taoky authored Aug 15, 2023
1 parent 63ed69a commit 1820699
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/proxmox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ Debian,Proxmox

对于 Proxmox Backup Server 和 Proxmox Mail Gateway,请将以上命令中的 ``pve`` 分别替换为 ``pbs`` 和 ``pmg``。

PVE 8 之后默认安装 ceph 仓库源文件 ``/etc/apt/sources.list.d/ceph.list``,可以使用如下命令更换源:

::

if [ -f /etc/apt/sources.list.d/ceph.list ]; then CEPH_CODENAME=`ceph -v | grep ceph | awk '{print $(NF-1)}'`; source /etc/os-release; echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-$CEPH_CODENAME $VERSION_CODENAME no-subscription" > /etc/apt/sources.list.d/ceph.list; fi


更改完 :file:`sources.list` 文件后请运行 ``apt update`` 更新索引以生效。


Expand Down

0 comments on commit 1820699

Please sign in to comment.