Skip to content

Commit

Permalink
proxmox/pve.md: Correct way to auto-login iSCSI on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Nov 5, 2023
1 parent 0ca88d4 commit 7f37e9b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
6 changes: 5 additions & 1 deletion docs/infrastructure/intranet/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
icon: material/server-network
---

# Servers Intranet

Servers Intranet connects all the servers together, including physical servers and virtual machines.
Expand All @@ -8,7 +12,7 @@ Servers Intranet connects all the servers together, including physical servers a

以上架构图由 iBug 在 2023 年 11 月更新。

??? warning "以下是一些过时的信息,也许还有点参考价值"
??? warning "此处是一些过时的信息,也许还有点参考价值"

The network contains three parts:

Expand Down
23 changes: 17 additions & 6 deletions docs/infrastructure/proxmox/pve.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,26 @@ esxi-5 这端的配置则将对应的 iface 名称和 IP 地址等全部对换

### iSCSI

由于我们没有研究清楚 open-iscsi 的开机自动挂载机制,因此我们选择直接 override 对应的 service 来完成这个任务
设置 iSCSI 开机自动登录

```ini title="$ systemctl edit open-iscsi.service"
[Service]
ExecStart=
ExecStart=/sbin/iscsiadm -d8 -m node -p 192.168.10.1:3260 --login
ExecStart=/lib/open-iscsi/activate-storage.sh
```shell
iscsiadm -m node -T iqn.2002-10.com.infortrend:raid.sn8223150.001 -p 192.168.10.1:3260 -o update -n node.startup -v automatic
iscsiadm -m node -T iqn.2002-10.com.infortrend:raid.sn8223150.001 -p 192.168.10.1:3260 -o update -n node.conn[0].startup -v automatic
```

参考链接:<https://library.netapp.com/ecmdocs/ECMP1654943/html/GUID-8EC685B4-8CB6-40D8-A8D5-031A3899BCDC.html>

??? warning "过时信息"

由于我们没有研究清楚 open-iscsi 的开机自动挂载机制,因此我们选择直接 override 对应的 service 来完成这个任务:

```ini title="$ systemctl edit open-iscsi.service"
[Service]
ExecStart=
ExecStart=/sbin/iscsiadm -d8 -m node -T iqn.2002-10.com.infortrend:raid.sn8223150.001 -p 192.168.10.1:3260 --login
ExecStart=/lib/open-iscsi/activate-storage.sh
```

若 iSCSI 连接成功,应该可以在系统中看到一个新的硬盘,容量为 14.55 TiB,型号显示为 RS-3116I-S42-6。

### rootfs 备份 {#rootfs-backup}
Expand Down

0 comments on commit 7f37e9b

Please sign in to comment.