All of lore.kernel.org
 help / color / mirror / Atom feed
* How to find the root partition with root=dhcp root-path=iscsi:::...
@ 2009-06-18 14:30 Harald Hoyer
       [not found] ` <4A3A4F8F.8070204-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Harald Hoyer @ 2009-06-18 14:30 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

If we have root=dhcp and root-path from dhcp with "iscsi::... " nothing is know 
about the partition where root lives in.

RFC:
provide a pre-mount fallback, which tries to mount

/dev/disk/by-label/\x2f (LABEL=/)
/dev/disk/by-label/ROOT (LABEL=ROOT)


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to find the root partition with root=dhcp root-path=iscsi:::...
       [not found] ` <4A3A4F8F.8070204-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-06-18 16:06   ` Warren Togami
       [not found]     ` <4A3A65EC.1010404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2009-06-18 17:29   ` Warren Togami
  1 sibling, 1 reply; 10+ messages in thread
From: Warren Togami @ 2009-06-18 16:06 UTC (permalink / raw)
  To: initramfs

On 06/18/2009 10:30 AM, Harald Hoyer wrote:
> If we have root=dhcp and root-path from dhcp with "iscsi::... " nothing
> is know about the partition where root lives in.
>
> RFC:
> provide a pre-mount fallback, which tries to mount
>
> /dev/disk/by-label/\x2f (LABEL=/)
> /dev/disk/by-label/ROOT (LABEL=ROOT)

I think this was the intent of netroot=dhcp for remote block device 
protocols, then you can define something else in root=.  Whether it is 
implemented yet I don't know.

Warren
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to find the root partition with root=dhcp root-path=iscsi:::...
       [not found]     ` <4A3A65EC.1010404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-06-18 17:01       ` Harald Hoyer
       [not found]         ` <4A3A72E9.3000605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Harald Hoyer @ 2009-06-18 17:01 UTC (permalink / raw)
  To: Warren Togami; +Cc: initramfs

On 06/18/2009 06:06 PM, Warren Togami wrote:
> On 06/18/2009 10:30 AM, Harald Hoyer wrote:
>> If we have root=dhcp and root-path from dhcp with "iscsi::... " nothing
>> is know about the partition where root lives in.
>>
>> RFC:
>> provide a pre-mount fallback, which tries to mount
>>
>> /dev/disk/by-label/\x2f (LABEL=/)
>> /dev/disk/by-label/ROOT (LABEL=ROOT)
>
> I think this was the intent of netroot=dhcp for remote block device
> protocols, then you can define something else in root=. Whether it is
> implemented yet I don't know.
>
> Warren

Well, but the root-path does not specify the root partition!
Either we extend the iscsi:::: spec with a root partition or we make 
requirements like I did above.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to find the root partition with root=dhcp root-path=iscsi:::...
       [not found]         ` <4A3A72E9.3000605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-06-18 17:06           ` Warren Togami
  2009-06-19  2:55           ` David Dillow
  1 sibling, 0 replies; 10+ messages in thread
From: Warren Togami @ 2009-06-18 17:06 UTC (permalink / raw)
  To: initramfs

On 06/18/2009 01:01 PM, Harald Hoyer wrote:
> On 06/18/2009 06:06 PM, Warren Togami wrote:
>> On 06/18/2009 10:30 AM, Harald Hoyer wrote:
>>> If we have root=dhcp and root-path from dhcp with "iscsi::... " nothing
>>> is know about the partition where root lives in.
>>>
>>> RFC:
>>> provide a pre-mount fallback, which tries to mount
>>>
>>> /dev/disk/by-label/\x2f (LABEL=/)
>>> /dev/disk/by-label/ROOT (LABEL=ROOT)
>>
>> I think this was the intent of netroot=dhcp for remote block device
>> protocols, then you can define something else in root=. Whether it is
>> implemented yet I don't know.
>>
>> Warren
>
> Well, but the root-path does not specify the root partition!
> Either we extend the iscsi:::: spec with a root partition or we make
> requirements like I did above.

root= cannot specify the root partition?

In any case, nothing really stops us from extending the iscsi RFC spec 
if we really want to.

Warren Togami
wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to find the root partition with root=dhcp root-path=iscsi:::...
       [not found] ` <4A3A4F8F.8070204-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2009-06-18 16:06   ` Warren Togami
@ 2009-06-18 17:29   ` Warren Togami
  1 sibling, 0 replies; 10+ messages in thread
From: Warren Togami @ 2009-06-18 17:29 UTC (permalink / raw)
  To: initramfs

On 06/18/2009 10:30 AM, Harald Hoyer wrote:
> If we have root=dhcp and root-path from dhcp with "iscsi::... " nothing
> is know about the partition where root lives in.
>
> RFC:
> provide a pre-mount fallback, which tries to mount
>
> /dev/disk/by-label/\x2f (LABEL=/)
> /dev/disk/by-label/ROOT (LABEL=ROOT)
>

BTW, I'm not against this as a fallback, but am I incorrect about root= 
being explicitly usable with netroot=dhcp?

Warren
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to find the root partition with root=dhcp root-path=iscsi:::...
       [not found]         ` <4A3A72E9.3000605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2009-06-18 17:06           ` Warren Togami
@ 2009-06-19  2:55           ` David Dillow
       [not found]             ` <1245380152.28792.9.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
  1 sibling, 1 reply; 10+ messages in thread
From: David Dillow @ 2009-06-19  2:55 UTC (permalink / raw)
  To: Harald Hoyer; +Cc: Warren Togami, initramfs

On Thu, 2009-06-18 at 19:01 +0200, Harald Hoyer wrote:
> On 06/18/2009 06:06 PM, Warren Togami wrote:
> > On 06/18/2009 10:30 AM, Harald Hoyer wrote:
> >> If we have root=dhcp and root-path from dhcp with "iscsi::... " nothing
> >> is know about the partition where root lives in.
> >>
> >> RFC:
> >> provide a pre-mount fallback, which tries to mount
> >>
> >> /dev/disk/by-label/\x2f (LABEL=/)
> >> /dev/disk/by-label/ROOT (LABEL=ROOT)
> >
> > I think this was the intent of netroot=dhcp for remote block device
> > protocols, then you can define something else in root=. Whether it is
> > implemented yet I don't know.
> >
> > Warren
> 
> Well, but the root-path does not specify the root partition!
> Either we extend the iscsi:::: spec with a root partition or we make 
> requirements like I did above.

The RFC only says we need to boot off the LUN specified, 0 if none
listed. That's your default partition.

It's workable, as these can be virtual disks anyways, but as Warren
mentions, we can extend the RFC.

Also, you can specify root=LABEL=ROOT or root=/dev/sda1 etc and it
should work, or at least it used to with the netroot= code. I haven't
tested it this week -- vacation.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to find the root partition with root=dhcp root-path=iscsi:::...
       [not found]             ` <1245380152.28792.9.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
@ 2009-06-19  6:21               ` Harald Hoyer
       [not found]                 ` <4A3B2E6D.2000809-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Harald Hoyer @ 2009-06-19  6:21 UTC (permalink / raw)
  To: David Dillow; +Cc: Warren Togami, initramfs

On 06/19/2009 04:55 AM, David Dillow wrote:
> On Thu, 2009-06-18 at 19:01 +0200, Harald Hoyer wrote:
>> On 06/18/2009 06:06 PM, Warren Togami wrote:
>>> On 06/18/2009 10:30 AM, Harald Hoyer wrote:
>>>> If we have root=dhcp and root-path from dhcp with "iscsi::... " nothing
>>>> is know about the partition where root lives in.
>>>>
>>>> RFC:
>>>> provide a pre-mount fallback, which tries to mount
>>>>
>>>> /dev/disk/by-label/\x2f (LABEL=/)
>>>> /dev/disk/by-label/ROOT (LABEL=ROOT)
>>> I think this was the intent of netroot=dhcp for remote block device
>>> protocols, then you can define something else in root=. Whether it is
>>> implemented yet I don't know.
>>>
>>> Warren
>> Well, but the root-path does not specify the root partition!
>> Either we extend the iscsi:::: spec with a root partition or we make
>> requirements like I did above.
>
> The RFC only says we need to boot off the LUN specified, 0 if none
> listed. That's your default partition.

ok, so the LUN is the partition number?
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to find the root partition with root=dhcp root-path=iscsi:::...
       [not found]                 ` <4A3B2E6D.2000809-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-06-19 16:05                   ` David Dillow
       [not found]                     ` <1245427519.32104.2.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: David Dillow @ 2009-06-19 16:05 UTC (permalink / raw)
  To: Harald Hoyer; +Cc: Warren Togami, initramfs

On Fri, 2009-06-19 at 08:21 +0200, Harald Hoyer wrote:
> On 06/19/2009 04:55 AM, David Dillow wrote:
> > The RFC only says we need to boot off the LUN specified, 0 if none
> > listed. That's your default partition.
> 
> ok, so the LUN is the partition number?

No, a LUN is a whole disk. You would map the LUN to /dev/sda or /dev/sdb
or such depending on which one it is, and use the entire disk -- no
partitions needed. If you wanted to separate /var or /home etc, you
would put them on a different LUN(s) -- partitions optional -- and
use /etc/fstab to mount them.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to find the root partition with root=dhcp root-path=iscsi:::...
       [not found]                     ` <1245427519.32104.2.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
@ 2009-06-19 16:40                       ` Harald Hoyer
       [not found]                         ` <4A3BBF97.3090403-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Harald Hoyer @ 2009-06-19 16:40 UTC (permalink / raw)
  To: David Dillow, initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On 06/19/2009 06:05 PM, David Dillow wrote:
> On Fri, 2009-06-19 at 08:21 +0200, Harald Hoyer wrote:
>> On 06/19/2009 04:55 AM, David Dillow wrote:
>>> The RFC only says we need to boot off the LUN specified, 0 if none
>>> listed. That's your default partition.
>> ok, so the LUN is the partition number?
>
> No, a LUN is a whole disk. You would map the LUN to /dev/sda or /dev/sdb
> or such depending on which one it is, and use the entire disk -- no
> partitions needed. If you wanted to separate /var or /home etc, you
> would put them on a different LUN(s) -- partitions optional -- and
> use /etc/fstab to mount them.

hmm, so I would have to create a rule, which would look for the next disk which 
appears and has some /sys magic iSCSI attributes  and try to mount the whole disk.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to find the root partition with root=dhcp root-path=iscsi:::...
       [not found]                         ` <4A3BBF97.3090403-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-06-19 17:11                           ` David Dillow
  0 siblings, 0 replies; 10+ messages in thread
From: David Dillow @ 2009-06-19 17:11 UTC (permalink / raw)
  To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Fri, 2009-06-19 at 18:40 +0200, Harald Hoyer wrote:
> On 06/19/2009 06:05 PM, David Dillow wrote:
> > On Fri, 2009-06-19 at 08:21 +0200, Harald Hoyer wrote:
> >> On 06/19/2009 04:55 AM, David Dillow wrote:
> >>> The RFC only says we need to boot off the LUN specified, 0 if none
> >>> listed. That's your default partition.
> >> ok, so the LUN is the partition number?
> >
> > No, a LUN is a whole disk. You would map the LUN to /dev/sda or /dev/sdb
> > or such depending on which one it is, and use the entire disk -- no
> > partitions needed. If you wanted to separate /var or /home etc, you
> > would put them on a different LUN(s) -- partitions optional -- and
> > use /etc/fstab to mount them.
> 
> hmm, so I would have to create a rule, which would look for the next disk which 
> appears and has some /sys magic iSCSI attributes  and try to mount the whole disk.

You're looking for the disk that makes the directory
/sys/class/scsi_disk/<HOST>:0:0:<LUN>

HOST will almost always be 0, unless we try multiple iSCSI roots in
sequence. LUN will be the one specified by root-path.

I'm not sure if you can match this via udev rules, perhaps using a match
rule such as SYMLINK=="by-path/*-scsi-0:0:0:<LUN>"
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-06-19 17:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-18 14:30 How to find the root partition with root=dhcp root-path=iscsi::: Harald Hoyer
     [not found] ` <4A3A4F8F.8070204-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-18 16:06   ` Warren Togami
     [not found]     ` <4A3A65EC.1010404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-18 17:01       ` Harald Hoyer
     [not found]         ` <4A3A72E9.3000605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-18 17:06           ` Warren Togami
2009-06-19  2:55           ` David Dillow
     [not found]             ` <1245380152.28792.9.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-19  6:21               ` Harald Hoyer
     [not found]                 ` <4A3B2E6D.2000809-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-19 16:05                   ` David Dillow
     [not found]                     ` <1245427519.32104.2.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-19 16:40                       ` Harald Hoyer
     [not found]                         ` <4A3BBF97.3090403-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-19 17:11                           ` David Dillow
2009-06-18 17:29   ` Warren Togami

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.