扫描二维码关注官方公众号
12下一页
返回列表 发布新帖

[玩法/技巧] 黑白裙均可!DS918+ 使用Nvme SSD做存储空间的技巧

15727 27
发表于 2020-2-11 17:14:29 | 显示全部楼层 阅读模式

来吧兄弟,一起玩一起讨论!

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 jimmyjin 于 2020-2-11 19:50 编辑

在帖子http://www.gebi1.com/thread-295316-1-1.html  里我讨论了如何像白裙DS918+一样使用Nvme SSD 做缓存, 这篇说的是如何用Nvme SSD做存储空间目前的限制是只能做单盘basic空间, 怎么做多盘RAID1, RAID5我还要研究一下。
这是在我的万兆网卡下的SMB读写速度:
Read.JPG
写到最后下降了 ,因为这块东芝RC500 250G SSD的SLC模拟缓存用完了.......
ext4_write_big.JPG


建立NVme存储分区的步骤:
不好意思, 我就原文copy reddit论坛里面的内容了, 能操作的, 自然看得懂这点英文, 看不懂的,我觉得没有办法避免误操作的风险(毁原有存储空间), 还是不要试了。 我故意不返程
Login as root with SSH (I use putty in Windows) and type :
  1. ls /dev/nvme*
复制代码


You will see the /dev/nvme0n1 or /dev/nvme1n1 depend on which slot you install the SSD.
type:
  1. fdisk -l /dev/nvme0n1
复制代码


You wil see the disk information. ( if your SSD at slot 2, use /dev/nvme1n1 instead)
Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytes
Now, create partition. Type:
synopartition --part /dev/nvme0n1 12
and 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
  1. fdisk -l /dev/nvme0n1
复制代码

You will see the partition layout is created
Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: dosDisk identifier: 0xef61a3e4Device         Boot   Start       End   Sectors  Size Id Type/dev/nvme0n1p1         2048   4982527   4980480  2.4G fd Linux raid autodetect/dev/nvme0n1p2      4982528   9176831   4194304    2G fd Linux raid autodetect/dev/nvme0n1p3      9437184 500103449 490666266  234G fd Linux raid autodetect
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
  1. cat /proc/mdstat
复制代码


To see your current RAID setup
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]md2 : active raid1 sda3[0] sdb3[1]      5855700544 blocks super 1.2 [2/2] [UU]md3 : active raid1 sdc3[0] sdd3[1]      9761614848 blocks super 1.2 [2/2] [UU]md1 : active raid1 sda2[0] sdb2[1] sdc2[2] sdd2[3]      2097088 blocks [4/4] [UUUU]md0 : active raid1 sda1[0] sdb1[3] sdc1[1] sdd1[2]      2489920 blocks [4/4] [UUUU]
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:
  1. mdadm --create /dev/md4 --level=1 --raid-devices=1 --force /dev/nvme0n1p3
复制代码

(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
  1. mkfs.ext4 -F /dev/md5
复制代码

as I use ext4
mke2fs 1.42.6 (21-Sep-2012)Filesystem label=1.42.6-23824OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)Stride=0 blocks, Stripe width=0 blocks15335424 inodes, 61333024 blocks25600 blocks (0.04%) reserved for the super userFirst data block=0Maximum filesystem blocks=22103982081872 block groups32768 blocks per group, 32768 fragments per group8192 inodes per groupSuperblock backups stored on blocks:        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,        4096000, 7962624, 11239424, 20480000, 23887872Allocating group tables: doneWriting inode tables: doneCreating journal (32768 blocks): doneWriting superblocks and filesystem accounting information: done
if need btrfs, type
  1. mkfs.btrfs -f /dev/md5
复制代码


which can use for vm storage

After format complete , type
reboot
and after the machine bootup, you will see the Volume in DSM Storage Manager




没有回复可见内容, 不用回复“ 谢谢分享”, 我反对回复可见机制

本帖被以下淘专辑推荐:

评论27

Bond007Lv.8 发表于 2023-6-9 13:55:07 | 显示全部楼层
jimmyjin 发表于 2020-3-19 16:26
到我帖子顶部的那个链接里看怎么解决驱动问题
大家都看这篇添头, 不看真正关键的Nvme驱动的问题解决方法 ...

因为这篇文章通用性强,不局限于某个版本的操作系统!!!  7.2下也能这个方法的。
回复 点赞

使用道具 举报

johnny23857Lv.3 发表于 2023-4-25 19:53:22 | 显示全部楼层
盘已经按照大佬的方法搞好了,就是这个918+6.2.3的黑裙有没有nvme驱动支持?只看到了6.2.2的
回复 点赞

使用道具 举报

ge422798808SVIPLv.3 发表于 2022-6-10 17:35:03 | 显示全部楼层
这种方法支持系统升级吗?比如从dsm6升级到dsm7,会不会造成损毁?
回复 点赞

使用道具 举报

wqshanLv.2 发表于 2022-3-16 13:17:19 | 显示全部楼层
学习学习。英文太多
回复 点赞

使用道具 举报

qqwqtzdLv.2 发表于 2022-3-16 07:02:39 | 显示全部楼层
感谢大佬!!!!!!!!!!!!!!!!!!
回复 点赞

使用道具 举报

xpmgLv.6 发表于 2022-3-15 08:37:06 | 显示全部楼层
必须要谢谢分享楼主
回复 点赞

使用道具 举报

lizhenbjLv.5 发表于 2020-10-30 16:14:44 | 显示全部楼层
技术贴,刚才在你上个帖子还问这个事情来着,没想到这就有了。感谢分享。最近在准备把黑裙重新组装一下,到时候可以试一下这个。
回复 点赞

使用道具 举报

easy113Lv.4 发表于 2020-4-3 05:36:02 | 显示全部楼层
jimmyjin 发表于 2020-3-31 15:00
我前几天大概测了NVME空间copy/做DDSM虚拟机, docker, jeelyfin 解码等, 很稳定
但你如果是白裙918,反 ...

用ssd就是为了省电啊,我原来是3个2.5的1T加1个热备,要是3个盘都休眠了,我再访问下网页那不是又唤醒了,而且三星sm863那个22110的也很便宜,寿命也够,要是918能装4个hdd加一两个nvme做储存就好了
nvme做缓存真的是鸡肋中的鸡肋
回复 点赞

使用道具 举报

小开心Lv.3 发表于 2020-3-31 19:37:30 | 显示全部楼层
学习了,紫薯布丁
回复 点赞

使用道具 举报

castockLv.6 发表于 2020-3-31 15:31:07 | 显示全部楼层
技术小白还是不试了,谢谢LZ分享!
回复 点赞

使用道具 举报

jimmyjin楼主Lv.6 发表于 2020-3-31 15:00:08 | 显示全部楼层
easy113 发表于 2020-3-31 04:26
redddit原帖的老外说,他弄好之后系统更新了两次都没事,但是有一次ssd掉盘还是怎么的把数据全都删了不知道 ...

我前几天大概测了NVME空间copy/做DDSM虚拟机, docker, jeelyfin 解码等, 很稳定
但你如果是白裙918,反正千兆网口速度限制在那里, 用nvme和SATA SSD 有啥差别?还不如不hack, 稳稳用SATA SSD
回复 点赞

使用道具 举报

easy113Lv.4 发表于 2020-3-31 04:26:27 | 显示全部楼层
redddit原帖的老外说,他弄好之后系统更新了两次都没事,但是有一次ssd掉盘还是怎么的把数据全都删了
Just an update for anyone monitoring this.

I did the update a day after this was first posted, since I had a NVMe drive that was sitting idle in the DS918. I copied all my docker containers over, and launched them so my spindle drives could go idle.



Everything worked fine for week, however magically all my directories and files on /volume4 disappeared, and all the docker data was lost, without any notice. This was before the DSM update, so clearly something else happened that nuked the partition. The DSM update installed last night, and /volume4 is still there, so the changes persist updates, but all the volume data is lost.
不知道楼主有没有对稳定性做个测试?我捡便宜弄了台918,这两天在倒数据呢,想淘宝海淘一条sm963 22110 480gb的来直接当储存空间用,不知道有没有可行性,wen'ding'cheng'du'ru'he
nvme做缓存就是个鸡肋,插傲腾16G那个上去还差不多,反正一条也才35块,看很多评测贴放120 240甚至两条的,真是钱多人傻啊
回复 点赞

使用道具 举报

jimmyjin楼主Lv.6 发表于 2020-3-19 16:26:59 | 显示全部楼层
doodle 发表于 2020-3-17 14:24
按照其他sata固态盘的扩容方式,发现nvme的可以启动,就是空间看不到,包括二合一里默认的那个9.4G的也看不 ...

到我帖子顶部的那个链接里看怎么解决驱动问题
大家都看这篇添头, 不看真正关键的Nvme驱动的问题解决方法那一贴, 我也是醉了。
回复 点赞

使用道具 举报

kokiaLv.2 发表于 2020-3-17 14:34:30 | 显示全部楼层
很强很强,,牛
回复 点赞

使用道具 举报

doodleLv.1 发表于 2020-3-17 14:24:00 | 显示全部楼层
按照其他sata固态盘的扩容方式,发现nvme的可以启动,就是空间看不到,包括二合一里默认的那个9.4G的也看不到
回复 点赞

使用道具 举报

doodleLv.1 发表于 2020-3-17 14:22:52 | 显示全部楼层
如果500G nvme ssd刷了二合一启动,做启动盘,剩下的空间怎么利用起来做存储呢?上面方式应该适合空盘
回复 点赞

使用道具 举报

非凡Lv.4 发表于 2020-2-17 11:35:27 | 显示全部楼层
蜗牛党路过。
回复 点赞

使用道具 举报

jimmyjin楼主Lv.6 发表于 2020-2-16 10:20:36 | 显示全部楼层
vman 发表于 2020-2-14 20:51
技术性很强啊,这么多英文呢。但我听说很容易损伤硬盘

DSM不认为这是SSD存储空间,不支持TRIM。
话说这个功能是探索性的添头, 打头的那篇黑裙Nvme SSD做缓存才是重要的, 有群晖DSM的完全支持
回复 点赞

使用道具 举报

vmanLv.5 发表于 2020-2-14 20:51:17 | 显示全部楼层
技术性很强啊,这么多英文呢。但我听说很容易损伤硬盘
回复 点赞

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表