LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   iSCSI connection (https://www.linuxquestions.org/questions/linux-server-73/iscsi-connection-4175497265/)

Thunderw 03-06-2014 09:58 AM

iSCSI connection
 
Hai,

I created a clustered filesystem, which works well, but i had a question.

I created my LVM on my iSCSI and it has /dev/sde1 device "name", but that could change when I restart my open-iscsi service or restarting my server(s) (i have more than one iSCSI device connected to the server) and i think that will mess up my LVM.

Basicaly my question: is there any solution to force or set up open-iscsi to always use the same device "name" when it connects to the iSCSI target?


Thanks, Robert

custangro 03-06-2014 03:04 PM

Usually you would use the UUID of the device to mount it in the FSTAB...it would look something like this...

Code:

UUID=6185f54a-74c4-4704-9fb1-bdbf8c2af9b2 /                  ext4    defaults        1 1
That way, no matter what you ISCSI device is; it'll mount properly

Thunderw 03-07-2014 12:45 AM

Ohh, thanks i did the same, just want to be sure that will work.

Robert


All times are GMT -5. The time now is 02:48 AM.