Skip to contentSkip to conversation

Persistent naming for iSCSI devices

DISCUSSION Surekha.PC 3 participants 6 messages Nov 14, 2003 – Nov 20, 2003

lore
Share & tools
lore

Surekha.PC

author
#0 lore raw

Hi,

The persistent naming for iscsi disks cannot not achieved with the
following rule in udev.config.

NUMBER, BUS="scsi", ID=C:B:T:L, NAME="c0b0t6l0"

The controller number is not unique for a particular HBA. Hence persistency is not retained. To overcome this problem for iSCSI devices, I would like to introduce another field in the following rule for udev.

NUMBER, BUS="scsi", id=C:B:T:L, device_type="iscsi", NAME="iscsi-b0t6l0"

With this approach the naming for iSCSI devices will be persistent regardless of controller id.

Please let me know your comments.

thanks,
surekha

-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

author
#1 lore raw

Hi,

Just a slight correction for my earlier mail.

The example should have been

NUMBER, BUS="scsi", ID=C:B:T:L, NAME="cCbBtTlL"

And with the new field to be used for iSCSI devices,

NUMBER, BUS="scsi", id=C:B:T:L, device_type="iscsi", NAME="iscsi-bBtTlL"

Thanks,
surekha

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Surekha.PC
Sent: Friday, November 14, 2003 3:00 PM
To: [email protected]
Subject: Persistent naming for iSCSI devices

Hi,

The persistent naming for iscsi disks cannot not achieved with the
following rule in udev.config.

NUMBER, BUS="scsi", ID=C:B:T:L, NAME="c0b0t6l0"

The controller number is not unique for a particular HBA. Hence persistency is not retained. To overcome this problem for iSCSI devices, I would like to introduce another field in the following rule for udev.

NUMBER, BUS="scsi", id=C:B:T:L, device_type="iscsi", NAME="iscsi-b0t6l0"

With this approach the naming for iSCSI devices will be persistent regardless of controller id.

Please let me know your comments.

thanks,
surekha

-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more!
http://www.apachecon.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Surekha.PC

hi,

How does the name reflect the source where the disks come from. Target, Lun and what does B stand for?

Ihno

Quoted 42 lines · Surekha.PC

Hi,

Just a slight correction for my earlier mail.

The example should have been

NUMBER, BUS="scsi", ID=C:B:T:L, NAME="cCbBtTlL"

And with the new field to be used for iSCSI devices,

NUMBER, BUS="scsi", id=C:B:T:L, device_type="iscsi", NAME="iscsi-bBtTlL"

Thanks,
surekha

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Surekha.PC
Sent: Friday, November 14, 2003 3:00 PM
To: [email protected]
Subject: Persistent naming for iSCSI devices

Hi,

The persistent naming for iscsi disks cannot not achieved with the
following rule in udev.config.

NUMBER, BUS="scsi", ID=C:B:T:L, NAME="c0b0t6l0"

The controller number is not unique for a particular HBA. Hence persistency is not retained. To overcome this problem for iSCSI devices, I would like to introduce another field in the following rule for udev.

NUMBER, BUS="scsi", id=C:B:T:L, device_type="iscsi", NAME="iscsi-b0t6l0"

With this approach the naming for iSCSI devices will be persistent regardless of controller id.

Signature · 21 lines
Best regards/Mit freundlichen Grüßen

Ihno Krumreich

"Never trust a computer you can lift."
--
Ihno Krumreich            [email protected]
SuSE Linux AG             Projectmanager S390 & zSeries
Deutschherrnstr. 15-19    +49-911-74053-439
90429 Nürnberg            http://www.suse.de


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
author
#3 lore raw
In reply to Surekha.PC

Hi,

I have the device type listed in the iSCSI device attributes under sysfs just like vendor information. This will ensure the device is a iSCSI device.

B stands for bus id. This is part of the quadruplet in the sysfs hierarchy as shown below.

#ls -l /sys/class/scsi_device/
0:0:0:0 0:0:1:0 0:0:8:0 7:0:68:0 7:0:69:0

Thanks,
surekha

-----Original Message-----
From: Ihno Krumreich [mailto:[email protected]]
Sent: Friday, November 14, 2003 7:51 PM
To: Surekha.PC
Cc: [email protected]
Subject: Re: Persistent naming for iSCSI devices

hi,

How does the name reflect the source where the disks come from. Target, Lun and what does B stand for?

Ihno

Quoted 46 lines · Surekha.PC

Hi,

Just a slight correction for my earlier mail.

The example should have been

NUMBER, BUS="scsi", ID=C:B:T:L, NAME="cCbBtTlL"

And with the new field to be used for iSCSI devices,

NUMBER, BUS="scsi", id=C:B:T:L, device_type="iscsi", NAME="iscsi-bBtTlL"

Thanks,
surekha

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Surekha.PC
Sent: Friday, November 14, 2003 3:00 PM
To: [email protected]
Subject: Persistent naming for iSCSI devices

Hi,

The persistent naming for iscsi disks cannot not achieved with the
following rule in udev.config.

NUMBER, BUS="scsi", ID=C:B:T:L, NAME="c0b0t6l0"

The controller number is not unique for a particular HBA. Hence persistency is not retained. To overcome this problem for iSCSI devices, I would like to introduce another field in the following rule

for udev.

NUMBER, BUS="scsi", id=C:B:T:L, device_type="iscsi", NAME="iscsi-b0t6l0"

With this approach the naming for iSCSI devices will be persistent regardless of controller id.

Signature · 22 lines
Best regards/Mit freundlichen Grüßen

Ihno Krumreich

"Never trust a computer you can lift."
--
Ihno Krumreich            [email protected]
SuSE Linux AG             Projectmanager S390 & zSeries
Deutschherrnstr. 15-19    +49-911-74053-439
90429 Nürnberg            http://www.suse.de



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
author
#4 lore raw
In reply to Surekha.PC

Hi all,

Can I submit a patch with the change I have proposed below for iSCSI
device naming ?

Thanks,
surekha

-----Original Message-----
From: Surekha.PC [mailto:[email protected]]
Sent: Friday, November 14, 2003 8:01 PM
To: 'Ihno Krumreich'
Cc: '[email protected]'
Subject: RE: Persistent naming for iSCSI devices

Hi,

I have the device type listed in the iSCSI device attributes under sysfs just like vendor information. This will ensure the device is a iSCSI device.

B stands for bus id. This is part of the quadruplet in the sysfs hierarchy as shown below.

#ls -l /sys/class/scsi_device/
0:0:0:0 0:0:1:0 0:0:8:0 7:0:68:0 7:0:69:0

Thanks,
surekha

-----Original Message-----
From: Ihno Krumreich [mailto:[email protected]]
Sent: Friday, November 14, 2003 7:51 PM
To: Surekha.PC
Cc: [email protected]
Subject: Re: Persistent naming for iSCSI devices

hi,

How does the name reflect the source where the disks come from. Target, Lun and what does B stand for?

Ihno

Quoted 46 lines · Surekha.PC

Hi,

Just a slight correction for my earlier mail.

The example should have been

NUMBER, BUS="scsi", ID=C:B:T:L, NAME="cCbBtTlL"

And with the new field to be used for iSCSI devices,

NUMBER, BUS="scsi", id=C:B:T:L, device_type="iscsi", NAME="iscsi-bBtTlL"

Thanks,
surekha

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Surekha.PC
Sent: Friday, November 14, 2003 3:00 PM
To: [email protected]
Subject: Persistent naming for iSCSI devices

Hi,

The persistent naming for iscsi disks cannot not achieved with the
following rule in udev.config.

NUMBER, BUS="scsi", ID=C:B:T:L, NAME="c0b0t6l0"

The controller number is not unique for a particular HBA. Hence persistency is not retained. To overcome this problem for iSCSI devices, I would like to introduce another field in the following rule

for udev.

NUMBER, BUS="scsi", id=C:B:T:L, device_type="iscsi", NAME="iscsi-b0t6l0"

With this approach the naming for iSCSI devices will be persistent regardless of controller id.

Signature · 22 lines
Best regards/Mit freundlichen Grüßen

Ihno Krumreich

"Never trust a computer you can lift."
--
Ihno Krumreich            [email protected]
SuSE Linux AG             Projectmanager S390 & zSeries
Deutschherrnstr. 15-19    +49-911-74053-439
90429 Nürnberg            http://www.suse.de



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#5 lore raw
In reply to Surekha.PC
Quoted 5 lines · Surekha.PC

Hi all,

Can I submit a patch with the change I have proposed below for iSCSI
device naming ?

Sure, patches are always good.

But have you looked at the %b modifier in the 006 release? That might work for you.

thanks,

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel