PVE install on USB thumb drive

symrex

Member
Jun 19, 2020
1
0
6
39
Hello,
I would like to separate my storage from Proxmox OS and would like to install proxmox on a thumb drive in a USB slot inside the server.
But as far as i know a thumb drive (flash drive) is not perfect for many write cycles.
My questions are:
* How often proxmox/linux do usually access the thumb drive? All images/data from VMs are will be on a raid; just Proxmox Webinterface/Deamons will be on usb drive.
* Does linux load at boot-up everything in the RAM and access the usb only when something is written?
* Is there a mode to tell linux to use flash drive as little as possible?
* How is it done in practice? Is storage and OS all mixed up on one HDD?

Sorry for that silly question, but I couldn't find any information about it anywhere.
 
This is in general not recommended. Most flash drives are rather slow and will wear out quickly because PVE writes quite a bit to disk all the time like RRD data or logs.

With that said, apparently there are flash drives which are built like SSDs and not your regular flash drive which might work. But I don't have any experience with them and how long they last.
 
  • Like
Reactions: symrex
I experienced that some models need frequent fstrim -av applications, especially before upgrading the system. As else it failed really often here.

Aaron is right, there are some drives which are basically a SSD. Just ensure that they're attached over a USB 3.x or better port and that they can use the USB Attached SCSI (UAS) protocol (available since USB 3.0) and not the old slow USB Mass Storage Bulk-Only Transport (BOT). You can find out how the USB drive is accessed by checking the lsusb -t output for the "Driver" property. "usb-storage" means old BOT, "uas" means new fancy attached as SCSI protocol.

That said, I only use it for irrelevant machines, where I do not bother if they got up in smoke from one moment to the other.
 
  • Like
Reactions: symrex

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!