I have done a ramdisk on my proxmox host that using LXC.
This is my fstab on proxmox host :
tmpfs /mnt/ramdisk tmpfs nodev,nosuid,nodiratime,size=40G 0 0
The problem is that i have setup a config for my lxc container like this:
mp0: /mnt/ramdisk,mp=/mnt/ramdisk
rootfs: local:105/vm-105-disk-1.raw,size=40G
And the lxc cointainer is mapping the /mnt/ramdisk to the server with the 40G space. But if i try to just save something to the folder it takes the ram from the lxc container and not the shared folder.
So can i on any how change the folder from tmpfs to something like common /dev/loop4 or something so it don't se it as a ramdisk itself.
this is how it look like in the vm:
thanks.
This is my fstab on proxmox host :
tmpfs /mnt/ramdisk tmpfs nodev,nosuid,nodiratime,size=40G 0 0
Code:
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 13G 58M 13G 1% /run
/dev/dm-0 15G 4.0G 10G 29% /
tmpfs 32G 63M 32G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
tmpfs 40G 1.7M 40G 1% /mnt/ramdisk
/dev/mapper/pve-data 100G 23G 77G 23% /var/lib/vz
/dev/fuse 30M 32K 30M 1% /etc/pve
cgmfs 100K 0 100K 0% /run/cgmanager/fs
The problem is that i have setup a config for my lxc container like this:
mp0: /mnt/ramdisk,mp=/mnt/ramdisk
rootfs: local:105/vm-105-disk-1.raw,size=40G
And the lxc cointainer is mapping the /mnt/ramdisk to the server with the 40G space. But if i try to just save something to the folder it takes the ram from the lxc container and not the shared folder.
So can i on any how change the folder from tmpfs to something like common /dev/loop4 or something so it don't se it as a ramdisk itself.
this is how it look like in the vm:
Code:
root@ngx01-p2:/mnt# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/loop3 40G 11G 27G 29% /
none 100K 0 100K 0% /dev
cgroup 12K 0 12K 0% /sys/fs/cgroup
tmpfs 32G 0 32G 0% /sys/fs/cgroup/cgmanager
tmpfs 40G 1.7M 40G 1% /mnt/ramdisk
tmpfs 6.3G 44K 6.3G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.6G 0 1.6G 0% /run/shm
thanks.