exposed local paths' to LXC (mpX) are read-only

brosky

Well-Known Member
Oct 13, 2015
55
4
48
Hi,

I'm working on a PoC to make a HDFS cluster with LXC and I have a couple of JBOD's mounted in debian with pve :

/dev/sdc1 3.6T 89M 3.4T 1% /mnt/data1
/dev/sdd1 3.6T 89M 3.4T 1% /mnt/data2
/dev/sde1 3.6T 89M 3.4T 1% /mnt/data3
/dev/sdf1 3.6T 89M 3.4T 1% /mnt/data4

LXC Config:

root@pve:~# cat /etc/pve/lxc/233.conf
arch: amd64
cores: 4
hostname: HDFS-storage-test-pve
memory: 4096
mp0: /mnt/data1,mp=/data1
mp1: /mnt/data2,mp=/data2
mp2: /mnt/data3,mp=/data3
mp3: /mnt/data4,mp=/data4
net0: name=eth0,bridge=vmbr0,firewall=1,gw=x,hwaddr=x,ip=x,type=veth
ostype: ubuntu
rootfs: local:233/vm-233-disk-0.raw,size=8G
swap: 512
unprivileged: 1

However, the folders inside the container are read-only.

How can I make them read/write ?
 
temporarily solved by making the /mnt/dataX folders 777

files created inside the container:
-rw-r--r-- 1 100000 100000 0 Feb 25 17:53 x.x
 
  • Like
Reactions: matrix

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!