Skip to contentSkip to conversation

More consistent /dev/ mapping for ISCSI volumes in udev.

DISCUSSION Mike Ely 2 participants 4 messages Apr 5, 2010 – Apr 6, 2010

lore
Share & tools
lore

Mike Ely

author
#0 lore raw

(resending because our clunky old MTA doesn¹t know how to handle greylisting)

I'm wondering how to get open-iscsi and udev folks to work together on a good solution for getting ISCSI volumes to map consistently to a /dev/ entry. What would be a good starting point for getting the discussion going? Currently the only solutions I can find are some scripting tricks, but it¹d be nice to see something a bit more integrated. Not all use cases support filesystem labels.

Thanks,
Mike Ely

#1 lore raw
Quoted 10 lines · On Monday 05 of April 2010 22:00:49 Mike Ely wrote:

(resending because our clunky old MTA doesn¹t know how to handle greylisting)

I'm wondering how to get open-iscsi and udev folks to work together on a good solution for getting ISCSI volumes to map consistently to a /dev/ entry. What would be a good starting point for getting the discussion going? Currently the only solutions I can find are some scripting tricks, but it¹d be nice to see something a bit more integrated. Not all use cases support filesystem labels.

udev already includes path_id that generates persistent name for iSCSI device. Could you be more specific what exactly it misses?

author
#2 lore raw
In reply to Mike Ely
Quoted 12 lines · Andrey Borzenkov
Quoted 10 lines · On Monday 05 of April 2010 22:00:49 Mike Ely wrote:

(resending because our clunky old MTA doesn¹t know how to handle greylisting)

I'm wondering how to get open-iscsi and udev folks to work together on a good solution for getting ISCSI volumes to map consistently to a /dev/ entry. What would be a good starting point for getting the discussion going? Currently the only solutions I can find are some scripting tricks, but it¹d be nice to see something a bit more integrated. Not all use cases support filesystem labels.

Quoted 2 lines

udev already includes path_id that generates persistent name for iSCSI device. Could you be more specific what exactly it misses?

I'm not sure how to get path_id to work then. Here's an example of it not working through several remounts on RHEL 5 - look at the number of partitions in each volume to see how it's randomly remapping:

(root@OEL64R5U2)(~)# iscsiadm -m node -T
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme
--login
Logging in to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]
Login to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]: successful
(root@OEL64R5U2)(~)# cat /proc/partitions
major minor  #blocks  name
 202     0   20971520 xvda
 202     1     104391 xvda1
 202     2    1574370 xvda2
 202     3   12996585 xvda3
 202     4          1 xvda4
 202     5    4192933 xvda5
 202     6    2096451 xvda6
   8     0  104862720 sda
   8     1      56196 sda1
   8     2  104800027 sda2
   8    16    1059840 sdb
(root@OEL64R5U2)(~)# service iscsi restart
Logging out of session [sid: 4, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]
Logging out of session [sid: 5, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]
Logout of [sid: 4, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]: successful
Logout of [sid: 5, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]: successful
Stopping iSCSI daemon:
iscsid dead but pid file exists                            [  OK  ]
Turning off network shutdown. Starting iSCSI daemon:       [  OK  ]
                                                           [  OK  ]
Setting up iSCSI targets: Logging in to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]
Logging in to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]
Login to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]: successful
Login to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]: successful
                                                           [  OK  ]
(root@OEL64R5U2)(~)# cat /proc/partitions
major minor  #blocks  name
 202     0   20971520 xvda
 202     1     104391 xvda1
 202     2    1574370 xvda2
 202     3   12996585 xvda3
 202     4          1 xvda4
 202     5    4192933 xvda5
 202     6    2096451 xvda6
   8    16  104862720 sdb
   8    17      56196 sdb1
   8    18  104800027 sdb2
   8     0    1059840 sda
(root@OEL64R5U2)(~)# service iscsi restart
Logging out of session [sid: 1, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]
Logging out of session [sid: 2, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]
Logout of [sid: 1, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]: successful
Logout of [sid: 2, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]: successful
Stopping iSCSI daemon:
iscsid dead but pid file exists                            [  OK  ]
Turning off network shutdown. Starting iSCSI daemon:       [  OK  ]
                                                           [  OK  ]
Setting up iSCSI targets: Logging in to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]
Logging in to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]
Login to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]: successful
Login to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]: successful
                                                           [  OK  ]
(root@OEL64R5U2)(~)# cat /proc/partitions
major minor  #blocks  name
 202     0   20971520 xvda
 202     1     104391 xvda1
 202     2    1574370 xvda2
 202     3   12996585 xvda3
 202     4          1 xvda4
 202     5    4192933 xvda5
 202     6    2096451 xvda6
   8     0  104862720 sda
   8     1      56196 sda1
   8     2  104800027 sda2
   8    16    1059840 sdb
(root@OEL64R5U2)(~)# service iscsi restart
Logging out of session [sid: 1, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]
Logging out of session [sid: 2, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]
Logout of [sid: 1, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]: successful
Logout of [sid: 2, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]: successful
Stopping iSCSI daemon:
iscsid dead but pid file exists                            [  OK  ]
Turning off network shutdown. Starting iSCSI daemon:       [  OK  ]
                                                           [  OK  ]
Setting up iSCSI targets: Logging in to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-79b89fb03-9ce0003e5bb4bb65-proddb1-db1,
portal: 10.1.xx.xx,3260]
Logging in to [iface: default, target:
iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-deleteme,
portal: 10.1.xx.xx,3260]
#3 lore raw
In reply to Mike Ely
Quoted 13 lines · On Monday 05 of April 2010 22:28:14 Mike Ely wrote:
Quoted 12 lines · Andrey Borzenkov
Quoted 10 lines · On Monday 05 of April 2010 22:00:49 Mike Ely wrote:

(resending because our clunky old MTA doesn¹t know how to handle greylisting)

I'm wondering how to get open-iscsi and udev folks to work together on a good solution for getting ISCSI volumes to map consistently to a /dev/ entry. What would be a good starting point for getting the discussion going? Currently the only solutions I can find are some scripting tricks, but it¹d be nice to see something a bit more integrated. Not all use cases support filesystem labels.

Quoted 8 lines
Quoted 2 lines

udev already includes path_id that generates persistent name for iSCSI device. Could you be more specific what exactly it misses?

I'm not sure how to get path_id to work then. Here's an example of it not working through several remounts on RHEL 5 - look at the number of partitions in each volume to see how it's randomly remapping:

path_id is used to generate persistent link under /dev/disk/by-path. sdX are not guaranteed to be persistent.

Quoted 2 lines

iqn.2001-05.com.equallogic:0-8a0906-4f489fb03-3c60003e5c34bb68-delete me, portal: 10.1.xx.xx,3260]

I always find obfuscating of private addresses amusing :)