How should I use my hard drive wisely?

why-be-banned

Member
Apr 4, 2023
47
4
8
I have a low performance machine that has a 32GB SD card and a 30GB eMMC.
After testing, the performance of SD cards is worse than that of eMMC.

1, Install the PVE system to the SD card, and store the virtual hard disk of the VM on the eMMC.
2. Install the PVE system to the eMMC, and store the virtual hard disk of the VM on the SD card.

Which method is better?
 
Overall...bad idea, SD card and eMMC are too slow and they will die early because they can handle even fewer write operations than consumer SSDs...so expect them to die early, regardless of what you choose to do in the end.

Install PVE on ZFS mirror with them...this gives you at least better read IO (not doubling, it will be just better), write performance will be of the slowest one and the system stays up when the first disk dies.
 
I have 2 cars; a bad car & a terrible car, how should we plan this trip?

Whatever you do, have ON A DIFFERENT DEVICE stored somewhere (USB ext. disk, cloud storage etc.) full & restorable backups of EVERYTHING; VMs, LXCs & also your PVE host. - YOU WILL NEED THESE IN THE FUTURE! -

Host backup is not currently completely possible - you could (easily on another PC) make an image of the host drive with dd, but at the least copy the relevant directories for future reference / restore, & document all changes you make on the PVE host (only when really necessary), plus all the configurations you have made (Host names, NW, storages etc.) so that you can very easily reinstall & start again. (That will probably happen).

Looking at your main question, that eMMC I guess when it dies will not be replaceable (unless you are a real tinkerer). That is something to think about now, & for that reason I would rather just use the SD card which is easily replaceable.

If it is not possible to run this node from an external USB hdd/sdd/m.2 (you should really research if this is not possible), then this is what I would do:

1. Make a normal PVE install to the SD-card - with NO ZFS (ZFS will only cause more unnecessary disk-writing to that SD-card without redundancy).
2. Do not use this device in a cluster. (Again less disk-writing).
3. All backups should only be performed to a different device. (Less disk-writing & anyway your biggest point-of-failure is that SD-card, so backups are almost pointless on that medium).
4. MAKE REGULAR BACKUPS OF EVRYTHING - as above.
5. Try to commit all logging to RAM - you can search this forum & others on the subject.
6. Probably don't use this server in a production environment.
7. Don't go running 30 VMs & 50 LXCs on this supercomputer.
8. Try & purchase a decent & reliable SD-card (probably 2 of them initially for easy replacement) - you can research them online.

Good luck.
 
Overall...bad idea, SD card and eMMC are too slow and they will die early because they can handle even fewer write operations than consumer SSDs...so expect them to die early, regardless of what you choose to do in the end.

Install PVE on ZFS mirror with them...this gives you at least better read IO (not doubling, it will be just better), write performance will be of the slowest one and the system stays up when the first disk dies.
I have 2 cars; a bad car & a terrible car, how should we plan this trip?

Whatever you do, have ON A DIFFERENT DEVICE stored somewhere (USB ext. disk, cloud storage etc.) full & restorable backups of EVERYTHING; VMs, LXCs & also your PVE host. - YOU WILL NEED THESE IN THE FUTURE! -

Host backup is not currently completely possible - you could (easily on another PC) make an image of the host drive with dd, but at the least copy the relevant directories for future reference / restore, & document all changes you make on the PVE host (only when really necessary), plus all the configurations you have made (Host names, NW, storages etc.) so that you can very easily reinstall & start again. (That will probably happen).

Looking at your main question, that eMMC I guess when it dies will not be replaceable (unless you are a real tinkerer). That is something to think about now, & for that reason I would rather just use the SD card which is easily replaceable.

If it is not possible to run this node from an external USB hdd/sdd/m.2 (you should really research if this is not possible), then this is what I would do:

1. Make a normal PVE install to the SD-card - with NO ZFS (ZFS will only cause more unnecessary disk-writing to that SD-card without redundancy).
2. Do not use this device in a cluster. (Again less disk-writing).
3. All backups should only be performed to a different device. (Less disk-writing & anyway your biggest point-of-failure is that SD-card, so backups are almost pointless on that medium).
4. MAKE REGULAR BACKUPS OF EVRYTHING - as above.
5. Try to commit all logging to RAM - you can search this forum & others on the subject.
6. Probably don't use this server in a production environment.
7. Don't go running 30 VMs & 50 LXCs on this supercomputer.
8. Try & purchase a decent & reliable SD-card (probably 2 of them initially for easy replacement) - you can research them online.

Good luck.

Thanks for the advice.
This is a very cheap machine. price of the machine ≈ price of the SD card ≈ $10.
I konw both of SD card and emmc are terrible , I just want "make the best use of everything".
I will set daily backup to remote storage.
 
Last edited:

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!