Hopefully this will help someone down the road. I have it working for Promox 7 but the performance is horrible. My drive was too warn to utilize multiple controllers, so I couldn't verify if that'll help. I'll just use this drive for Hyper-v instead.
If you still want to use this drive for Proxmox 7, perform the following steps
# Step 1. Install iomemory-vsl
# Step 2. Grub Changes (MANDATORY!!!)
# WARNING: You must perform this step if you want your machine to boot afterwards
* Open the following file:
# For Intel CPUs ONLY, modify GRUB_CMDLINE_LINUX_DEFAULT to
# For AMD CPUs ONLY, modify GRUB_CMDLINE_LINUX_DEFAULT to
* Save the file
# Step 3. Install Fio Utils
# (Optional) Step 4. Update Power from 25Watts to 35Watts
# Add the following line:
# The * will set this for ALL of your Fusion devices. If you have more than one device, you would replace the * with the serial number of your device, which can be found using: fio-status -a
# Save the file
# Reboot your system
# Step 5. Create a LVM-Thin group that is visible within Proxmox
## Step 5a: Delete any existing partitions and Create a new one
* If you run fio-status -a and you notice a fioa, you'll need to delete said partition
* run the following command:
type
type
type
## Step 5b. Create Volume
## Step 5c. Create a volume group
## Step 5d. Create a LVM-Thin pool
The LVM-Thin volume should be present in Promox. You may need to go to Datacenter - Storage and add it there.
If you have a card that's relatively new. You can split this single drive into multiple controllers. I couldn't test the performance impact of this change as my drive is too worn. Theoretically, you should double your IOPs if it's formatted in 512b or up to 80% formatted in 4k. I did NOT test this as I grabbed this information from SanDisk's documentation.
# NOTE YOU WILL LOSE ALL YOUR DATA ON YOUR DRIVE DOING THIS
# Step 1. Detach drive
# Step 2. Split drive into multiple controllers
You may need to update the path to match your firmware version but /usr/share/fio/firmware is the default location
# Step 3. Reboot
# Step 4. Format the disks
If everything worked, you should notice a
Run the following command to format said devices
# Step 5. Create RAID 0
If the devices are not attached, you may need to run the following commands:
To create a RAID 0 with the split controllers, we'll need to create two volumes
If you still want to use this drive for Proxmox 7, perform the following steps
# Step 1. Install iomemory-vsl
Code:
apt update && apt --assume-yes install gcc fakeroot build-essential debhelper rsync dkms zip unzip git pve-headers pve-headers-`uname -r` && apt --assume-yes upgrade && apt --assume-yes autoremove && \
mkdir /home/temp && cd /home/temp && \
git clone https://github.com/snuf/iomemory-vsl && \
cd iomemory-vsl && \
make dkms
# Step 2. Grub Changes (MANDATORY!!!)
# WARNING: You must perform this step if you want your machine to boot afterwards
* Open the following file:
Code:
nano /etc/default/grub
# For Intel CPUs ONLY, modify GRUB_CMDLINE_LINUX_DEFAULT to
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet iommu=pt"
# For AMD CPUs ONLY, modify GRUB_CMDLINE_LINUX_DEFAULT to
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt"
* Save the file
# Step 3. Install Fio Utils
Code:
cd /home/temp && \
wget -O fio-common_3.2.16.1731-1.0_amd64.deb https://www.dropbox.com/s/pd2ohfaufhwqc34/fio-common_3.2.16.1731-1.0_amd64.deb?dl=1 && \
wget -O fio-firmware-fusion_3.2.16.20180821-1_all.deb https://www.dropbox.com/s/kcn5agi6lyikicf/fio-firmware-fusion_3.2.16.20180821-1_all.deb?dl=1 && \
wget -O fio-sysvinit_3.2.16.1731-1.0_all.deb https://www.dropbox.com/s/g39l6lg9of6eqze/fio-sysvinit_3.2.16.1731-1.0_all.deb?dl=1 && \
wget -O fio-util_3.2.16.1731-1.0_amd64.deb https://www.dropbox.com/s/57huby17mteg6wp/fio-util_3.2.16.1731-1.0_amd64.deb?dl=1 && \
dpkg -i fio-firmware-fusion_3.2.16.20180821-1_all.deb fio-util_3.2.16.1731-1.0_amd64.deb fio-sysvinit_3.2.16.1731-1.0_all.deb fio-common_3.2.16.1731-1.0_amd64.deb
# (Optional) Step 4. Update Power from 25Watts to 35Watts
Code:
nano /etc/modprobe.d/iomemory-vsl.conf
# Add the following line:
# The * will set this for ALL of your Fusion devices. If you have more than one device, you would replace the * with the serial number of your device, which can be found using: fio-status -a
Code:
options iomemory-vsl external_power_override=*:35
# Save the file
# Reboot your system
Code:
update-initramfs -u && reboot
# Step 5. Create a LVM-Thin group that is visible within Proxmox
## Step 5a: Delete any existing partitions and Create a new one
* If you run fio-status -a and you notice a fioa, you'll need to delete said partition
* run the following command:
Code:
fdisk /dev/fioa
type
d
to delete partitiontype
n
to create new partition (press 'y' and accept the defaults)type
w
to write changes## Step 5b. Create Volume
Code:
pvcreate /dev/fioa1
## Step 5c. Create a volume group
Code:
vgcreate fusion /dev/fioa1
## Step 5d. Create a LVM-Thin pool
Code:
lvcreate -l 100%FREE --thinpool lvfusion fusion
The LVM-Thin volume should be present in Promox. You may need to go to Datacenter - Storage and add it there.
If you have a card that's relatively new. You can split this single drive into multiple controllers. I couldn't test the performance impact of this change as my drive is too worn. Theoretically, you should double your IOPs if it's formatted in 512b or up to 80% formatted in 4k. I did NOT test this as I grabbed this information from SanDisk's documentation.
# NOTE YOU WILL LOSE ALL YOUR DATA ON YOUR DRIVE DOING THIS
# Step 1. Detach drive
Code:
fio-detach /dev/fct0
# Step 2. Split drive into multiple controllers
You may need to update the path to match your firmware version but /usr/share/fio/firmware is the default location
Code:
fio-update-iodrive --split -d /dev/fct0 /usr/share/fio/firmware/fusion_3.2.16-20180821.fff
# Step 3. Reboot
Code:
reboot
# Step 4. Format the disks
If everything worked, you should notice a
/dev/fct0
and /dev/fct1
within fio-status -a
Run the following command to format said devices
Code:
fio-format /dev/fct0 /dev/fct1
# Step 5. Create RAID 0
If the devices are not attached, you may need to run the following commands:
Code:
fio-attach /dev/fct0
fio-attach /dev/fct1
To create a RAID 0 with the split controllers, we'll need to create two volumes
Code:
pvcreate /dev/fioa /dev/fiob
Code:
# Create a volume group for said volumes
vgcreate fusion-vg /dev/fioa /dev/fiob
Code:
# Create a LVM Pool (-i2 indicates 2 stripes)
lvcreate -l 100%VG -n fusion-lv -i2 fusion-vg
Last edited: