Migrating from read-only file system

j.a.duke

New Member
Dec 15, 2025
4
1
3
My test PVE system primary storage is flagged as read-only and I'd like to somehow migrate the LXCs which are on it to another storage medium.

But, when I use vzdump to write to the PBS storages attached, I receive the error "unable to create file '/var/log/pve/tasks/…' - Read-only file system.

Is there a good way to rescue these before the system goes belly up?

Thanks.

Cheers,
Jon
 
Mount tmpfs on /var/log/pve/tasks? You may also need to specify an alternate, writetable `--tmpdir`.
 
Last edited:
Mount a writable disk to your system and manually backup the LXC to it?
vzdump <LXCID> --mode snapshot --compress zstd --tmpdir /mnt/writabledisk --dumpdir /mnt/writabledisk
 
Last edited:
  • Like
Reactions: Johannes S
Mount a writable disk to your system and manually backup the LXC to it?
vzdump <LXCID> --mode snapshot --compress zstd --tmpdir /mnt/writabledisk --dumpdir /mnt/writabledisk
I'm still seeing the same read-only error regarding the log file location using your suggestion.

I couldn't create a new mount point, but I was able to mount the temp drive at an existing location which wasn't being used.

To figure out which mount is locked, I ran the mount -l. It returned this, which is to the best of my knowledge, what's locked and causing the problem:
/dev/sdc2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

When I pull SMART data on sdc, this is the summary:
SMART overall-health self-assessment test result: FAILED!

I tried "mount -o remount,rw /" to get a few moments of grace to get the backup done, but no luck there either.

I've got a replacement system setup now just waiting for these.
 
Last edited:
My test PVE system primary storage is flagged as read-only and I'd like to somehow migrate the LXCs which are on it to another storage medium.
In that case, all you need is the lxc config files (/etc/pve/lxc/*.conf.) simply copy those to your destination hypervisor, make sure the storage is mounted and the store presented in pvesm using the same name and away you go.

Why is your root filesystem mounted read only?
 
  • Like
Reactions: Johannes S
In that case, all you need is the lxc config files (/etc/pve/lxc/*.conf.) simply copy those to your destination hypervisor, make sure the storage is mounted and the store presented in pvesm using the same name and away you go.

Why is your root filesystem mounted read only?
I was re-purposing an old system for the test box and the SSD is dying.

I copied the config files and used pvesm to copy the "disks" for the LXCs to a transfer drive.

Now off to import and copy configs.

Thanks for the suggestion.
 
  • Like
Reactions: Johannes S