Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device file paths change between reboots #294

Open
durandguru opened this issue Nov 19, 2024 · 3 comments
Open

Device file paths change between reboots #294

durandguru opened this issue Nov 19, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@durandguru
Copy link

Hi,

I have 4 nvme disks on my ubuntu 24.04 server. After every reboot the nvme disks have another identifier. So /dev/nvme1n1p1 can be /dev/nvme0n1p1 .

For the disk which hosts the / mount everything works fine. But the 3 data diks have every reboot another ID (apparently an known issue in ubuntu).

In Beszel the graphs are coupled to the name of the disk, so after a reboot the graphs kinda work after an time but history is wrong. My mounts are mapped by uuid.

Is there an soulution for this?

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv 914G 33G 843G 4% /
/dev/nvme1n1p1 916G 633G 237G 73% /mnt/media
/dev/nvme2n1p1 916G 108G 763G 13% /mnt/files
/dev/nvme3n1p1 1.8T 1.2T 605G 66% /mnt/photos
/dev/nvme0n1p2 2.0G 96M 1.7G 6% /boot
/dev/nvme0n1p1 1.1G 6.2M 1.1G 1% /boot/efi

@henrygd
Copy link
Owner

henrygd commented Nov 19, 2024

Good point, I hadn't considered that.

We can use the UUID, but it would not be ideal to display something like e858d363-aaa8-4a5e-9da1-fbe0ef63af1b Usage as the chart title.

Maybe we can use the label as the identifier if it's defined?

lsblk -o NAME,LABEL,MOUNTPOINT

@henrygd henrygd added the enhancement New feature or request label Nov 19, 2024
@henrygd henrygd changed the title NVME disks Device file paths change between reboots Nov 19, 2024
@durandguru
Copy link
Author

Labels won't stick for now on 2 drives. I will troubleshoot...

Or use the name for docker in the volume after extra-filesystems?
volumes:

  • /mnt/disk1/.beszel:/extra-filesystems/sdb1:ro

NAME LABEL MOUNTPOINT
nvme3n1
└─nvme3n1p1 /mnt/photos
nvme2n1
└─nvme2n1p1 files /mnt/files
nvme1n1
└─nvme1n1p1 /mnt/media
nvme0n1
├─nvme0n1p1 /boot/efi
├─nvme0n1p2 /boot
└─nvme0n1p3
└─ubuntu--vg-ubuntu--lv /

@durandguru
Copy link
Author

Btw, with extra disks the title and explanation is displayed. I get why it is there but it kind off says the same :-)

nvme1n1p1 Usage
Disk usage of nvme1n1p1

Schermafbeelding 2024-11-19 om 22 09 53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants