Browse Source

Upgrade ceph to reef and migration

Pierre-Yves Barriat 1 year ago
parent
commit
85d43e6b6d
3 changed files with 11 additions and 17 deletions
  1. 10 11
      dev/Migration.md
  2. 0 5
      dev/provisioning/ansible/ceph.yml
  3. 1 1
      dev/provisioning/ansible/roles

+ 10 - 11
dev/Migration.md

@@ -27,7 +27,8 @@
     > `occ ldap:show-remnants`
   - remove the guests users ?
     > `occ user:list | grep "Guest"`
-  - remove the external mounts ?
+  - remove the external mounts
+  - remove the shared files and folders
 3. Start the instance and check it
 4. Halt NC host and:
   - rsync the mysql folder from DB host
@@ -36,18 +37,16 @@
 
 # Migration files --> S3
 
-1. Deploy a new Nextcloud instance with Vagrant (same NC release + MariaDB 10.6.12 + **CEPH 3 nodes of 600GB**)
-  > minimum 80GB for DB host, minimum 1.3T for NC host
+1. Deploy a new Nextcloud instance with Vagrant (same NC release + MariaDB 10.6.12 + **CEPH 3 nodes of 2TB**)
+  > minimum 80GB for DB host, minimum 60GB for NC, minimum 1.3T for NC Data
 2. Halt NC on Vagrant host and 
   - rsync the mysql folder
   - rsync the Nextcloud folder 
   - rsync the NC data folder
-3. Apply `nextcloud-S3-local-S3-migration`
-4. Halt NC host and 
-  - dump the mysql NC database
-  - rsync the Nextcloud folder from NC host
-
-# Test new Nextcloud S3 & DB dump
+3. Start the new instance and check it
+4. Disable cron:  `mv /etc/cron.d/nextcloud /var/www/html/nextcloud/etc_cron.d_nextcloud`
+5. Apply `nextcloud-S3-local-S3-migration`
+6. Check the instance
+7. Enable cron
 
-1. Deploy a new Nextcloud instance with Vagrant (same NC release + **MariaDB cluster** + CEPH)
-  > minimum 80GB for DB host, minimum 1.5T for NC host
+> !!! S3 migration: external mounts lost & shared files lost !!!

+ 0 - 5
dev/provisioning/ansible/ceph.yml

@@ -19,11 +19,6 @@
   hosts: ceph_servers
   vars:
     ansible_python_interpreter: /usr/bin/python3
-  pre_tasks:
-    - name: define ansible_python_interpreter group // linux distribution
-      set_fact:
-        ansible_python_interpreter: /usr/bin/python2
-      when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
   roles:
     - role: ceph
       vars:

+ 1 - 1
dev/provisioning/ansible/roles

@@ -1 +1 @@
-Subproject commit 9e053648276b91d028025237868d339a15f0a262
+Subproject commit 9d6aeba1a715e29fb9a9cfcf9a9603244ed2f8f9