fstab empty after reboot, read-only file system

mn_box

Member
Nov 6, 2022
4
1
8
Couple of months ago I made some edits to fstab and added cifs shares from my nas. After rebooting the pve everything seems to work.

Earlier today my proxmox server powered down (unintentionally) and after restart it turns out the system in in read-only and I cannot access the webui.

After checking the logs (journalctl - b - u pve-cluster.service) I seems my entire system is in read-only state
Nov 06 21:18:12 pve pmxcfs[755]: [main] crit: unable to create lock '/var/lib/pve-cluster/.pmxcfs.lockfile': Read-only file system

And then I found /etc/fstab is missing. I have the original file
/dev/pve/root / ext4 errors=remount-ro 0 1
UUID=39D1-F2DF /boot/efi vfat defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0

but in read-only access I cannot save this to /etc/fstab

It is probably my lack of experience, but can somebody help me solve this?

Highly appreciated!
 
Earlier today my proxmox server powered down (unintentionally) and after restart it turns out the system in in read-only and I cannot access the webui.

After checking the logs (journalctl - b - u pve-cluster.service) I seems my entire system is in read-only state
Nov 06 21:18:12 pve pmxcfs[755]: [main] crit: unable to create lock '/var/lib/pve-cluster/.pmxcfs.lockfile': Read-only file system
The Proxmox web GUI (and Proxmox in general) won't work properly if it cannot write the database that contains most of its configuration.
Most likely, the drive that contains the Proxmox installation got corrupted due to the unexpected power loss. Please reinstall and recover your VMs from backups.
 
The Proxmox web GUI (and Proxmox in general) won't work properly if it cannot write the database that contains most of its configuration.
Most likely, the drive that contains the Proxmox installation got corrupted due to the unexpected power loss. Please reinstall and recover your VMs from backups.
There doesn't seem to be an issue with the database, as I can login via ssh and see everything is there but in read-only with fstab empty. Somehow I need to remount and bring back my old fstab file. Or am I missing something?

And indeed I don't see the files in /etc/pve

systemctl status pve-cluster.service
Nov 06 21:18:13 pve systemd[1]: Failed to start The Proxmox VE cluster filesystem.

systemctl status pveproxy.service
Nov 06 23:12:52 pve pveproxy[7831]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APISe
 
Last edited: