You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would have expected the files to be persisted in the xfs volume, i.e. like this:
(modified by hand to show what I expected!)
Filesystem Type Size Used Avail Use% Mounted on
tmpfs tmpfs 6.3G 96K 6.3G 1% /etc/hosts
shm tmpfs 63M 1.1M 62M 2% /dev/shm
/dev/mapper/vg0-xfstest xfs 10G 229M 9.8G 3% /var/lib/postgresql
overlay overlay 256G 3.1G 250G 2% /
tmpfs tmpfs 64M 0 64M 0% /dev
udev devtmpfs 32G 0 32G 0% /dev/tty
podman info output
(I have also tested this with podman 5.3.1 using nix)host:
arch: amd64buildahVersion: 1.33.7cgroupControllers:
- cpu
- memory
- pidscgroupManager: systemdcgroupVersion: v2conmon:
package: conmon_2.1.10+ds1-1build2_amd64path: /usr/bin/conmonversion: 'conmon version 2.1.10, commit: unknown'cpuUtilization:
idlePercent: 99.59systemPercent: 0.33userPercent: 0.07cpus: 32databaseBackend: sqlitedistribution:
codename: nobledistribution: ubuntuversion: "24.04"eventLogger: journaldfreeLocks: 2044hostname: Ubuntu-2404-noble-amd64-baseidMappings:
gidmap:
- container_id: 0host_id: 1000size: 1
- container_id: 1host_id: 100000size: 65536uidmap:
- container_id: 0host_id: 1000size: 1
- container_id: 1host_id: 100000size: 65536kernel: 6.8.0-51-genericlinkmode: dynamiclogDriver: journaldmemFree: 62595571712memTotal: 67201568768networkBackend: netavarknetworkBackendInfo:
backend: netavarkdns:
package: aardvark-dns_1.4.0-5_amd64path: /usr/lib/podman/aardvark-dnsversion: aardvark-dns 1.4.0package: netavark_1.4.0-4_amd64path: /usr/lib/podman/netavarkversion: netavark 1.4.0ociRuntime:
name: crunpackage: crun_1.14.1-1_amd64path: /usr/bin/crunversion: |- crun version 1.14.1 commit: de537a7965bfbe9992e2cfae0baeb56a08128171 rundir: /run/user/1000/crun spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +WASM:wasmedge +YAJLos: linuxpasta:
executable: /usr/bin/pastapackage: passt_0.0~git20240220.1e6f92b-1_amd64version: | pasta unknown version Copyright Red Hat GNU General Public License, version 2 or later <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.remoteSocket:
exists: falsepath: /run/user/1000/podman/podman.socksecurity:
apparmorEnabled: falsecapabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOTrootless: trueseccompEnabled: trueseccompProfilePath: /usr/share/containers/seccomp.jsonselinuxEnabled: falseserviceIsRemote: falseslirp4netns:
executable: /usr/bin/slirp4netnspackage: slirp4netns_1.2.1-1build2_amd64version: |- slirp4netns version 1.2.1 commit: 09e31e92fa3d2a1d3ca261adaeb012c8d75a8194 libslirp: 4.7.0 SLIRP_CONFIG_VERSION_MAX: 4 libseccomp: 2.5.5swapFree: 34359734272swapTotal: 34359734272uptime: 1h 9m 40.00s (Approximately 0.04 days)variant: ""plugins:
authorization: nulllog:
- k8s-file
- none
- passthrough
- journaldnetwork:
- bridge
- macvlan
- ipvlanvolume:
- localregistries: {}store:
configFile: /home/olof/.config/containers/storage.confcontainerStore:
number: 1paused: 0running: 1stopped: 0graphDriverName: overlaygraphOptions: {}graphRoot: /home/olof/.local/share/containers/storagegraphRootAllocated: 274742640640graphRootUsed: 3273494528graphStatus:
Backing Filesystem: btrfsNative Overlay Diff: "true"Supports d_type: "true"Supports shifting: "false"Supports volatile: "true"Using metacopy: "false"imageCopyTmpDir: /var/tmpimageStore:
number: 1runRoot: /run/user/1000/containerstransientStore: falsevolumePath: /home/olof/.local/share/containers/storage/volumesversion:
APIVersion: 4.9.3Built: 0BuiltTime: Thu Jan 1 01:00:00 1970GitCommit: ""GoVersion: go1.22.2Os: linuxOsArch: linux/amd64Version: 4.9.3
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
This was on a bare metal machine on hetzner, with standard installscript configurations to set up an ubuntu btrfs-as-root configuration with a spare lvm block storage partition.
Additional information
This is on a freshly commissioned machine so I will investigate this further with different distros
The text was updated successfully, but these errors were encountered:
Issue Description
Here's an example when mounting a 10 GB xfs lvm volume in ~/experiements/xfstest when I run ubuntu with a btrfs root folder.
Steps to reproduce the issue
Steps to reproduce the issue
podman run --rm -v $HOME/experiments/xfstest:/var/lib/postgresql -e POSTGRES_PASSWORD=unsafe postgres
Describe the results you received
The postgres data folder ends up being mounted in btrfs instead of in the folder I created, and all data gets wiped when the container goes away
Describe the results you expected
I would have expected the files to be persisted in the xfs volume, i.e. like this:
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
This was on a bare metal machine on hetzner, with standard installscript configurations to set up an ubuntu btrfs-as-root configuration with a spare lvm block storage partition.
Additional information
This is on a freshly commissioned machine so I will investigate this further with different distros
The text was updated successfully, but these errors were encountered: