Date: Wed, 27 Jun 2007 00:31:08 +0200 From: Nico -telmich- Schottelius <nico-freebsd-geom@schottelius.org> To: freebsd-geom@freebsd.org Subject: Re: Size of metadate? Message-ID: <20070626223108.GA19980@schottelius.org> In-Reply-To: <20070626220914.GA11511@schottelius.org> References: <20070626220914.GA11511@schottelius.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
The same also happens with gmirror not being loaded.
The reason why I want to clear it is because the metadata on amrd0 has
also a gmirror device named raid1, which is not in use anymore / should
be created newly:
GEOM_MIRROR: Device raid1 created (id=2125903367).
GEOM_MIRROR: Device raid1: provider amrd1 detected.
GEOM_MIRROR: Device raid1: provider amrd1 activated.
GEOM_MIRROR: Device raid1: provider mirror/raid1 launched.
GEOM_MIRROR: Device raid1 already configured.
If I boot the system with amrd0s1a as /, amrd1 is detected as
mirror/raid1.
If I boot the system with mirror/raid1sa as /, amrd0 is detected
as mirror/raid1.
Which leads me to the situation that both times I boot from amrd0.
My aim is to bootup the server from amrd1 as mirror/raid1 so I can
boot the new system found on that harddisk and after that integrate
amrd0 as the second disk into the raid.
Perhaps someone has a hint for me
a) why the dd is not allowed to work
b) how to clear the metadata
c) or how to achieve my aim to make amrd1 as mirror/raid1s1a
available as /
Sincerly
Nico
--
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/
PGP: BFE4 C736 ABE5 406F 8F42 F7CF B8BE F92A 9885 188C
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGgZOsuL75KpiFGIwRAgMaAKDpfZHFGPDVxEPfexXxEq3AfsSvaACdEoTh
BQ/aReTMLeu7cMvZrObrOO0=
=1ovh
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070626223108.GA19980>
