007revad / Synology_enable_Deduplication

Enable deduplication with non-Synology SSDs and unsupported NAS models
MIT License
94 stars 5 forks source link

Support for qemu ssd disk? #73

Open dur3x opened 4 months ago

dur3x commented 4 months ago

Hello :-) I'm curious to testing this thing and I tried it on Xpenology - DS3622xs+ - setup on top of proxmox with emulated QEMU (ssd) disks.

Information are:

root@ds3622xs-2:# synogetkeyvalue /etc/synoinfo.conf support_btrfs_dedupe yes root@ds3622xs-2:# synogetkeyvalue /etc.defaults/synoinfo.conf support_btrfs_dedupe yes

root@ds3622xs-2:~# ./syno_enable_dedupe.sh --check Synology_enable_Deduplication v1.3.25 DS3622xs+ DSM 7.2.1-69057-5

StorageManager 1.0.0-0017

Using options: --check Running from: /root/syno_enable_dedupe.sh

NAS has 4 GB of memory.

Btrfs Data Deduplication is enabled.

Tiny Btrfs Data Deduplication is enabled.

Checking non-Synology drive supported. File is already edited.

Checking value in backup file. Backup file is okay.

Screenshot 2024-05-30 at 23 18 23 Screenshot 2024-05-30 at 23 18 08

Thanks in advance for your help

007revad commented 4 months ago

It can take up to 20 minutes before the dedupe menu option appears. If storage manager was already open you also need to close and reopen it.

dur3x commented 4 months ago

It can take up to 20 minutes before the dedupe menu option appears. If storage manager was already open you also need to close and reopen it.

Thanks for your quick answer :-) I will have a look tomorrow and keep you in touch

dur3x commented 4 months ago

I probably miss something because the menu is still not appear :'( Do you have some hints/things to check ?

007revad commented 4 months ago

NAS has 4 GB of memory.

Btrfs Data Deduplication is enabled.

Tiny Btrfs Data Deduplication is enabled.

I'm wondering how "Btrfs Data Deduplication" got enabled when the DS3622xs+ does not have it enabled in DSM 7.2.1, and the script thinks it only has 4GB of memory.

Do you have usage details enabled? https://kb.synology.com/en-global/DSM/help/DSM/StorageManager/volume_view_usage?version=7

Storage Manager checks if drives are SSD or not. What does this command return?

syno_hdd_util --ssd_detect
dur3x commented 4 months ago

To be honest there are both btrfs and tiny btfrs because I set manually, for testing, the btfrs value. I can easily reset it. I also tested on two others instances SA6300 and DS720+ and I have the same problem. All of these xpenology setups are done with the same virtual disks from proxmox so I suppose it's linked to my virtual disks.

The command you gave returns this:

root@ds3622xs-2:~# syno_hdd_util --ssd_detect
Model                Firmware     SN                   Dev        is SSD?
HARDDISK             2.5+         QM00009              /dev/sdc   yes
HARDDISK             2.5+         QM00007              /dev/sdb   yes
007revad commented 4 months ago

It is looking like it's a an issue with virtual disks. Xpenology, proxmox and virtual disks are all beyond my level of knowledge.