From: Mike Ely <mikeely@amyskitchen.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: More consistent /dev/ mapping for ISCSI volumes in udev.
Date: Mon, 05 Apr 2010 18:28:14 +0000 [thread overview]
Message-ID: <C7DF79CE.2692D%mikeely@amyskitchen.net> (raw)
In-Reply-To: <C7DF7361.26928%mikeely@amyskitchen.net>
On 4/5/10 11:15 AM, "Andrey Borzenkov" <arvidjaar@mail.ru> 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]
next prev parent reply other threads:[~2010-04-05 18:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-05 18:00 More consistent /dev/ mapping for ISCSI volumes in udev Mike Ely
2010-04-05 18:15 ` Andrey Borzenkov
2010-04-05 18:28 ` Mike Ely [this message]
2010-04-06 2:41 ` Andrey Borzenkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C7DF79CE.2692D%mikeely@amyskitchen.net \
--to=mikeely@amyskitchen.net \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).