Size of metadate?
Nico -telmich- Schottelius
nico-freebsd-geom at schottelius.org
Tue Jun 26 22:30:28 UTC 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20070626/cf351433/attachment.pgp
More information about the freebsd-geom
mailing list