Update Servers/Virtualization/Proxmox/Configuring iSCSI-based Cluster Storage.md
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 7s

This commit is contained in:
2026-01-06 21:40:38 -07:00
parent 25d859af8f
commit 014d169236

View File

@@ -30,7 +30,7 @@ ZFS Pool
└─ VM Disks └─ VM Disks
``` ```
## Step 1 Create a Dedicated Zvol for Proxmox ## Create a Dedicated Zvol for Proxmox
### Variables ### Variables
Adjust as needed before execution. Adjust as needed before execution.
@@ -56,7 +56,7 @@ zfs create -V ${ZVOL_SIZE} \
--- ---
## Step 2 Configure iSCSI Target (TrueNAS CLI) ## Configure iSCSI Target (TrueNAS CLI)
```sh ```sh
# Enable iSCSI Service # Enable iSCSI Service
service iscsitarget start service iscsitarget start
@@ -78,7 +78,7 @@ ctladm add -t proxmox-target -l proxmox-extent
!!! tip !!! tip
At this point, the LUN is live and can be discovered by initiators. At this point, the LUN is live and can be discovered by initiators.
## Step 3 Connect from Proxmox VE Nodes ## Connect from Proxmox VE Nodes
Perform the following **on each Proxmox node**. Perform the following **on each Proxmox node**.
```sh ```sh
@@ -96,7 +96,7 @@ iscsiadm -m node --login
lsblk lsblk
``` ```
## Step 4 Create Shared LVM (One Node Only) ## Create Shared LVM (One Node Only)
!!! warning "Important" !!! warning "Important"
**Only run LVM creation on ONE node**. All other nodes will only scan. **Only run LVM creation on ONE node**. All other nodes will only scan.
@@ -109,7 +109,7 @@ pvcreate /dev/sdX
vgcreate vg_proxmox_iscsi /dev/sdX vgcreate vg_proxmox_iscsi /dev/sdX
``` ```
## Step 5 Register Storage in Proxmox ## Register Storage in Proxmox
### Rescan LVM (Other Nodes) ### Rescan LVM (Other Nodes)
```sh ```sh
@@ -126,7 +126,7 @@ vgscan
- Content: `Disk image` - Content: `Disk image`
- Shared: ✔️ - Shared: ✔️
## Step 6 Validation ## Validation
- Snapshot create / revert / delete - Snapshot create / revert / delete
- Live migration between nodes - Live migration between nodes
@@ -135,13 +135,15 @@ vgscan
!!! success !!! success
If all validation tests pass, the storage is production-ready. If all validation tests pass, the storage is production-ready.
## Step 7 Decommission NFS (After Cutover) # Cutover-specific commands, not relevant to commands above if you are setting everything up new without NFS being a pre-existing thing.
## Decommission NFS (After Cutover)
```sh ```sh
zfs destroy CLUSTER-STORAGE/NFS-STORAGE zfs destroy CLUSTER-STORAGE/NFS-STORAGE
``` ```
## Step 8 Expand iSCSI Storage (No Downtime) ## Expand iSCSI Storage (No Downtime)
```sh ```sh
# Expand Zvol (TrueNAS) # Expand Zvol (TrueNAS)