Hello there,
If iSCSI disks keep rearranging after a reboot, it's likely due to the way the operating system handles storage devices and their connection order during the boot process. When the system restarts, it might assign different device names or paths to the iSCSI disks, resulting in the rearrangement.
Here are some potential reasons and solutions to address this issue:
Multiple iSCSI Targets: If you have multiple iSCSI targets, the system might not consistently identify them in the same order during the boot process. This can lead to different device names being assigned to each target.
Solution: To resolve this, you can use iSCSI initiator persistent binding. This feature allows you to create persistent configurations that associate specific iSCSI targets with specific iSCSI device names. Consult your operating system's documentation on how to set up persistent bindings for iSCSI.
Delayed Mounting: The system may try to mount iSCSI disks before the iSCSI initiators are fully initialized, leading to inconsistent device assignments.
Solution: Consider adding delays to the mounting process to allow enough time for the iSCSI initiators to establish connections before mounting the disks. This can be achieved through configuration files or scripts specific to your operating system.
Network Configuration: Issues with network configuration, such as slow network connectivity or improper network settings, can cause delays in iSCSI connection establishment.
Solution: Check your network settings, including network speed, network adapters, and IP configurations. Ensure that the network connectivity is stable and that the iSCSI targets are reachable before the system attempts to mount them.
udev Rules: The udev system in Linux can dynamically assign device names to storage devices based on various parameters, leading to changing device names on each boot.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–