Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ThoZed committed Jul 24, 2017
0 parents commit b40a212
Show file tree
Hide file tree
Showing 5 changed files with 766 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Thomas Zanft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file added Proxpatch - Proxmox.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
![proxpatch - proxmox](https://user-images.githubusercontent.com/1869080/28519913-b1429d2a-706d-11e7-83cf-e1369b5e923f.gif)


# Proxpatch
## Proxmox-/Ceph Clusterupdater

### Proxpatch.sh - Summary
- proxpatch is used to upgrade your proxmox nodes with apt-get upgrade while taking care the cluster(proxmox + ceph) stays available.
- in general folllowing sequence is applied:
- check prerequisites - cluster health, HA group assignment
- set ceph maintenance mode - patch cluster node by node and take care that the running vms are migrated to an other node

### Prerequisites
- [x] use a separate management machine to spin the script (dont use a proxmox clusternode!)
- [x] setup ssh trust between clusternodes an management machine.
- [x] fill in your node Information in proxbatch.cfg
- CLUSTER=[clustername]
- NODES=[amount of nodes]
- NODE1_IP=[IP Address]
- NODE1_USER=[Proxmox admin user]
- NODE1_NAME=[Proxmox node name]
- NODE1_HAPRIOGRP=[name HA Prio Group]
- NODE2_IP=[IP Address]
- NODE2_USER=[Proxmox admin user]
....
- NODE[n]_IP=[amount of nodes]
- NODE[n]_USER=[Proxmox admin user]
- NODE[n]_NAME=[Proxmox node name]
- NODE[n]_HAPRIOGRP=[name HA Prio Group]
- [x] every running machine has to be assigned to an HA Group
- [x] there must be a ha group for each Cluster node which priorize that Node
- [x] priorize node1 in HA Group for node1 like this : node1:3,node2:2,node3:2
- [x] ceph Pool size has to be setup to tolerate a node shutdown (eg. size 2/1)
14 changes: 14 additions & 0 deletions proxpatch.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CLUSTER=[clustername]
NODES=3
NODE1_IP=[IP Address]
NODE1_USER=[Proxmox admin user]
NODE1_NAME=[Proxmox node name]
NODE1_HAPRIOGRP=[name HA Prio Group]
NODE2_IP=[IP Address]
NODE2_USER=[Proxmox admin user]
NODE2_NAME=[Proxmox node name]
NODE2_HAPRIOGRP=[name HA Prio Group]
NODE3_IP=[IP Address]
NODE3_USER=[Proxmox admin user]
NODE3_NAME=[Proxmox node name]
NODE3_HAPRIOGRP=[name HA Prio Group]
Loading

0 comments on commit b40a212

Please sign in to comment.