[玩法/技巧] 黑白裙均可!DS918+ 使用Nvme SSD做存储空间的技巧 |
本帖最后由 jimmyjin 于 2020-2-11 19:50 编辑
在帖子http://www.gebi1.com/thread-295316-1-1.html 里我讨论了如何像白裙DS918+一样使用Nvme SSD 做缓存, 这篇说的是如何用Nvme SSD做存储空间目前的限制是只能做单盘basic空间, 怎么做多盘RAID1, RAID5我还要研究一下。 这是在我的万兆网卡下的SMB读写速度: 写到最后下降了 ,因为这块东芝RC500 250G SSD的SLC模拟缓存用完了....... 建立NVme存储分区的步骤: 不好意思, 我就原文copy reddit论坛里面的内容了, 能操作的, 自然看得懂这点英文, 看不懂的,我觉得没有办法避免误操作的风险(毁原有存储空间), 还是不要试了。 我故意不返程 Login as root with SSH (I use putty in Windows) and type :
You will see the /dev/nvme0n1 or /dev/nvme1n1 depend on which slot you install the SSD. type:
You wil see the disk information. ( if your SSD at slot 2, use /dev/nvme1n1 instead) Now, create partition. Type: synopartition --part /dev/nvme0n1 12and answer 'Y' if you confirm Device Sectors (Version8: SupportRaid) /dev/nvme0n11 4980480 (2431 MB) /dev/nvme0n12 4194304 (2048 MB)Reserved size: 260352 ( 127 MB)Primary data partition will be created.WARNING: This action will erase all data on '/dev/nvme0n1' and repart it, are you sure to continue? [y/N]yCleaning all partitions...Creating sys partitions...Creating primary data partition...Please remember to mdadm and mkfs new partitions.it will create the partition that follow DSM required layout. Type
You will see the partition layout is created Create Basic Disk I have only tried to create Basic Disk Volume as I have only one SSD. For other type of volume/storage pool (RAID0, RAID1, SHR) , I have not tested. For Basic Disk, it need to create a single partition RAID1 device in order for DSM to recognize it. (as this is what DSM Storage Manager will do when create a Basic Disk Volume) Type
To see your current RAID setup AFAIK, md0 is system partition and md1 is system swap. You current volume/storage pool will start at md2. To current your NVME Basic disk, type:
(if md4 already exist, you should use next md number) And answer y mdadm: Note: this array has metadata at the start and may not be suitable as a boot device. If you plan to store '/boot' on this device please ensure that your boot-loader understands md/v1.x metadata, or use --metadata=0.90Continue creating array? ymdadm: Defaulting to version 1.2 metadatamdadm: array /dev/md5 started.Create Filesystem Type
as I use ext4 if need btrfs, type
which can use for vm storage After format complete , type rebootand after the machine bootup, you will see the Volume in DSM Storage Manager 没有回复可见内容, 不用回复“ 谢谢分享”, 我反对回复可见机制 本帖被以下淘专辑推荐:
|
vman 发表于 2020-2-14 20:51 DSM不认为这是SSD存储空间,不支持TRIM。 话说这个功能是探索性的添头, 打头的那篇黑裙Nvme SSD做缓存才是重要的, 有群晖DSM的完全支持 |
geniusjoy 发表于 2020-2-12 13:55 差不多就是这意思, 这两天等有空余的Nvme了, 试试通过mdadm 命令建更复杂的存储空间, 如Nvme RAID1 或者RAID5 |
Nvme RAID1 RAID0 或者RAID5 (起码3盘) 应该都可以了, 比如两个Nvme 盘 RAID0, 就是在首帖的mdadm命令那里, 改成:
这样组出来的存储空间当然是可用, 但唯一的问题是不支持Trim, Trim那一页是灰的, 这似乎是DSM 目前只考虑SATA SSD 做 存储空间的缘故 |
如果500G nvme ssd刷了二合一启动,做启动盘,剩下的空间怎么利用起来做存储呢?上面方式应该适合空盘
|
按照其他sata固态盘的扩容方式,发现nvme的可以启动,就是空间看不到,包括二合一里默认的那个9.4G的也看不到
|
doodle 发表于 2020-3-17 14:24 到我帖子顶部的那个链接里看怎么解决驱动问题 大家都看这篇添头, 不看真正关键的Nvme驱动的问题解决方法那一贴, 我也是醉了。 |
redddit原帖的老外说,他弄好之后系统更新了两次都没事,但是有一次ssd掉盘还是怎么的把数据全都删了
Just an update for anyone monitoring this. nvme做缓存就是个鸡肋,插傲腾16G那个上去还差不多,反正一条也才35块,看很多评测贴放120 240甚至两条的,真是钱多人傻啊 |
easy113 发表于 2020-3-31 04:26 我前几天大概测了NVME空间copy/做DDSM虚拟机, docker, jeelyfin 解码等, 很稳定 但你如果是白裙918,反正千兆网口速度限制在那里, 用nvme和SATA SSD 有啥差别?还不如不hack, 稳稳用SATA SSD |