mount disconnects after boot

friendodevil

Member
Apr 5, 2022
39
3
8
This has worked and functioned well for ~12months but after recent Proxmox updates, a local ext4 SSD what has been mounted and to serve weekly backups, keeps unmounting after boot.

I have

1. mount /dev/sdb /mnt/backup-HOT-WD1T/
1672691108985.png
2. added Directory to Datacenter > Storage >
1672691263419.png
... and drive is mounted successfully and is operational
1672691365069.png
after Proxmox node reboot, the disc in no longer mounted and I have to repeat #1 and #2 again.


This just started after the recent updates, not sure why or what to check for via logs... help appreciated
 
Mounting using the mount command is always only working until reboot. For automounting you need to use fstab or systemd.
 
Last edited:
reference to expand @Dunuin reply:

man pvesm

Code:
DIRECTORY BACKEND
       Storage pool type: dir

       Proxmox VE can use local directories or locally mounted shares for storage. A directory is a file level storage, so you can store any content type like virtual disk images, containers,
       templates, ISO images or backup files.

           Note
           You can mount additional storages via standard linux /etc/fstab, and then define a directory storage for that mount point. This way you can use any file system supported by Linux.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Also don't forget the "pvesm set <YourStorageID> --is_mountpoint yes" after creating the directory storage. Otherwise it might look like the external disk is mounted, because the storage is still working, even if that disk isn't mounted or plugged in at all, because the directory storage will just be pointing to the empty mountpoint and store all stuff on the root filesystem instead.
 

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!