DRBD Trim Support

Eric Robinson <eric.robinson-JiDY2OCN/[email protected]>
Newsgroups gmane.comp.linux.drbd
Message-ID <SJ0PR03MB650172B4577AB7979CC6FF4EFA4E9@SJ0PR03MB6501.namprd03.prod.outlook.com>
According to the documentation, SSD TRIM/Discard support has been in DRBD since version 8. DRBD is supposed to detect if the underlying storage supports trim and, if so, automatically enable it. However, I am unable to TRIM my DRBD volumes.

[root@ha50a mysqld]# fstrim /ha
fstrim: /ha: the discard operation is not supported

It looks like DRBD disk is the only thing in the stack that does not have trim enabled...

[root@ha50a mysqld]# lsblk -D
NAME                DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
sda                        0        4K       2G         0
├─sda1                     0        4K       2G         0
├─sda2                     0        4K       2G         0
└─sda3                     0        4K       2G         0
  ├─ha50a-root             0        4K       2G         0
  └─ha50a-swap             0        4K       2G         0
nvme4n1                    0      512B       2T         0
nvme2n1                    0      512B       2T         0
nvme0n1                    0      512B       2T         0
└─vg0-ha--001_00000        0      512B       2T         0
  └─drbd1000               0        0B       0B         0
nvme3n1                    0      512B       2T         0
nvme1n1                    0      512B       2T         0
nvme5n1                    0      512B       2T         0

I can TRIM those drives when I don't have DRBD in the stack.

Any ideas?

[cid:image001.png-B0HPqDSEhThCCMACll/[email protected]]<tel:113>

Disclaimer : This email and any files transmitted with it are confidential and intended solely for intended recipients. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physician Select Management. Warning: Although Physician Select Management has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
[email protected]
https://lists.linbit.com/mailman/listinfo/drbd-user
image001.png (image/png, 38.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.