From 4a7870b264eb64016ebeabe1640fc03074beee78 Mon Sep 17 00:00:00 2001 From: iBug Date: Mon, 6 Nov 2023 03:17:55 +0800 Subject: [PATCH] proxmox/pve.md: Correct way to auto-login iSCSI on startup --- docs/infrastructure/intranet/index.md | 4 ++++ docs/infrastructure/proxmox/pve.md | 23 +++++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/docs/infrastructure/intranet/index.md b/docs/infrastructure/intranet/index.md index d2ddf392..c1ea4a64 100644 --- a/docs/infrastructure/intranet/index.md +++ b/docs/infrastructure/intranet/index.md @@ -1,3 +1,7 @@ +--- +icon: material/server-network +--- + # Servers Intranet Servers Intranet connects all the servers together, including physical servers and virtual machines. diff --git a/docs/infrastructure/proxmox/pve.md b/docs/infrastructure/proxmox/pve.md index 52a92030..9c37a08f 100644 --- a/docs/infrastructure/proxmox/pve.md +++ b/docs/infrastructure/proxmox/pve.md @@ -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 ``` +参考链接: + +??? 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}