Size of metadate?

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Jun 27 07:12:33 UTC 2007


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 at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20070627/b8900726/attachment.pgp


More information about the freebsd-geom mailing list