[DRBD-user] Getting TRIM to Work with DRBD

Eric Robinson eric.robinson at psmnv.com
Fri Jul 21 20:21:15 CEST 2017

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Folks, does anyone know why trim does not show as enabled for drbd?

The physical drives support it. The raid array supports it. I can trim non-drbd volumes just fine. But the drbd devices show trim as not supported.

# lsblk -D
NAME        DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
sda                0      512B       4G         1
├─sda1             0      512B       4G         1
│ └─md0            0      128K     256M         0
├─sda2             0      512B       4G         1
│ └─md1            0      128K     256M         0
├─sda3             0      512B       4G         1
├─sda4             0      512B       4G         1
├─sda5             0      512B       4G         1
│ └─md2            0      128K     256M         0
│   └─drbd0        0        0B       0B         0          <-- Note: DISC-GRAN and DISC-MAX should be non-zero.

I'm using drbd 9.0.1.

--
Eric Robinson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20170721/4db54e93/attachment.htm>


More information about the drbd-user mailing list