<html><head><title>fstrim</title>
</head>
<body>
<span style=" font-family:'Arial'; font-size: 9pt;">Hi guys,<br>
<br>
We have a customer that uses DRBD extensively for replicating ~100 GB between x 80 VM pairs. They run in ESXi 6.5 VMFS 6.0 with thick provisioned disk. DRBD 8.9.6 runs on top of LVM.<br>
Our task is to reduce the storage footprint of their VMs thus we need to implement discard to reclaim the disk space released by deleted files in ext3/4 that sits on top of DRBD.<br>
<br>
Both the /dev/sd* and /dev/vg/lv* support discard but DRBD does not so we cannot<br>
# fstrim -v /mnt<br>
because "fstrim: /mnt: the discard operation is not supported"<br>
<br>
I have read here </span><a style=" font-family:'Arial'; font-size: 9pt;" href="http://docs.linbit.com/doc/users-guide-84/re-drbdconf/">http://docs.linbit.com/doc/users-guide-84/re-drbdconf/</a> <br>
<span style=" font-family:'Arial'; font-size: 9pt;">but is unclear if there is a combination of parameters to change this behavior "While probably harmless for most use cases (fstrim on a file system), DRBD cannot have that."<br>
I have tried a few parameters but failed.<br>
<br>
Can you please let me know what is the combination of parameters to instruct DRBD to allow fstim?<br>
<br>
The platform is SLES 12SP2 and kernel 4.4.27-2.<br>
<br>
Best regards,<br>
-------------------------------- Friday, March 31, 2017----- 1:59 AM GMT+2<br>
Sergiu Pol<br>
<br>
Infrastructure Architect<br>
Email: </span><a style=" font-family:'arial'; font-size: 9pt;" href="mailto:sergiu@simplision.com">sergiu@simplision.com</a><br>
<span style=" font-family:'Arial'; font-size: 9pt;">GSM: 0040742962266<br>
</span><a style=" font-family:'arial'; font-size: 9pt;" href="http://www.simplision.com">www.simplision.com</a><br>
<img width=309 height=104 alt="" style="padding : 1px;" src="cid:F03F9FD6.01D2A9AA.204D5388.60D903AA_csseditor"><br>
<span style=" font-family:'Arial'; font-size: 9pt;">-----------------------------------------------------------------------------------</body></html>