Jukka Marin | 1 May 2010 15:13
Picon

Re: problem with wedges

On Sat, May 01, 2010 at 03:05:37PM +0300, Jukka Marin wrote:
> What should I do?  Can I add wedge support to domU kernel and would that
> allow me to access the data again?

I added

options         DKWEDGE_AUTODISCOVER    # Automatically add dk(4) instances
options         DKWEDGE_METHOD_GPT      # Supports GPT partitions as wedges
pseudo-device   drvctl

to my domU kernel config and dk0 now appears on domU:

xbd0: 208 GB, 512 bytes/sect x 437498880 sectors
xbd1: 4705 GB, 512 bytes/sect x 9867174912 sectors
xbd1: GPT GUID: c1349a02-e045-11dc-96ed-003048928bca
dk0 at xbd1: c1349a16-e045-11dc-96ed-003048928bca
dk0: 9867174845 blocks at 34, type: ffs

However, I can't access dk0:

# gpt show dk0
gpt: unable to open device ': No such process
# dkctl dk0 listwedges
dkctl: dk0: listwedges: Inappropriate ioctl for device
# disklabel dk0
disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device

  -jm

(Continue reading)

Jukka Marin | 1 May 2010 16:03
Picon

Re: problem with wedges

On Sat, May 01, 2010 at 03:51:18PM +0200, Jean-Yves Migeon wrote:
> On 01.05.2010 15:13, Jukka Marin wrote:
> >xbd0: 208 GB, 512 bytes/sect x 437498880 sectors
> >xbd1: 4705 GB, 512 bytes/sect x 9867174912 sectors
> >xbd1: GPT GUID: c1349a02-e045-11dc-96ed-003048928bca
> >dk0 at xbd1: c1349a16-e045-11dc-96ed-003048928bca
> >dk0: 9867174845 blocks at 34, type: ffs
> >
> >However, I can't access dk0:
> >
> ># gpt show dk0
> >gpt: unable to open device ': No such process
> ># dkctl dk0 listwedges
> >dkctl: dk0: listwedges: Inappropriate ioctl for device
> ># disklabel dk0
> >disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device
> 
> # gpt show xbd1
> # dkctl xbd1 listwedges
> 
> I do not understand what you want to get access to: a GPT partition? MBR 
> partition? A disklabel?

Previously, dom0 supplied /dev/dk0 to domU for xbd1 and domU then mounted
/dev/xbd1d as /media (ffs).

Now, dom0 gives the raw disk (sdh) to domU which detects the gpt/wedge and
attaches dk0.

I want to access the data on dk0, but I'm not sure what I'm doing wrong.
(Continue reading)

Jean-Yves Migeon | 1 May 2010 16:26
Picon
Favicon

Re: problem with wedges

On 01.05.2010 16:03, Jukka Marin wrote:
>>> However, I can't access dk0:
>>>
>>> # gpt show dk0
>>> gpt: unable to open device ': No such process
>>> # dkctl dk0 listwedges
>>> dkctl: dk0: listwedges: Inappropriate ioctl for device
>>> # disklabel dk0
>>> disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device
>>
>> # gpt show xbd1
>> # dkctl xbd1 listwedges
>>
>> I do not understand what you want to get access to: a GPT partition? MBR
>> partition? A disklabel?
>
> Previously, dom0 supplied /dev/dk0 to domU for xbd1 and domU then mounted
> /dev/xbd1d as /media (ffs).

This dk0 wedge was obtained/detected from what? Wedges are MI 
representations of partitions, and are created either manually or 
automagically through the information it can get in a MBR, GPT or disklabel.

> Now, dom0 gives the raw disk (sdh) to domU which detects the gpt/wedge and
> attaches dk0.

The dk0 created here comes from GUID 
"c1349a02-e045-11dc-96ed-003048928bca" of the GPT on xbd1, which is 
probably the one you get from the GPT accessible on sdh in dom0. That 
does not mean it corresponds to the wedge you had previously in your domU.
(Continue reading)

Joerg Sonnenberger | 1 May 2010 16:33
Picon

Re: problem with wedges

On Sat, May 01, 2010 at 04:13:33PM +0300, Jukka Marin wrote:
> # gpt show dk0
> gpt: unable to open device ': No such process
> # dkctl dk0 listwedges
> dkctl: dk0: listwedges: Inappropriate ioctl for device
> # disklabel dk0
> disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device

None of this operations make sense on dk. You add the GPT partition on
the underlaying device, not on dk.

Joerg

Jukka Marin | 1 May 2010 17:19
Picon

Re: problem with wedges

On Sat, May 01, 2010 at 04:33:12PM +0200, Joerg Sonnenberger wrote:
> On Sat, May 01, 2010 at 04:13:33PM +0300, Jukka Marin wrote:
> > # gpt show dk0
> > gpt: unable to open device ': No such process
> > # dkctl dk0 listwedges
> > dkctl: dk0: listwedges: Inappropriate ioctl for device
> > # disklabel dk0
> > disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device
> 
> None of this operations make sense on dk. You add the GPT partition on
> the underlaying device, not on dk.

Yeah.  After recovering my notes, I did "fsck dk0" and "mount dk0".

It was too simple..  sorry for the noise and thanks to all who replied.

  -jm

Dustin Marquess | 2 May 2010 05:40
Picon

LVM performance

I'm curious if anybody has performed any performance tests of LVM?

I know under Linux, LVM seems to cause a 10-20% performance hit.  I'm hoping
the NetBSD version doesn't have this problem?

-Dustin

Dave J. Barnes | 3 May 2010 05:01
Picon

5.1_RC1 ipmon trouble

ipmon -Dsn

gets error
ipmon[403]: ioctl(FIONREAD): Invalid argument

(Same as 5.0.1)

djb

Dave J. Barnes | 3 May 2010 05:03
Picon

5.1_RC1 Dual Head Trouble

Previously working dual head (2 ATI Rage cards) with 5.0.1 fails with 
5.1_RC1.

The Xorg int10 module seems to be unable to access the bios to 
initialize the card. Is this
an Xorg change or a NetBSD change?

djb

matecocido | 5 May 2010 17:45
Picon

BSDday 2010 - Pre Call for Papers (Pre-CFP)

BSDday Argentina 2010 - http://www.bsdday.org/

Buenos Aires City

  * OpenBSDeros - OpenBSD User Group and
  * BUG-DC-UBA-AR BSD User Group of Computer Department of the Faculty
of Natural Sciences, University of Buenos Aires,
 call to the community of free software, users, system administrators
and developers of BSD systems for participation to BSDday 2010.

The subject of the event is BSD operating systems, BSD-licensed
software, licensing issues, BSD philosophy and related topics.

There is no maximum number of speakers or length of the talks, but you
should indicate those both at the time of the talk submission.

Talks and slides can be in Spanish or English, talks with
practical/lab content besides theoretical content in which attendees
can perform labs practices and exercises  are preferred over purely
theoretical ones.

For lab talks the speaker should indicate the materials assistants
must have (i.e. a laptop with such and such OS).

NOTE: On budget issues, the organizators may pay some of the passages
or hotel, in whole or in part, to the selected authors residing
outside the Buenos Aires City (Argentina).

We appreciate the contribution of everyone in the dissemination of
this call and the event itself, feel free to forward this email to any
(Continue reading)

absurd Cain | 6 May 2010 05:13

Psychologists - 272,188 records and 9,874 emails

Here's a business list package on sale this week only:

Business List Gold Package

Real Estate Agents - 1 million records with emails
US New Business Database - 4.8 million records all with emails
Manufacturers Database - 1,057,119 records with 476,509 emails

All complete lists above: $296

There are more packages and not just for business. we also have healthcare, consumers and more. Contact me
here for more info or to get samples: Hollis.Askew <at> perfectlist.co.cc

to stop this email in future email us at disappear <at> perfectlist.co.cc


Gmane