|
List Info
Thread: gpt on NetBSD_4.0BETA2
|
|
| gpt on NetBSD_4.0BETA2 |

|
2007-07-20 16:23:19 |
I am trying to use gpt to create a GUID partition table on a
3TB
Xserve RAID:
# gpt create /dev/sd0d
gpt: unable to open device 'sd0d': Invalid argument
I assume this because in sys/dev/scsipi/sd.c does not set
the
properties. In -current, rev 1.260 of sd.c adds
sd_set_properties
(). (4.0BETA's sd.c is at rev 1.258).
Is that all that's needed to get gpt to work on sd(4) type
devices?
If so, maybe that change can be pulled up to the 4.0
branch?
--
aew
|
|
| Re: gpt on NetBSD_4.0BETA2 |

|
2007-07-20 17:56:00 |
On Fri, Jul 20, 2007 at 05:23:19PM -0400, Andreas Wrede
wrote:
> I am trying to use gpt to create a GUID partition
table on a 3TB Xserve
> RAID:
>
> # gpt create /dev/sd0d
> gpt: unable to open device 'sd0d': Invalid argument
>
> I assume this because in sys/dev/scsipi/sd.c does not
set the properties.
> In -current, rev 1.260 of sd.c adds
sd_set_properties(). (4.0BETA's sd.c is
> at rev 1.258).
>
> Is that all that's needed to get gpt to work on sd(4)
type devices? If so,
> maybe that change can be pulled up to the 4.0 branch?
Yes, a backport is trivial, I've actually done it. I don't
see why it couldn't
go into netbsd-4.
Also, you may want the appropriate gpt stuff for dk in the
kernel:
options DKWEDGE_AUTODISCOVER
options DKWEDGE_METHOD_GPT
Jonathan Kollasch
|
|
| Re: gpt on NetBSD_4.0BETA2 |

|
2007-07-21 11:40:43 |
On Jul 20, 2007, at 18:56 , Jonathan A. Kollasch wrote:
> On Fri, Jul 20, 2007 at 05:23:19PM -0400, Andreas Wrede
wrote:
>> I am trying to use gpt to create a GUID partition
table on a 3TB
>> Xserve
>> RAID:
>>
>> # gpt create /dev/sd0d
>> gpt: unable to open device 'sd0d': Invalid
argument
>>
>> I assume this because in sys/dev/scsipi/sd.c does
not set the
>> properties.
>> In -current, rev 1.260 of sd.c adds
sd_set_properties().
>> (4.0BETA's sd.c is
>> at rev 1.258).
>>
>> Is that all that's needed to get gpt to work on
sd(4) type
>> devices? If so,
>> maybe that change can be pulled up to the 4.0
branch?
>
> Yes, a backport is trivial, I've actually done it. I
don't see why
> it couldn't
> go into netbsd-4.
Thanks - I'll go ahead then..
> Also, you may want the appropriate gpt stuff for dk in
the kernel:
>
> options DKWEDGE_AUTODISCOVER
> options DKWEDGE_METHOD_GPT
Ok. I guess, without it, I have to re-run the dkctl ..
addwedge
commands?
BTW, pseudo-device drvctl is only present in the ALL
kernel and the
DKWEDGE_... options are missing completely. Should GENERIC
not have
drvctl? And the commented-out options?
Also missing is the drvctl(4) man page, which is referenced
from
drvctl(8).
--
aew
|
|
| Re: gpt on NetBSD_4.0BETA2 |

|
2007-07-28 09:11:47 |
|
|
On Jul 21, 2007, at 12:40 , Andreas Wrede wrote:
>
> On Jul 20, 2007, at 18:56 , Jonathan A. Kollasch wrote:
>
>> On Fri, Jul 20, 2007 at 05:23:19PM -0400, Andreas Wrede wrote:
>>> I am trying to use gpt to create a GUID partition table on a 3TB
>>> Xserve
>>> RAID:
>>>
>>> # gpt create /dev/sd0d
>>> gpt: unable to open device 'sd0d': Invalid argument
>>>
>>> I assume this because in sys/dev/scsipi/sd.c does not set the
>>> properties.
>>> In -current, rev 1.260 of sd.c adds sd_set_properties().
>>> (4.0BETA's sd.c is
>>> at rev 1.258).
>>>
>>> Is that all that's needed to get gpt to work on sd(4) type
>>> devices? If so,
>>> maybe that change can be pulled up to the 4.0 branch?
>>
>> Yes, a backport is trivial, I've actually done it. I don't see
>> why it couldn't
>> go into netbsd-4.
>
> Thanks - I'll go ahead then..
For the record, with the patch below, gpt and dkctl work fine on
NetBSD/i386 4.0_BETA2. This is rev 1.260 of sd.c in -current.
>> Also, you may want the appropriate gpt stuff for dk in the kernel:
>>
>> options DKWEDGE_AUTODISCOVER
>> options DKWEDGE_METHOD_GPT
>
> Ok. I guess, without it, I have to re-run the dkctl .. addwedge
> commands?
>
> BTW, pseudo-device drvctl is only present in the ALL kernel and
> the DKWEDGE_... options are missing completely. Should GENERIC not
> have drvctl? And the commented-out options?
>
> Also missing is the drvctl(4) man page, which is referenced from
> drvctl(8).
--
aew
|
Approximate file size 2183 bytes |
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|