Reinstalling OS and Mounting Datastores EXT4

cshill

Member
May 8, 2024
79
11
8
Hi Everyone,

I was able to successfully reinstall the Proxmox OS with the following method below.

1. Backup storage.cfg, write down the datastore and to which disks they should go, backed up qemu-server folder with the VM configs, and backed up the lxc folder.
2. Reinstall the OS on the same drive as before with the same hostname and IP.
3. Run updates then reboot
4. Reinsert the backup files into the same folders as before.
5. make the directories under /mnt/pve
6. run echo "/dev/sdb1 /mnt/pve/Datastore1 ext4 defaults 0 2" >> /etc/fstab -- You may have a different /dev pathway and different Datastore name.
7. I run a reboot here.
8. Everything is show up correctly, however, When you go to the web ui and select the server hostname, go under disks, go to directory, I do not see the directories populating here.
 
/dev/sdb1
This will bite you. Mount via UUID or other reliable ways. Also mount -av is enough. No reboot needed.
To add the directory go to Datacenter > Storage > Add > Directory. The path you looked at is for PVE managed mounts.
 
Hi @cshill , are you able to provide some logs?

Review System Logs:
  • Check the system logs for any errors related to storage or mounting:
dmesg | grep -i error
tail -f /var/log/syslog
No errors for mounting.

I tried the UUID method thinking maybe it will show up under the hostname>disk>directory but to no avail.

Mount -AV is fine as long as you have them added to fstab then mount -av.


To add the directory go to Datacenter > Storage > Add > Directory. The path you looked at is for PVE managed mounts.

Directory has been added via the backed up storage.conf that I added. Removing there and re-adding does not change the hostname>disk>directory missing.
 
Maybe you overlooked this part
The path you looked at is for PVE managed mounts.
If you want it back you need to mount it via a systemd mount file in /etc/systemd/system matching ^mnt-pve-(.+)\.mount$.
I don't really see why this is so important though.
 
Last edited: