Last active
October 18, 2025 23:10
-
-
Save scyto/8c652f3eab61ed1fa2f980d02a484c35 to your computer and use it in GitHub Desktop.
Revisions
-
scyto revised this gist
Apr 24, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ All installation done via command line due to gui not understanding the mesh net This setup doesn't attempt to seperate the ceph public network and ceph cluster network (not same as proxmox clutser network), The goal is to get an easy working setup. **2025.04.24 NOTE: some folks had to switch to IPv6 for ceph due to IPv4 unreliability issues, we think as of pve 8.4.1 and all the input the community has give to update this set of gsists - that IPv4 is now reliable even on MS-01. As such i advising everyone to use IPv4 for ceph as if you have IPv6 you will have issues with SDN at this time (if you don't use SDN this is not an issue). [this gist is part of this series](/76e94832927a89d977ea989da157e9dc) -
scyto revised this gist
Apr 24, 2025 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,8 @@ All installation done via command line due to gui not understanding the mesh net This setup doesn't attempt to seperate the ceph public network and ceph cluster network (not same as proxmox clutser network), The goal is to get an easy working setup. **2025.04.24 NOTE: some folks had tio switch to IPv6 due to IPv4 unreliability issues, we think as of pve 8.4.1 and all the input the community has give the IPv4 is now reliable even on MS-01. As such i advise everyone to use IPv4 for ceph as if you have IPv6 you will have issues with SDN at this time (if you don't use SDN this is not an issue [this gist is part of this series](/76e94832927a89d977ea989da157e9dc) ## Ceph Initial Install & monitor creation -
scyto revised this gist
Apr 21, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -66,7 +66,7 @@ Requires=frr.service [Install] WantedBy=multi-user.target ``` note: i need to revise this as this file could be overwritten on upgrade) ## make sure VMs don't try and start before ceph service is present ### note this will stop any VMs on local storage starting too - just be aware -
scyto revised this gist
Apr 20, 2025 . 1 changed file with 18 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -67,3 +67,21 @@ Requires=frr.service WantedBy=multi-user.target ``` (the after and requires lines are the inserts) ## make sure VMs don't try and start before ceph service is present ### note this will stop any VMs on local storage starting too - just be aware 1. make a directory `mkdir /etc/systemd/system/pvestatd.service.d` 2. create a file in `nano /etc/systemd/system/pvestatd.service.d/dependencies.conf` 3. add to file the following ``` [Unit] After=pve-storage.target ``` 4. save (note i am ucnlear if this currently works despite this being the recommended answer) -
scyto revised this gist
Apr 20, 2025 . 1 changed file with 16 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,4 +50,20 @@ If you find there are no availale disks when you try to add it probably means yo 3. Set `HA Settings` to `shutdown_policy=migrate` (this will migrate VMs and CTs if you gracefully shutdown a node). 4. Set `migration settings` leave as default (seperate gist will talk about seperating migration network later) ## make ceph hard dependent on frr service (added 2025.04.20) this is my blind attempt at ensuring ceph doesn't try and start until frr service is up - i don't have any tests in the startup to make sure the interfaces are up so it may not make too much diff to MS-01 users. but anyhoo here it is... edit `/usr/lib/systemd/system/ceph.target` to look like this ``` [Unit] Description=ceph target allowing to start/stop all ceph*@.service instances at once After=frr.service Requires=frr.service [Install] WantedBy=multi-user.target ``` (the after and requires lines are the inserts) -
scyto revised this gist
Sep 30, 2023 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ # CEPH HA Setup **Note this should only be done once you are sure you have reliable TB mesh network.** this is because proxmox UI seems fragile wrt to changing underlying network after configuration of ceph. All installation done via command line due to gui not understanding the mesh network -
scyto revised this gist
Sep 30, 2023 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,8 @@ # CEPH HA Setup **Note this should only be done once you are sure you have reliable TB mesh network.** this is because proxmox UI seems fragile wrt to changing underlying network after configuration of ceph. All installation done via command line due to gui not understanding the mesh network This setup doesn't attempt to seperate the ceph public network and ceph cluster network (not same as proxmox clutser network), The goal is to get an easy working setup. -
scyto revised this gist
Sep 22, 2023 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,8 @@ all installation done via command line due to gui not understanding the mesh net This setup doesn't attempt to seperate the ceph public network and ceph cluster network (not same as proxmox clutser network), The goal is to get an easy working setup. [this gist is part of this series](/76e94832927a89d977ea989da157e9dc) ## Ceph Initial Install & monitor creation 1. On all nodes execute the command `pveceph install --repository no-subscription` accept all the packages and install 2. On node 1 execute the command `pveceph init --network 10.0.0.81/24` -
scyto revised this gist
Aug 20, 2023 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # CEPH HA Setup Note this should only be done once you are sure you have reliable network. proxmox and ceph seem fragile wrt to changing underlying network after configuration of ceph or even during all installation done via command line due to gui not understanding the mesh network @@ -40,6 +40,10 @@ If you find there are no availale disks when you try to add it probably means yo <img src="https://user-images.githubusercontent.com/11369180/261872100-ffdec818-e184-402f-a073-0b2f64f05dad.png" width="600" /> </p> ## Configure HA 1. On any node go to ` Datacenter > options ` 2. Set `Cluster Resource Scheduling` to `ha-rebalance-on-start=1` (this will rebalance nodes as needed) 3. Set `HA Settings` to `shutdown_policy=migrate` (this will migrate VMs and CTs if you gracefully shutdown a node). 4. Set `migration settings` leave as default (seperate gist will talk about seperating migration network later) -
scyto revised this gist
Aug 20, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,9 +36,9 @@ If you find there are no availale disks when you try to add it probably means yo 1. On any node go to ` Datacenter > nodename > ceph > pools` and click `create` 1. name the volume, e.g. `vm-disks` and leave defaults as is and click `create` <p align="center"> <img src="https://user-images.githubusercontent.com/11369180/261872100-ffdec818-e184-402f-a073-0b2f64f05dad.png" width="600" /> </p> -
scyto revised this gist
Aug 20, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,7 +37,7 @@ If you find there are no availale disks when you try to add it probably means yo 1. name the volume, e.g. `vm-disks` and leave defaults as is and click `create`  <img src="https://user-images.githubusercontent.com/11369180/261872100-ffdec818-e184-402f-a073-0b2f64f05dad.png" width="600" /> -
scyto revised this gist
Aug 20, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,7 +37,7 @@ If you find there are no availale disks when you try to add it probably means yo 1. name the volume, e.g. `vm-disks` and leave defaults as is and click `create`  <img src="https://user-images.githubusercontent.com/11369180/261872100-ffdec818-e184-402f-a073-0b2f64f05dad.png" width="800" /> -
scyto revised this gist
Aug 20, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,10 +34,10 @@ If you find there are no availale disks when you try to add it probably means yo ## Create Pool 1. On any node go to ` Datacenter > nodename > ceph > pools` and click `create` 1. name the volume, e.g. `vm-disks` and leave defaults as is and click `create`  <img src="https://user-images.githubusercontent.com/11369180/261872100-ffdec818-e184-402f-a073-0b2f64f05dad.png" width="200" /> -
scyto revised this gist
Aug 20, 2023 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -29,8 +29,17 @@ If this fails it probably means your networking is not working 3. repeat untill you have 3 nodes like this (note it can take 30 seconds for a new OSD to go green)  If you find there are no availale disks when you try to add it probably means your dedicated nvme/ssd has some other filesystem or old osd on it. To wipe the disk use the following UI. Becareful not to wipe your OS disk. <img width="1132" alt="image" src="https://user-images.githubusercontent.com/11369180/261871961-b9d4df2a-0a2a-42d2-8f3b-2fc54abc7264.png"> ## Create Pool 1. On any node go to ` Datacenter > nodename > ceph > pools` and click `create` 1. name the volume, e.g. `vm-disks` and leave defaults as is  -
scyto revised this gist
Aug 20, 2023 . 1 changed file with 25 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,9 +5,32 @@ all installation done via command line due to gui not understanding the mesh net This setup doesn't attempt to seperate the ceph public network and ceph cluster network (not same as proxmox clutser network), The goal is to get an easy working setup. ## Ceph Initial Install & monitor creation 1. On all nodes execute the command `pveceph install --repository no-subscription` accept all the packages and install 2. On node 1 execute the command `pveceph init --network 10.0.0.81/24` 3. On node 1 execute the command `pveceph mon create --mon-address 10.0.0.81` 4. On node 2 execute the command `pveceph mon create --mon-address 10.0.0.82` 5. On node 3 execute the command `pveceph mon create --mon-address 10.0.0.83` Now if you access the gui `Datacenter > pve1 > ceph > monitor` you should have 3 running monitors (ignore any errors on the root ceph UI leaf for now). If so you can proceed to next step. If not you probably have something wrong in your network, check all settings. ## Add Addtional managers 1. On any node go to ` Datacenter > nodename > ceph > monitor` and click `create` manager in the *manager* section. 2. Selecty an node that doesn't have a manager from the drop dwon and click `create` 3 repeat step 2 as needed If this fails it probably means your networking is not working ## Add OSDs 1. On any node go to ` Datacenter > nodename > ceph > OSD` 2. click `create OSD`select all the defaults (again this for a simple setup) 3. repeat untill you have 3 nodes like this (note it can take 30 seconds for a new OSD to go green)  If you find there are no availale disks when you try to add it probably means your dedicated nvme/ssd has some other filesystem or old osd on it. To wipe the disk use the following UI. <img width="1132" alt="image" src="https://user-images.githubusercontent.com/11369180/261871961-b9d4df2a-0a2a-42d2-8f3b-2fc54abc7264.png"> -
scyto created this gist
Aug 20, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ # CEPH Setup Note this should only be done once you are sure you have reliable network. proxmox and ceph seem fragile wrt to changing underlying network after configuration of ceph or even during all installation done via command line due to gui not understanding the mesh network This setup doesn't attempt to seperate the ceph public network and ceph cluster network (not same as proxmox clutser network), The goal is to get an easy working setup. ## Ceph Initial Install 1. On all nodes execute the command `pveceph install --repository no-subscription` accept all the packages and install 2. On node 1 execute the command `pveceph init --network 10.0.0.81/24` 3. On node 1 execute the command `pveceph mon create --mon-address 10.0.0.81` 4. On node 2 execute the command `pveceph mon create --mon-address 10.0.0.82` 5. On node 3 execute the command `pveceph mon create --mon-address 10.0.0.83`