linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] brainfart: lilo'd a PV
@ 2009-12-17 23:41 Brian J. Murrell
  2009-12-18  0:48 ` Takahiro Yasui
  0 siblings, 1 reply; 7+ messages in thread
From: Brian J. Murrell @ 2009-12-17 23:41 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1610 bytes --]

I managed to write a lilo block (lilo) to the start of a PV which I have
on /dev/sda (note, /dev/sda is a whole disk PV, unpartitioned).

However, looking at a number of different PVs here, it appears that the
LVM data starts at 0x200 with: "LABELONE".  i.e.:

# hexdump -C /dev/sdc3
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200  4c 41 42 45 4c 4f 4e 45  01 00 00 00 00 00 00 00  |LABELONE........|
...
# hexdump -C /dev/sdb
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  00 00 00 00 00 00 00 00  dc 59 0f 10 cf c9 00 00  |.........Y......|
000001c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200  4c 41 42 45 4c 4f 4e 45  01 00 00 00 00 00 00 00  |LABELONE........|
...
# hexdump -C /dev/sda 
00000000  fa eb 31 12 00 00 4c 49  4c 4f 16 08 10 00 01 00  |..1...LILO......|
...
00000180  30 e4 cd 13 eb 91 e8 93  fe 44 69 73 6b 20 72 65  |0........Disk re|
00000190  61 64 20 65 72 72 6f 72  0d 0a 00 00 00 00 00 00  |ad error........|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001b0  00 00 00 00 00 00 00 00  c6 08 1a 45 cf c9 00 00  |...........E....|
000001c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200  4c 41 42 45 4c 4f 4e 45  01 00 00 00 00 00 00 00  |LABELONE........|

Is that correct?

Is there anything I should do to repair this or is my brainfart benign
to this PV?

Thanx!

b.


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-12-18 12:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-17 23:41 [linux-lvm] brainfart: lilo'd a PV Brian J. Murrell
2009-12-18  0:48 ` Takahiro Yasui
2009-12-18  2:03   ` [linux-lvm] " Brian J. Murrell
2009-12-18  2:16     ` malahal
2009-12-18  3:12       ` Takahiro Yasui
2009-12-18  3:31     ` Ray Morris
2009-12-18 12:09   ` [linux-lvm] " Bryn M. Reeves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).