Changes for page Proxmox Backup server
Last modified by Kevin Wiki on 2024/05/21 21:23
From version
7.1
edited by Kevin Wiki
on 2024/04/06 10:12
on 2024/04/06 10:12
Change comment:
There is no comment for this version
To version
9.1
edited by Kevin Wiki
on 2024/04/06 10:49
on 2024/04/06 10:49
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -4,6 +4,61 @@ 4 4 ((( 5 5 = Configuration = 6 6 7 +Backup server is setup with: 8 + 9 +* zfs storage 10 +* access control - api tokens 11 +* datastore 12 +** sync jobs 13 +** prune jobs 14 +** verify jobs 15 +** permissions 16 +* timings and simulator 17 + 18 += ZFS storage array = 19 + 20 +There are currently 2 x 8TB WD drives. Current pool status: 21 + 22 +``` 23 +kevin@clio:~~$ sudo zpool status pergamum 24 + pool: pergamum 25 + state: ONLINE 26 + scan: scrub repaired 0B in 09:52:23 with 0 errors on Sun Mar 10 10:16:24 2024 27 +config: 28 + 29 + NAME STATE READ WRITE CKSUM 30 + pergamum ONLINE 0 0 0 31 + raidz1-0 ONLINE 0 0 0 32 + scsi-0QEMU_QEMU_HARDDISK_drive-scsi2-part1 ONLINE 0 0 0 33 + sdc1 ONLINE 0 0 0 34 + 35 +errors: No known data errors 36 + 37 +``` 38 + 39 +Creating and expanding zfs pool: 40 + 41 +``` 42 +zpool create pergamum raidz /dev/disk/by-partuuid/9fab17e5-df2d-2448-b5d4-10193c673a6b /dev/disk/by-partuuid/f801ed37-1d6c-ee40-8b85-6bfc49aba0fb -f 43 +zfs set mountpoint=/mnt/pergamum pergamum 44 +(zpool import -c /etc/zfs/zpool.cache -aN) 45 +zpool export pergamum 46 +``` 47 +have not tried yet, but adding another set of disksĀ for an additional top-level virtual device to our existing RAID-Z pool: 48 +``` 49 +zpool add -n pergamum raidz DISK1 DISK2 50 +``` 51 +~> NOTE! `-n` is dry run, remove to commit. 52 + 53 += Tailscale = 54 + 55 +Tailscale is used to create a network that uses wireguard to transparently between local and remote machines. To not require a third party a local instance of headscale is used as the tailscale login server. 56 + 57 +Setting up a connection should only require `sudo tailscale up ~-~-login-server https:~/~/TAILSCALE_SUBDOMAIN.schleppe.cloud`. 58 +To view the status: `sudo tailscale status`. 59 + 60 += Client Configuration = 61 + 7 7 Configure Backup on the Datacenter or PVE host level in the proxmox web GUI. If a backup storage is already added input the following preferences: 8 8 \\{{code language="none" width="100%"}}Selection mode: include selected VMs 9 9 Send email to: kevin.midboe+{PVE_HOSTNAME}@gmail.com ... ... @@ -12,74 +12,6 @@ 12 12 Enabled: True 13 13 Job Comment: {{guestname}}, {{node}}, {{vmid}}{{/code}} 14 14 15 -(% class="wikigeneratedid" id="H" %) 16 -{{code language="yaml" layout="LINENUMBERS"}}apiVersion: apps/v1 17 -kind: DaemonSet 18 -metadata: 19 - name: prometheus-node-exporter-daemonset 20 - namespace: monitoring 21 - labels: 22 - app: prometheus-node-exporter 23 -spec: 24 - selector: 25 - matchLabels: 26 - app: prometheus-node-exporter 27 - template: 28 - metadata: 29 - labels: 30 - app: prometheus-node-exporter 31 - spec: 32 - containers: 33 - - args: 34 - - --path.procfs=/host/proc 35 - - --path.sysfs=/host/sys 36 - - --path.rootfs=/host/root 37 - - --web.listen-address=:9100 38 - image: quay.io/prometheus/node-exporter:latest 39 - imagePullPolicy: IfNotPresent 40 - name: prometheus-node-exporter 41 - ports: 42 - - name: metrics 43 - containerPort: 9100 44 - hostPort: 9100 45 - securityContext: 46 - allowPrivilegeEscalation: false 47 - volumeMounts: 48 - - mountPath: /host/proc 49 - name: proc 50 - readOnly: true 51 - - mountPath: /host/sys 52 - name: sys 53 - readOnly: true 54 - - mountPath: /host/root 55 - mountPropagation: HostToContainer 56 - name: root 57 - readOnly: true 58 - hostNetwork: true 59 - hostPID: true 60 - restartPolicy: Always 61 - tolerations: 62 - - key: "node-role.kubernetes.io/master" 63 - effect: "NoSchedule" 64 - volumes: 65 - - hostPath: 66 - path: /proc 67 - type: "" 68 - name: proc 69 - - hostPath: 70 - path: /sys 71 - type: "" 72 - name: sys 73 - - hostPath: 74 - path: / 75 - type: "" 76 - name: root 77 - updateStrategy: 78 - rollingUpdate: 79 - maxSurge: 0 80 - maxUnavailable: 1 81 - type: RollingUpdate{{/code}} 82 - 83 83 = Methodology = 84 84 85 85 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ... ... @@ -109,11 +109,5 @@ 109 109 {{box title="**Contents**"}} 110 110 {{toc/}} 111 111 {{/box}} 112 - 113 -[[image:[email protected]]] 114 -//Figure 1: [[Sea>>https://commons.wikimedia.org/wiki/File:Isle_of_Icacos_II.jpg]]// 115 - 116 -[[image:[email protected]]] 117 -//Figure 2: [[Waves>>https://commons.wikimedia.org/wiki/File:Culebra_-_Playa_de_Flamenco.jpg]]// 118 118 ))) 119 119 )))