LXC Container vergrößern

ey-jo

New Member
Oct 22, 2019
4
0
1
37
Da es die nested Funktion bei LXC gibt hab ich mir gedacht ich mache mir docker im lcx container.
Habe da 16 GB festgelegt.
Nun erwiess sich das als fehler denn ich habe keinen platz mehr unter Boot disk habe ich dies vergrößert. Wie bekomme ich das nun so hin dass mein LXC container auch erkennt dass mehr platz da ist? es sind immernoch nur 16 verfügbar.
 
hi,

bitte poste deine container config (pct config CTID) und deine storage config (/etc/pve/storage.cfg)
 
Hi, ich bin mit Proxmox auf ne neue Platte getzogen die größer ist...nun wollte ich auch die Container und VMs vergrößern...schau mal das kommt raus aus meiner storage.cfg
Code:
dir: local
    path /var/lib/vz
    content vztmpl,iso,backup

lvmthin: local-lvm
    thinpool data
    vgname pve
    content images,rootdir

nfs: Synology_DS213
    export /volume1/Backups
    path /mnt/pve/Synology_DS213
    server xxx.xxx.xxx.xx
    content backup,images
    prune-backups keep-all=1

kannst du mir vielelicht schildern wie ich die ev. übers proxmox webinterface vergrößern kann?

Danke Dir
 
Du müsstest schonmal schreiben was pct config CTID ausgibt, damit man sie Konfig des LXCs sieht. "CTID" musst du mit der VMID/CTID deines entsprechenden LXCs austauschen.
 
Last edited:
hi Dunuin, schau:
Code:
root@pve:~# root@pve:~# pct config 200
arch: amd64
cores: 2
hostname: iobroker-live
memory: 6016
net0: name=eth0,bridge=vmbr0,gw=192.168.200.1,hwaddr=xx:xx:xx:xx:xx:xx:xx,ip=xxx.xxx.xxx.xx/24,ip6=dhcp,type=veth
ostype: ubuntu
rootfs: local-lvm:vm-200-disk-0,size=8G
swap: 1000
unprivileged: 1
lxc.cgroup.devices.allow: c 7:* rwm
lxc.mount.entry: /dev/ttyZigbee dev/ttyZigbee none bind,optional,create=file
 
Im WebUI unter "200 (iobroker-live) -> Resources -> Root Disk -> Resize Disk" solltest du dein Rootfs vergrößern können. Bin aber nicht ganz sicher ob das schon reicht (weil ja LXC normal auf Dateiebene arbeiten) oder ob du dann noch was im LXC selbst machen musst, damit der LXC auch die volle neue Kaüazität nutzen kann.
 

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!