prep: storage directly to storage-limbosolution-scom using seaweedfs csi-driver

This commit is contained in:
2025-07-15 22:40:55 +00:00
parent da4b9c25b1
commit 41ab2dc096
3 changed files with 57 additions and 0 deletions

View File

@@ -4,6 +4,11 @@ Welcome to public repository of [https://cloud.limbosolutions.com](https://cloud
Using [NextCloud](https://nextcloud.com/)
- [command](#command)
- [maintenance mode](#maintenance-mode)
- [scan files](#scan-files)
- [repair tree](#repair-tree)
- [delete file locks](#delete-file-locks)
- [Setup](#setup)
- [kubernetes Namespace](#kubernetes-namespace)
- [Add helm chart](#add-helm-chart)
@@ -11,6 +16,34 @@ Using [NextCloud](https://nextcloud.com/)
- [Install / Update](#install--update)
- [backups](#backups)
## command
## maintenance mode
``` bash
su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ maintenance:mode --on;"
su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ maintenance:mode --off"
```
### scan files
``` bash
su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ files:scan --all"
```
### repair tree
``` bash
su -s /bin/bash www-data -c "php occ files:repair-tree"
```
### delete file locks
``` bash
# execute on mariadb
DELETE FROM oc_file_locks WHERE 1;
```
## Setup
### kubernetes Namespace

View File

@@ -54,6 +54,15 @@ persistence:
# memory: 128Mi
nextcloud:
extraVolumes:
- name: mf-documents
persistentVolumeClaim:
claimName: mf-documents-storage-limbosolutions-com
extraVolumeMounts:
- name: mf-documents
mountPath: /mf.documents
configs:
https.config.php: |-
<?php

15
persistance-volumes.yaml Normal file
View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mf-documents-storage-limbosolutions-com
namespace: cloud-limbosolutions-com
spec:
storageClassName: ""
volumeName: mf-documents-storage-limbosolutions-com
accessModes:
- ReadWriteMany
resources:
requests:
storage: 64Gi