old db corrupted

This commit is contained in:
2025-10-16 04:35:30 +05:30
parent 9c0f687843
commit f7171c6cb6
3 changed files with 34 additions and 11 deletions

View File

@@ -40,10 +40,5 @@ spec:
mountPath: /backup mountPath: /backup
volumes: volumes:
- name: nextcloud-db-storage - name: nextcloud-db-storage
nfs: persistentVolumeClaim:
server: 10.0.0.10 claimName: nextcloud-db-longhorn
path: /home/akshun/nextcloud/db
- name: nextcloud-db-backup
nfs:
server: 10.0.0.10
path: /home/akshun/nextcloud/backup

View File

@@ -0,0 +1,29 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nextcloud-db-longhorn
namespace: tools
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 2Gi
storageClassName: longhorn
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nextcloud-longhorn
namespace: tools
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 2Gi
storageClassName: longhorn

View File

@@ -46,9 +46,8 @@ spec:
volumes: volumes:
- name: nextcloud-data - name: nextcloud-data
nfs: nfs:
path: /home/akshun/nextcloud/data path: /home/akshun/nextcloud-data
server: 10.0.0.10 server: 10.0.0.10
- name: nextcloud-config - name: nextcloud-config
nfs: persistentVolumeClaim:
path: /home/akshun/nextcloud/config claimName: nextcloud-longhorn
server: 10.0.0.10