Skip to content

Commit cffc357

Browse files
committed
ops/storage: Note about persistence and udev
1 parent b7f7b62 commit cffc357

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/ops/storage/intro.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,15 @@ SSD 的闪存存储的特点是:不支持任意的随机写,修改数据只
228228
echo 1073741824 | sudo tee /sys/block/sda/queue/discard_max_bytes
229229
```
230230

231+
最后,上面的设置不是持久化的。如果需要持久化,则需要配置相关的 udev 规则。
232+
231233
其他介绍可参考:
232234

233235
- [Enabling TRIM on an external SSD on a Raspberry Pi](https://www.jeffgeerling.com/blog/2020/enabling-trim-on-external-ssd-on-raspberry-pi)
234236
- [Gentoo Wiki: Discard over USB](https://wiki.gentoo.org/wiki/Discard_over_USB)
235237
- [Superuser: No TRIM/DISCARD with a SATA SSD connected through an UASP-enabled USB adapter?](https://superuser.com/a/1741030)
236238
- [scsi: sd: Enable modern protocol features on more devices](https://git.kernel.org/pub/scm/linux/kernel/git/mkp/linux.git/commit/?h=5.18/discovery&id=916740efdd2208564decee40a6049674f2063811)
239+
- [Vlab 项目调试 iSCSI unmap 问题的记录](https://vlab.ibugone.com/records/2024-10-02/)
237240

238241
## RAID
239242

0 commit comments

Comments
 (0)