Update Servers/Virtualization/Proxmox/Configuring iSCSI-based Cluster Storage.md
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 6s
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 6s
This commit is contained in:
@@ -114,15 +114,23 @@ cp -av /etc/ctl.conf /etc/ctl.conf.$(date +%Y%m%d-%H%M%S).bak 2>/dev/null || tru
|
|||||||
# Write a clean /etc/ctl.conf
|
# Write a clean /etc/ctl.conf
|
||||||
cat > /etc/ctl.conf <<'EOF'
|
cat > /etc/ctl.conf <<'EOF'
|
||||||
# --- Bunny Lab: Proxmox iSCSI (CLI-only) ---
|
# --- Bunny Lab: Proxmox iSCSI (CLI-only) ---
|
||||||
|
auth-group "no-auth" {
|
||||||
|
auth-type none
|
||||||
|
initiator-name "iqn.1993-08.org.debian:01:5b963dd51f93" # cluster-node-01 ("cat /etc/iscsi/initiatorname.iscsi")
|
||||||
|
initiator-name "iqn.1993-08.org.debian:01:1b4df0fa3540" # cluster-node-02 ("cat /etc/iscsi/initiatorname.iscsi")
|
||||||
|
initiator-name "iqn.1993-08.org.debian:01:5669aa2d89a2" # cluster-node-03 ("cat /etc/iscsi/initiatorname.iscsi")
|
||||||
|
}
|
||||||
|
|
||||||
# Listen on all interfaces on the default iSCSI port
|
# Listen on all interfaces on the default iSCSI port
|
||||||
portal-group "pg0" {
|
portal-group "pg0" {
|
||||||
listen 0.0.0.0:3260
|
listen 0.0.0.0:3260
|
||||||
|
discovery-auth-group "no-auth"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create a target IQN
|
# Create a target IQN
|
||||||
target "iqn.2026-01.io.bunny-lab:storage" {
|
target "iqn.2026-01.io.bunny-lab:storage" {
|
||||||
portal-group "pg0"
|
portal-group "pg0"
|
||||||
|
auth-group "no-auth"
|
||||||
|
|
||||||
# Export LUN 0 backed by the zvol device
|
# Export LUN 0 backed by the zvol device
|
||||||
lun 0 {
|
lun 0 {
|
||||||
@@ -144,17 +152,7 @@ ctladm portlist -v | egrep -i '(^Port|iscsi|listen=)'
|
|||||||
```
|
```
|
||||||
|
|
||||||
!!! success
|
!!! success
|
||||||
At this point, the iSCSI target is live and correctly exposing a block device to initiators.
|
At this point, the iSCSI target is live and correctly exposing a block device to initiators. You may now proceed to **Connect from ProxmoxVE Nodes** section.
|
||||||
You may now proceed to **Connect from Proxmox VE Nodes**.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
If you want, next we can:
|
|
||||||
|
|
||||||
* Adjust the **earlier sections** to explicitly lock the document into “CLI-only iSCSI mode”
|
|
||||||
* Add a **one-line guardrail** near the top of the document to prevent future foot-guns
|
|
||||||
* Or validate the final CTL state against what Proxmox expects before PV creation
|
|
||||||
|
|
||||||
|
|
||||||
## Connect from ProxmoxVE Nodes
|
## Connect from ProxmoxVE Nodes
|
||||||
Perform the following **on each Proxmox node**.
|
Perform the following **on each Proxmox node**.
|
||||||
@@ -174,6 +172,7 @@ iscsiadm -m node --login
|
|||||||
iscsiadm -m session -P 3
|
iscsiadm -m session -P 3
|
||||||
|
|
||||||
### Verify Device
|
### Verify Device
|
||||||
|
# If everything works successfully, you should see something like "sdi 8:128 0 8T 0 disk".
|
||||||
lsblk
|
lsblk
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -197,12 +196,12 @@ pvscan
|
|||||||
vgscan
|
vgscan
|
||||||
```
|
```
|
||||||
|
|
||||||
### Add Storage (GUI or CLI)
|
### Add Storage (GUI)
|
||||||
**Datacenter → Storage → Add → LVM**
|
**Datacenter → Storage → Add → LVM**
|
||||||
|
|
||||||
- ID: `iscsi-lvm`
|
- ID: `iscsi-lvm`
|
||||||
- Volume Group: `vg_proxmox_iscsi`
|
- Volume Group: `vg_proxmox_iscsi`
|
||||||
- Content: `Disk image`
|
- Content: `Disk image, Container`
|
||||||
- Shared: ✔️
|
- Shared: ✔️
|
||||||
|
|
||||||
## Validation
|
## Validation
|
||||||
|
|||||||
Reference in New Issue
Block a user