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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/5/10 11:15 AM, "Andrey Borzenkov" <arvidjaar@xxxxxxx> wrote:

> 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?

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]

--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux