Update Servers & Workflows/Linux/Virtualization/Proxmox/ZFS-Over-iSCSI.md
This commit is contained in:
@ -10,24 +10,25 @@
|
|||||||
|
|
||||||
## Configure SSH Key Exchange
|
## Configure SSH Key Exchange
|
||||||
The first step is creating SSH trust between the ProxmoxVE cluster nodes and the TrueNAS storage appliance. You will leverage the ProxmoxVE `shell` to run the following commands.
|
The first step is creating SSH trust between the ProxmoxVE cluster nodes and the TrueNAS storage appliance. You will leverage the ProxmoxVE `shell` to run the following commands.
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
mkdir /etc/pve/priv/zfs
|
mkdir /etc/pve/priv/zfs
|
||||||
ssh-keygen -f /etc/pve/priv/zfs/192.168.101.100_id_rsa # (1)
|
ssh-keygen -f /etc/pve/priv/zfs/192.168.101.100_id_rsa # (1)
|
||||||
ssh-copy-id -i /etc/pve/priv/zfs/192.168.101.100_id_rsa.pub root@192.168.101.100 # (2)
|
ssh-copy-id -i /etc/pve/priv/zfs/192.168.101.100_id_rsa.pub root@192.168.101.100 # (2)
|
||||||
ssh -i /etc/pve/priv/zfs/192.168.101.100_id_rsa root@192.168.101.100 # (3)
|
ssh -i /etc/pve/priv/zfs/192.168.101.100_id_rsa root@192.168.101.100 # (3)
|
||||||
apt-get install librest-client-perl git # (4)
|
apt-get install librest-client-perl git # (4)
|
||||||
iscsiadm --mode discovery --op update --type sendtargets --portal 192.168.101.100
|
iscsiadm --mode discovery --op update --type sendtargets --portal 192.168.101.100
|
||||||
iscsiadm -m node -T iqn.2005-10.org.moon-storage-01.ctl:proxmox-zfs-storage -p 192.168.101.100 -l
|
iscsiadm -m node -T iqn.2005-10.org.moon-storage-01.ctl:proxmox-zfs-storage -p 192.168.101.100 -l
|
||||||
iscsiadm -m node # (5)
|
iscsiadm -m node # (5)
|
||||||
iscsiadm -m session # (6)
|
iscsiadm -m session # (6)
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Do not set a password. It will break the automatic functionality.
|
1. Do not set a password. It will break the automatic functionality.
|
||||||
2. Send the SSH key to the TrueNAS server.
|
2. Send the SSH key to the TrueNAS server.
|
||||||
3. Connect to the TrueNAS server at least once to finish establishing the connection.
|
3. Connect to the TrueNAS server at least once to finish establishing the connection.
|
||||||
4. Some prerequisites that need to be installed.
|
4. Some prerequisites that need to be installed.
|
||||||
5. Making sure that it's actually communicating with the iSCSI target successfully or not.
|
5. Making sure that it's actually communicating with the iSCSI target successfully or not.
|
||||||
6. Making sure that it's actually communicating with the iSCSI target successfully or not.
|
6. Making sure that it's actually communicating with the iSCSI target successfully or not.
|
||||||
|
|
||||||
| **IP Address** | **Hostname** | **Additional Notes** |
|
| **IP Address** | **Hostname** | **Additional Notes** |
|
||||||
| :--- | :--- | :--- |
|
| :--- | :--- | :--- |
|
||||||
|
Reference in New Issue
Block a user