After installing the Inspur server 5280m6 system using Rocky 9.6, I noticed that the drive letters were disorganized after the system rebooted. Since it is used as a Ceph server with multiple hard disks, and the drive letters change every time it reboots, how can I resolve this issue?
Has anyone else encountered this issue and how did they resolve it? Thank you
drive letter changing is to be expected, you should be using UUIDs or similar to mount your drives, see changing-drive-letter
The server used for Ceph does not have any disk letters except for the system disk. I encountered the same problem when installing both Rocky9.6 and Rocky10, but Ubuntu 22.04 works normally
No, it should not. The âsdXâ names are totally free to change on every reboot. (They do not âchangeâ, but are created on boot, ârandomlyâ.)
Do look at /etc/fstab
. How are the devices referred to in there?
Do look at lsblk -f
and blkid
Do look at ls /dev/disk/by*
too.
The UUID and PARTUUID (if they exists) are stored in the partition/filesystem, in the device. They are persistent, predictable.
Similarly, RAID stores metadata about a RAID array within the member disks of the array.
I donât have Ceph, but I do have ZFS pool in one system and there too a member is not âsd-somethingâ, but pci-0000:02:00.0-scsi-0:0:1:0
Today, that seems to have name âsdbâ:
# ls -l /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:1:0
lrwxrwxrwx. 1 root root 9 Mar 30 10:33 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:1:0 -> ../../sdb
Do check the Ceph documentation on how you can refer to disks / how it constructs its pool/array/volume/whatever.
ok.got it .Tks very much,bro