2022-09-25 17:55:41 +08:00
+++
author = "FlintyLemming"
2022-09-25 18:03:02 +08:00
title = "在群晖上配置 iSCSI 并在 Windows 下使用"
2022-09-25 17:55:41 +08:00
slug = "00187875246c440fb8f50bb1354ce81b"
date = "2020-05-31"
description = ""
categories = ["HomeLab", "Windows"]
tags = ["Synology", "NAS"]
2024-08-22 12:42:00 +08:00
image = "https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/title.avif"
2022-09-25 17:55:41 +08:00
+++
最近电脑的硬盘不够啦,但我有个 NAS, 里边好几块硬盘, 存储是没问题, 但是如果想跟电脑内置的硬盘一样用就有困难了。无论是直接安装在网络上的硬盘里的程序还是游戏, 经常会有问题, 于是经人提醒有一个 iSCSI 的功能。
于是就拿今天刚到的 2T 西数蓝盘试试水。关于机械硬盘这个问题,我觉得一般人来说买个西数蓝盘差不多了,同等级的希捷和东芝我都有接触过坏盘。说回 iSCSI, 听说性能不是太好, 不过我寻思着机械硬盘性能本来就那样, 我就试试看呗, 想看性能表现的直接看到最后就好。下面介绍配置步骤。
1. 在应用程序中找到 iSCSI Manager, 打开
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/1.avif)
2022-09-25 17:55:41 +08:00
2. 点击左侧的 Target, 点击后新增一个 iSCSI target, 在第一步中什么都不用改, 直接下一步
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/2.avif)
2022-09-25 17:55:41 +08:00
3. 这里也什么都不用改,直接新增一个 LUN
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/3.avif)
2022-09-25 17:55:41 +08:00
4. 这里先选择一个存储位置,再根据实际情况选择给这个服务分配多少空间,我这里就将这块 2T 的硬盘全部分配给这个服务
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/4.avif)
2022-09-25 17:55:41 +08:00
5. 检查一下,没什么问题后点应用就可以了。
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/5.avif)
2022-09-25 17:55:41 +08:00
6. 然后我们需要开启 Windows 里的 iSCSI 服务,直接使用搜索功能就可以搜索到配置工具
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/6.avif)
2022-09-25 17:55:41 +08:00
7. 第一次使用会让我们先把服务起起来,顺便会帮我们设置开机自启
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/7.avif)
2022-09-25 17:55:41 +08:00
8. 在“目标”里填上 NAS 的本地 IP 地址,然后点击“快速连接”
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/8.avif)
2022-09-25 17:55:41 +08:00
9. 这样就自动连上 NAS 的 iSCSI 服务了,点完成并确定上一级设置。
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/9.avif)
2022-09-25 17:55:41 +08:00
10. 然后我们需要挂载这个分区,通过搜索或者右键 Windows 菜单按钮,打开 磁盘管理 工具
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/10.avif)
2022-09-25 17:55:41 +08:00
11. 这里就直接出现了引导挂在新分区的窗口,保留为 GPT 格式的分区,不需要更改,直接点确定
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/11.avif)
2022-09-25 17:55:41 +08:00
12. 之后直接和计算机内的物理磁盘一样的操作,对着新挂载的硬盘直接新建简单卷
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/12.avif)
2022-09-25 17:55:41 +08:00
13. 具体过程不赘述了,自己根据情况分配空间,我这里就分一个区了
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/13.avif)
2022-09-25 17:55:41 +08:00
14. 之后在资源管理器中就可以看到新盘符了,跟在电脑里的物理磁盘一样
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/14.avif)
2022-09-25 17:55:41 +08:00
下面是关心的性能表现,我安装了一个大型程序,模拟硬盘满负载时候的表现,好像还不错呢
2024-08-22 12:42:00 +08:00
![](https://hf-public-source.mitsea.com:8840/images/blog/posts/2020/05/%E5%9C%A8%E7%BE%A4%E6%99%96%E4%B8%8A%E9%85%8D%E7%BD%AE%20iSCSI%20%E5%B9%B6%E5%9C%A8%20Windows%20%E4%B8%8B%E4%BD%BF%E7%94%A8/15.avif)
2022-09-26 21:25:01 +08:00
> Photo by [Patrick Lindenberg](https://unsplash.com/@heapdump?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/disk?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)