File to debug https://github.com/Flomp/wanderer/ :
On this file when I put on Wanderer I see D+ = 0 and D- = 0. Normaly it’s more than 250m.
J’ai voulu changer un disque du RAID : un SAS “DELL 900 GB ST900MM0006” par un SATA “KINGSTON SA400S37960G A To”
Mais il n’y a pas de reconstruction …
Information du RAID :
# megacli -ldinfo -lALL -aALL
Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name :900GbRd5
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
Size : 4.089 TB
Sector Size : 512
Parity Size : 837.75 GB
State : Degraded
Strip Size : 64 KB
Number Of Drives : 6
Span Depth : 1
Default Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
Default Power Savings Policy: Controller Defined
Current Power Savings Policy: None
Can spin up in 1 minute: Yes
LD has drives that support T10 power conditions: Yes
LD's IO profile supports MAX power savings with cached writes: No
Bad Blocks Exist: No
Is VD Cached: Yes
Cache Cade Type : Read Only
Virtual Drive: 1 (Target Id: 1)
Name :2TbRd1iw
RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0
Size : 1.818 TB
Sector Size : 512
Mirror Data : 1.818 TB
State : Optimal
Strip Size : 64 KB
Number Of Drives : 2
Span Depth : 1
Default Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
Default Power Savings Policy: Controller Defined
Current Power Savings Policy: None
Can spin up in 1 minute: Yes
LD has drives that support T10 power conditions: No
LD's IO profile supports MAX power savings with cached writes: No
Bad Blocks Exist: No
Is VD Cached: Yes
Cache Cade Type : Read Only
Exit Code: 0x00
# perccli64 /c0 /eall /sall show
CLI Version = 007.0529.0000.0000 Sep 18, 2018
Operating system = Linux 6.8.12-5-pve
Controller = 0
Status = Success
Description = Show Drive Information Succeeded.
Drive Information :
=================
----------------------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type
----------------------------------------------------------------------------------
32:0 0 Onln 0 837.75 GB SAS HDD N N 512B ST900MM0006 U -
32:1 1 GHS - 893.75 GB SATA SSD N N 512B KINGSTON SA400S37960G U -
32:2 2 Onln 0 837.75 GB SAS HDD N N 512B ST900MM0006 U -
32:3 3 Onln 1 1.818 TB SATA HDD N N 512B ST2000VN003-3CW102 U -
32:4 4 Onln 0 837.75 GB SAS HDD N N 512B ST900MM0006 U -
32:5 5 Onln 0 837.75 GB SAS HDD N N 512B ST900MM0006 U -
32:6 6 Onln 0 837.75 GB SAS HDD N N 512B ST900MM0006 U -
32:7 7 Onln 1 1.818 TB SATA HDD N N 512B ST2000VN003-3CW102 U -
----------------------------------------------------------------------------------
EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encrypting Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down/PowerSave|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded
# megacli -PDList -aAll
Adapter #0
Enclosure Device ID: 32
Slot Number: 0
Drive's position: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: 1
Device Id: 0
WWN: 5000C5007E266648
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 838.362 GB [0x68cb9e30 Sectors]
Non Coerced Size: 837.862 GB [0x68bb9e30 Sectors]
Coerced Size: 837.75 GB [0x68b80000 Sectors]
Sector Size: 0
Firmware state: Online, Spun Up
Device Firmware Level: LS0C
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x5000c5007e266649
SAS Address(1): 0x0
Connected Port Number: 2(path0)
Inquiry Data: SEAGATE ST900MM0006 LS0CS0N2SHEW
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :25C (77.00 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
Enclosure Device ID: 32
Slot Number: 1
Enclosure position: 1
Device Id: 1
WWN: 50026b7785868c60
Sequence Number: 10
Media Error Count: 0
Other Error Count: 150
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
Hotspare Information:
Type: Global, is revertible
Raw Size: 894.252 GB [0x6fc81ab0 Sectors]
Non Coerced Size: 893.752 GB [0x6fb81ab0 Sectors]
Coerced Size: 893.75 GB [0x6fb80000 Sectors]
Sector Size: 0
Firmware state: Hotspare, Spun Up
Device Firmware Level: 70.5
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x4433221106000000
Connected Port Number: 1(path0)
Inquiry Data: 50026B7785868C60 KINGSTON SA400S37960G SHFK70.5
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Solid State Device
Drive: Not Certified
Drive Temperature : N/A
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No
Enclosure Device ID: 32
Slot Number: 2
Drive's position: DiskGroup: 0, Span: 0, Arm: 2
Enclosure position: 1
Device Id: 2
WWN: 5000C5007F6CEAE4
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 838.362 GB [0x68cb9e30 Sectors]
Non Coerced Size: 837.862 GB [0x68bb9e30 Sectors]
Coerced Size: 837.75 GB [0x68b80000 Sectors]
Sector Size: 0
Firmware state: Online, Spun Up
Device Firmware Level: LS0C
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x5000c5007f6ceae5
SAS Address(1): 0x0
Connected Port Number: 3(path0)
Inquiry Data: SEAGATE ST900MM0006 LS0CS0N3AYB9
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :24C (75.20 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
Enclosure Device ID: 32
Slot Number: 3
Drive's position: DiskGroup: 1, Span: 0, Arm: 0
Enclosure position: 1
Device Id: 3
WWN: 5000c500e76415ef
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]
Coerced Size: 1.818 TB [0xe8d00000 Sectors]
Sector Size: 0
Firmware state: Online, Spun Up
Device Firmware Level: SC60
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x4433221104000000
Connected Port Number: 4(path0)
Inquiry Data: ZWD0FNZ4ST2000VN003-3CW102 SC60
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive: Not Certified
Drive Temperature :22C (71.60 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No
Enclosure Device ID: 32
Slot Number: 4
Drive's position: DiskGroup: 0, Span: 0, Arm: 3
Enclosure position: 1
Device Id: 4
WWN: 5000C5007F21B7B8
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 838.362 GB [0x68cb9e30 Sectors]
Non Coerced Size: 837.862 GB [0x68bb9e30 Sectors]
Coerced Size: 837.75 GB [0x68b80000 Sectors]
Sector Size: 0
Firmware state: Online, Spun Up
Device Firmware Level: LS0C
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x5000c5007f21b7b9
SAS Address(1): 0x0
Connected Port Number: 7(path0)
Inquiry Data: SEAGATE ST900MM0006 LS0CS0N3553B
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :26C (78.80 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
Enclosure Device ID: 32
Slot Number: 5
Drive's position: DiskGroup: 0, Span: 0, Arm: 4
Enclosure position: 1
Device Id: 5
WWN: 5000C5007F212928
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 838.362 GB [0x68cb9e30 Sectors]
Non Coerced Size: 837.862 GB [0x68bb9e30 Sectors]
Coerced Size: 837.75 GB [0x68b80000 Sectors]
Sector Size: 0
Firmware state: Online, Spun Up
Device Firmware Level: LS0C
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x5000c5007f212929
SAS Address(1): 0x0
Connected Port Number: 6(path0)
Inquiry Data: SEAGATE ST900MM0006 LS0CS0N357QD
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :24C (75.20 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
Enclosure Device ID: 32
Slot Number: 6
Drive's position: DiskGroup: 0, Span: 0, Arm: 5
Enclosure position: 1
Device Id: 6
WWN: 5000C5007F21A7A4
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 838.362 GB [0x68cb9e30 Sectors]
Non Coerced Size: 837.862 GB [0x68bb9e30 Sectors]
Coerced Size: 837.75 GB [0x68b80000 Sectors]
Sector Size: 0
Firmware state: Online, Spun Up
Device Firmware Level: LS0C
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x5000c5007f21a7a5
SAS Address(1): 0x0
Connected Port Number: 5(path0)
Inquiry Data: SEAGATE ST900MM0006 LS0CS0N355D8
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :24C (75.20 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
Enclosure Device ID: 32
Slot Number: 7
Drive's position: DiskGroup: 1, Span: 0, Arm: 1
Enclosure position: 1
Device Id: 7
WWN: 5000c500e7641717
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]
Coerced Size: 1.818 TB [0xe8d00000 Sectors]
Sector Size: 0
Firmware state: Online, Spun Up
Device Firmware Level: SC60
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x4433221100000000
Connected Port Number: 0(path0)
Inquiry Data: ZWD0FP6VST2000VN003-3CW102 SC60
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive: Not Certified
Drive Temperature :22C (71.60 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No
Exit Code: 0x00
# megacli -PdGetMissing -a0
Adapter 0 - Missing Physical drives
No. Array Row Size Expected
0 0 1 857856 MB
Exit Code: 0x00
J’ai mis le disque en HotSpare pour que le Rebuild se fasse :
J’utilise Mariadb sous Debian pour Humhub.
Modification dans /etc/sysctl.conf
vm.swappiness=1
Et changement en direct :
/usr/sbin/sysctl -w vm.swappiness=1
Modification dans /etc/mysql/mariadb.conf.d/50-server.cnf avec :
innodb_buffer_pool_size = 4G
Avant le restart :
mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 52245
Server version: 10.5.26-MariaDB-0+deb11u2 Debian 11
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> select @@innodb_buffer_pool_size;
+---------------------------+
| @@innodb_buffer_pool_size |
+---------------------------+
| 134217728 |
+---------------------------+
1 row in set (0,001 sec)
MariaDB [(none)]> select @@innodb_buffer_pool_size/1024/1024/1024;
+------------------------------------------+
| @@innodb_buffer_pool_size/1024/1024/1024 |
+------------------------------------------+
| 0.125000000000 |
+------------------------------------------+
1 row in set (0,001 sec)
MariaDB [(none)]> show variables like 'innodb_buffer_pool%';
+-------------------------------------+----------------+
| Variable_name | Value |
+-------------------------------------+----------------+
| innodb_buffer_pool_chunk_size | 134217728 |
| innodb_buffer_pool_dump_at_shutdown | ON |
| innodb_buffer_pool_dump_now | OFF |
| innodb_buffer_pool_dump_pct | 25 |
| innodb_buffer_pool_filename | ib_buffer_pool |
| innodb_buffer_pool_instances | 1 |
| innodb_buffer_pool_load_abort | OFF |
| innodb_buffer_pool_load_at_startup | ON |
| innodb_buffer_pool_load_now | OFF |
| innodb_buffer_pool_size | 134217728 |
+-------------------------------------+----------------+
10 rows in set (0,003 sec)
Après :
Nextcloud
A la fin j’ai quand même fait :
# sudo -u www-data php /usr/share/nginx/nextcloud/occ files:scan --all
...
# sudo -u www-data php /usr/share/nginx/nextcloud/occ maintenance:repair --include-expensive
...
# sudo -u www-data php /usr/share/nginx/nextcloud/occ db:add-missing-indices
...
Je me fais un petit mémo pour la prochaine fois. Les commandes :
# sudo -u www-data php /usr/share/nginx/nextcloud/updater/updater.phar
Nextcloud Updater - version: v29.0.0-1-g9293bcb dirty
Current version is 29.0.4.
Update to Nextcloud 29.0.5 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-29.0.5.zip
Open changelog ↗
Steps that will be executed:
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done
Continue update? [y/N] y
...
Update of code successful.
Should the "occ upgrade" command be executed? [Y/n] Y
...
# sudo -u www-data php /usr/share/nginx/nextcloud/occ maintenance:repair
# sudo -u www-data php /usr/share/nginx/nextcloud/occ upgrade
Nextcloud is already latest version
# sudo systemctl restart nginx.service
# sudo systemctl restart php8.1-fpm.service
Les dernières commandes sont pour ne pas avoir le problème : “Downgrading is not supported and is likely to cause unpredictable issues (from 29.0.5.1 to 29.0.4.1)”
Voici mes versions de NextCloud :
# sudo -u www-data php /usr/share/nginx/nextcloud/occ status
- installed: true
- version: 28.0.5.1
- versionstring: 28.0.5
- edition:
- maintenance: false
- needsDbUpgrade: false
- productname: Nextcloud
- extendedSupport: false
# sudo -u www-data php /usr/share/nginx/nextcloud/occ app:list | grep "backup:"
- backup: 1.4.0
L’espace disque de l’Application Backup:
# du -sh /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/*
4,3M /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/appstore
3,4M /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/avatar
470G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup
12K /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/calendar
176K /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/cms_pico
724K /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/css
8,0K /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/dashboard
2,0M /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/dav-photocache
64K /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/identityproof
72K /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/js
8,8M /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/photos
29G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/preview
12K /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/text
2,1M /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/theming
# du -sh /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/*
4,4G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240213180150-differential-mJwnsegWFWa32Ws
4,4G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240216174222-differential-aEAkE921tEAZJxK
8,6G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240219201105-differential-MNagUjAr5pJjKrJ
4,3G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240312015208-differential-1gpv21O5ONWGpiQ
4,5G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240315014502-differential-DzBeULCGG2VPXpG
8,6G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240318014002-differential-lbn3GUyTard9ovF
4,5G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240409020112-differential-rKxklcdNLfIOK1B
7,1G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240412015108-differential-ZcGBuQaaneze68g
12G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240415013607-differential-FipWERobM4dFKdL
7,9G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240427012058-differential-vTdMvZ5lrnuQe9M
9,6G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240430015156-differential-HPRNz4QUGnu9jWN
9,7G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240503013608-differential-Qhri1qU2q3ybgNL
202G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240504002610-full-4Ys336x2mazzHsk
184G /datadisk/nginx/nextcloud/data/appdata_ocjrumk06tlj/backup/20240505182107-full-dGq71cdoZ18CEXo
J’ai donc fait le ménage :
J’ai du faire :
# sudo -u www-data php /usr/share/nginx/nextcloud/occ maintenance:mode --off
# sudo -u www-data php /usr/share/nginx/nextcloud/occ maintenance:repair
# sudo -u www-data php /usr/share/nginx/nextcloud/occ maintenance:mimetype:update-db
# sudo -u www-data php /usr/share/nginx/nextcloud/occ db:add-missing-indices
# sudo -u www-data php /usr/share/nginx/nextcloud/occ db:convert-filecache-bigint
# sudo -u www-data php /usr/share/nginx/nextcloud/occ db:add-missing-primary-keys
# sudo systemctl restart nginx.service
# sudo systemctl restart php8.1-fpm.service
Et c’est reparti …
J’ai voulu faire une migration de serveur :
Ancien:
Nouveau :
Migration :
Pas de problème à noter, j’ai du lancer une commande en ligne :
# sudo -u www-data php /usr/share/nginx/nextcloud/occ db:add-missing-indices
Check indices of the share table.
Check indices of the filecache table.
Adding additional parent index to the filecache table, this can take some time...
Filecache table updated successfully.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
Check indices of the oc_jobs table.
Check indices of the oc_direct_edit table.
Check indices of the oc_preferences table.
Check indices of the oc_mounts table.
Adding mounts_user_root_path_index index to the oc_mounts table, this can take some time...
oc_mounts table updated successfully.
Check indices of the oc_systemtag_object_mapping table.
Adding systag_by_tagid index to the oc_systemtag_object_mapping table, this can take some time...
oc_systemtag_object_mapping table updated successfully.
Adding additional textstep_session index to the oc_text_steps table, this can take some time...
oc_text_steps table updated successfully.
J’ai vu l’erreur suivante sur NEXTCLOUD : " Les modèles de machine learning doivent encore être téléchargés."
J’ai donc fait ceci :
cd /usr/share/nginx/nextcloud/
sudo -u www-data php --define apc.enable_cli=1 occ recognize:download-models
Ensuite le message a changé :“Les modèles de machine learning ont été téléchargés avec succès.”
J’ai donc voulu continuer en ligne de commande :
sudo -u www-data php --define apc.enable_cli=1 occ recognize:classify
A suivre …