Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2007 09:12:26 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Nico -telmich- Schottelius <nico-freebsd-geom@schottelius.org>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: Size of metadate?
Message-ID:  <20070627071225.GD21749@garage.freebsd.pl>
In-Reply-To: <20070626223108.GA19980@schottelius.org>
References:  <20070626220914.GA11511@schottelius.org> <20070626223108.GA19980@schottelius.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, Jun 27, 2007 at 12:31:08AM +0200, Nico -telmich- Schottelius wrote:
> Just found that other mail, in which diskinfo was mentioned, which
> returned the following result to me:
> 
> ddna045# diskinfo -v /dev/mirror/raid1 /dev/amrd1 /dev/amrd0
> /dev/mirror/raid1
>    512            # sectorsize
>    146814270976   # mediasize in bytes (137G)
>    286746623      # mediasize in sectors
> 
> /dev/amrd1
>    512            # sectorsize
>    146814271488   # mediasize in bytes (137G)
>    286746624      # mediasize in sectors
>    17849          # Cylinders according to firmware.
>    255            # Heads according to firmware.
>    63             # Sectors according to firmware.
> 
> /dev/amrd0
>    512            # sectorsize
>    146814271488   # mediasize in bytes (137G)
>    286746624      # mediasize in sectors
>    17849          # Cylinders according to firmware.
>    255            # Heads according to firmware.
>    63             # Sectors according to firmware.
> 
> Clearing it with dd does not work:
> 
> ddna045# dd of=/dev/amrd0 if=/dev/zero bs=512 skip=286746623 count=1
> dd: /dev/amrd0: Operation not permitted

If you have gmirror configured you first need to stop it with
'gmirror stop raid1' command and then try to write to its components,
but you should use 'seek=286746623' instead of 'skip=286746623'.

> The same also happens with gmirror not being loaded.

That's strange. 'sysctl -b kern.geom.confxml' can give us a hint who
keeps it open.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFGgg3ZForvXbEpPzQRAonhAJ92TW3XHLqRcE26fCAr79hLM4M6SwCfWTDd
XkZgTbGMhOktgSDWJk6LOs4=
=nQu1
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070627071225.GD21749>