HOWTO: Change Thin LVM to Directory Storage in Proxmox 7.x


In Proxmox 7.x LVM thin is the default local storage for VMs.  However I prefer the old method of directory based storage for local storage.  You can find this information in the proxmox wiki.  These are my terse notes to get the job done.

The Conversion

This should only be done on a new installation of proxmox.  We will be mounting the storage to /var/lib/vz. If you have data in that directory you will lose it.

Start by logging into the Proxmox gui. Click on cluster then select storage. Remove the lvm-thin storage.

Next you will need to ssh into your Proxmox node. Type the following to set everything up.
> sudo lvremove pve/data
> sudo lvcreate –name data -l +100%FREE pve
> sudo mkfs.ext4 /dev/pve/data

Add the following to /etc/fstab
> nano -w /etc/fstab

/dev/pve/data /var/lib/vz ext4 defaults 0 1

Restart proxmox.
> sudo reboot


Once rebooted you can log into the gui and see your new local directory storage.  Maybe someday I’ll switch to lvm-thin or zfs.

Configure Proxmox 7.x for a Low Power Home Server


I’ve been using low power CPUs for some time. This has caused some issues when I’ve needed more CPU processing power. My goal is to move to more power hungry CPUs but still try and save power. To this end I decided to change the CPU governor Proxmox uses. I also switched to using a small form factor case with its lower power power supply.

Configure CPU for Low Power

To make these changes you’ll need to ssh into your proxmox host.

Lat’s start by looking at your current CPU freequency.
> cat /proc/cpuinfo | grep MHz

The above command returns the following for my server.

cpu MHz : 3800.000
cpu MHz : 1760.822
cpu MHz : 3800.000
cpu MHz : 3800.000

First update repos.
> sudo apt update

Install acpi utilities.
> sudo apt install acpi-support acpid acpi

Its time to edit grub.
> nano -w /etd/default/grub

Look for the line that starts with “GRUB_CMDLINE_LINUX_DEFAULT” and add “intel_pstate=disable”..

Mine looks like this.

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_pstate=disable"

Save and now rebuild grub.
> update-grub

Reboot the system and ssh back in. Change the governor being used.
> echo “conservative” | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Check your new CPU frequency.
> cat /proc/cpuinfo | grep MHz

Mine shows then following when idle.

cpu MHz : 1605.058
cpu MHz : 1600.000
cpu MHz : 1600.000
cpu MHz : 1600.000

Edit crontab to make the changes permanent.
> crontab -e

add the following to the bottom and save.

@reboot  echo "conservative" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor



This is a quick tutorial that I hope helps someone out.