Storage Model Advice File Server

xhitm3n

New Member
Nov 10, 2015
16
0
1
Hi all,
I have been having problems with my current storage model,in one of my LXC that have Samba, it caches every file i transfer to ram and doesn't restore it, only if i delete it or move outside the server or restart the Container... Anyway my LXC is accessing a Physical Disk, that i mounted on the Host and has a ext4 file system.
Since im new to proxmox, what would be the best way to mount my disk? to access it in LXC and use it with Samba? is it a bad practice to mount it directly in the host? should i make RAW image and use it in the container, or do something completely different? i am going to make a NAS and attach it with NFS later. But for now i only use this disk for storage, should i keep it physical mounted or make a new IMAGE of it? i dont intent to make snapshots or something, it will store my backups, photos etc.. from all my home devices, and i want to get the most performance out of it, i currently transfer files at 113mbs, only when the RAM hits max on the LXC it drops to 70/80mbs, would i see those speeds if i create a DISK Image?
Thanks
 
> currently transfer files at 113mbs, only when the RAM hits max on the LXC it drops to 70/80mbs, would i see those speeds if i create a DISK Image?

this is the expected behaviour

the kernel will first write the blocks in RAM, because it's fast and sync that to disk in the background
when the physical RAM is full, there is not no possibility of caching of RAM, hence you're limited by the speed of your hard drive
 
I kown i asked this on other thread, but it never flush it again, so when i need to transfer another file, the first one is gonna be permanent on the RAM, and from there its gonna always slow down transfers i get 80mb, but with alot of spikes from 10mb/80mbs, this didint happen to me on ESXi, so i might need a new way of doing this, like disk image or something... on esxi it was under a VMDK on a VMFS disk.
Thanks for your help!
 
That works, it seems to reboot my LXC, but is this the only way i can do it? if so my only option would be to make a cronjob for this? i am willing to try different options like create a Disk Image or something, some advice would be great what are your settings for your storage?
 

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!