linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Superblocks
@ 2007-10-26 16:43 Greg Cormier
  2007-10-27 14:08 ` Superblocks Raz
  2007-10-30  4:27 ` Superblocks Neil Brown
  0 siblings, 2 replies; 8+ messages in thread
From: Greg Cormier @ 2007-10-26 16:43 UTC (permalink / raw)
  To: linux-raid

Can someone help me understand superblocks and MD a little bit?

I've got a raid5 array with 3 disks - sdb1, sdc1, sdd1.

--examine on these 3 drives shows correct information.


However, if I also examine the raw disk devices, sdb and sdd, they
also appear to have superblocks with some semi valid looking
information. sdc has no superblock.

How can I clear these? If I unmount my raid, stop md0, it won't clear it.

[root@zeus ~]# mdadm --zero-superblock /dev/hdd
mdadm: Couldn't open /dev/hdd for write - not zeroing

I'd like to rule out these oddities before I start on my next
troubleshooting of why my array rebuilds every time I reboot :)

Thanks,
Greg

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

* Re: Superblocks
  2007-10-26 16:43 Superblocks Greg Cormier
@ 2007-10-27 14:08 ` Raz
  2007-10-30  4:27 ` Superblocks Neil Brown
  1 sibling, 0 replies; 8+ messages in thread
From: Raz @ 2007-10-27 14:08 UTC (permalink / raw)
  To: Greg Cormier; +Cc: linux-raid

why you zeroing hdd ?  should you clear sdd?

On 10/26/07, Greg Cormier <gcormier@gmail.com> wrote:
> Can someone help me understand superblocks and MD a little bit?
>
> I've got a raid5 array with 3 disks - sdb1, sdc1, sdd1.
>
> --examine on these 3 drives shows correct information.
>
>
> However, if I also examine the raw disk devices, sdb and sdd, they
> also appear to have superblocks with some semi valid looking
> information. sdc has no superblock.
>
> How can I clear these? If I unmount my raid, stop md0, it won't clear it.
>
> [root@zeus ~]# mdadm --zero-superblock /dev/hdd
> mdadm: Couldn't open /dev/hdd for write - not zeroing
>
> I'd like to rule out these oddities before I start on my next
> troubleshooting of why my array rebuilds every time I reboot :)
>
> Thanks,
> Greg
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


-- 
Raz

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

* Re: Superblocks
  2007-10-26 16:43 Superblocks Greg Cormier
  2007-10-27 14:08 ` Superblocks Raz
@ 2007-10-30  4:27 ` Neil Brown
  2007-10-30 16:06   ` Superblocks Greg Cormier
  1 sibling, 1 reply; 8+ messages in thread
From: Neil Brown @ 2007-10-30  4:27 UTC (permalink / raw)
  To: Greg Cormier; +Cc: linux-raid

On Friday October 26, gcormier@gmail.com wrote:
> Can someone help me understand superblocks and MD a little bit?
> 
> I've got a raid5 array with 3 disks - sdb1, sdc1, sdd1.
> 
> --examine on these 3 drives shows correct information.
> 
> 
> However, if I also examine the raw disk devices, sdb and sdd, they
> also appear to have superblocks with some semi valid looking
> information. sdc has no superblock.

If a partition starts a multiple of 64K from the start of the device,
and ends with about 64K of the end of the device, then a superblock on
the partition will also look like a superblock on the whole device.
This is one of the shortcomings of v0.90 superblocks.  v1.0 doesn't
have this problem.

> 
> How can I clear these? If I unmount my raid, stop md0, it won't clear it.

mdadm --zero-superblock device name

is the best way to remove an unwanted superblock.  Ofcourse in the
above described case, removing the unwanted superblock will remove the
wanted one aswell.


> 
> [root@zeus ~]# mdadm --zero-superblock /dev/hdd
> mdadm: Couldn't open /dev/hdd for write - not zeroing

As I think someone else pointed out "/dev/hdd" is not "/dev/sdd".

NeilBrown

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

* Re: Superblocks
  2007-10-30  4:27 ` Superblocks Neil Brown
@ 2007-10-30 16:06   ` Greg Cormier
  2007-11-01 23:29     ` Superblocks Neil Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Greg Cormier @ 2007-10-30 16:06 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

Which is the default type of superblock? 0.90 or 1.0?

On 10/30/07, Neil Brown <neilb@suse.de> wrote:
> On Friday October 26, gcormier@gmail.com wrote:
> > Can someone help me understand superblocks and MD a little bit?
> >
> > I've got a raid5 array with 3 disks - sdb1, sdc1, sdd1.
> >
> > --examine on these 3 drives shows correct information.
> >
> >
> > However, if I also examine the raw disk devices, sdb and sdd, they
> > also appear to have superblocks with some semi valid looking
> > information. sdc has no superblock.
>
> If a partition starts a multiple of 64K from the start of the device,
> and ends with about 64K of the end of the device, then a superblock on
> the partition will also look like a superblock on the whole device.
> This is one of the shortcomings of v0.90 superblocks.  v1.0 doesn't
> have this problem.
>
> >
> > How can I clear these? If I unmount my raid, stop md0, it won't clear it.
>
> mdadm --zero-superblock device name
>
> is the best way to remove an unwanted superblock.  Ofcourse in the
> above described case, removing the unwanted superblock will remove the
> wanted one aswell.
>
>
> >
> > [root@zeus ~]# mdadm --zero-superblock /dev/hdd
> > mdadm: Couldn't open /dev/hdd for write - not zeroing
>
> As I think someone else pointed out "/dev/hdd" is not "/dev/sdd".
>
> NeilBrown
>

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

* Re: Superblocks
  2007-10-30 16:06   ` Superblocks Greg Cormier
@ 2007-11-01 23:29     ` Neil Brown
  2007-11-02 12:33       ` Superblocks Bill Davidsen
  2007-11-02 14:15       ` Superblocks Greg Cormier
  0 siblings, 2 replies; 8+ messages in thread
From: Neil Brown @ 2007-11-01 23:29 UTC (permalink / raw)
  To: Greg Cormier; +Cc: linux-raid

On Tuesday October 30, gcormier@gmail.com wrote:
> Which is the default type of superblock? 0.90 or 1.0?

The default default is 0.90.
However a local device can be set in mdadm.conf with e.g.
   CREATE metdata=1.0

NeilBrown

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

* Re: Superblocks
  2007-11-01 23:29     ` Superblocks Neil Brown
@ 2007-11-02 12:33       ` Bill Davidsen
  2007-11-02 14:15       ` Superblocks Greg Cormier
  1 sibling, 0 replies; 8+ messages in thread
From: Bill Davidsen @ 2007-11-02 12:33 UTC (permalink / raw)
  To: Neil Brown; +Cc: Greg Cormier, linux-raid

Neil Brown wrote:
> On Tuesday October 30, gcormier@gmail.com wrote:
>   
>> Which is the default type of superblock? 0.90 or 1.0?
>>     
>
> The default default is 0.90.
> However a local device can be set in mdadm.conf with e.g.
>    CREATE metdata=1.0
>
>   

If you change to 1.start, 1.ed, 1.4k names for clarity, they need to be 
accepted here, as well.

-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


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

* Re: Superblocks
  2007-11-01 23:29     ` Superblocks Neil Brown
  2007-11-02 12:33       ` Superblocks Bill Davidsen
@ 2007-11-02 14:15       ` Greg Cormier
  2007-11-03 13:49         ` Superblocks Bill Davidsen
  1 sibling, 1 reply; 8+ messages in thread
From: Greg Cormier @ 2007-11-02 14:15 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

Any reason 0.9 is the default? Should I be worried about using 1.0
superblocks? And can I "upgrade" my array from 0.9 to 1.0 superblocks?

Thanks,
Greg

On 11/1/07, Neil Brown <neilb@suse.de> wrote:
> On Tuesday October 30, gcormier@gmail.com wrote:
> > Which is the default type of superblock? 0.90 or 1.0?
>
> The default default is 0.90.
> However a local device can be set in mdadm.conf with e.g.
>    CREATE metdata=1.0
>
> NeilBrown
>

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

* Re: Superblocks
  2007-11-02 14:15       ` Superblocks Greg Cormier
@ 2007-11-03 13:49         ` Bill Davidsen
  0 siblings, 0 replies; 8+ messages in thread
From: Bill Davidsen @ 2007-11-03 13:49 UTC (permalink / raw)
  To: Greg Cormier; +Cc: Neil Brown, linux-raid

Greg Cormier wrote:
> Any reason 0.9 is the default? Should I be worried about using 1.0
> superblocks? And can I "upgrade" my array from 0.9 to 1.0 superblocks?
>   

Do understand that Neil may have other reasons... but mainly the 0.9 
format is the default because it is most widely supported and allows you 
to use new mdadm versions on old distributions (I still have one FC1 
machine!). As for changing metadata on an existing array, I really can't 
offer any help.
> Thanks,
> Greg
>
> On 11/1/07, Neil Brown <neilb@suse.de> wrote:
>   
>> On Tuesday October 30, gcormier@gmail.com wrote:
>>     
>>> Which is the default type of superblock? 0.90 or 1.0?
>>>       
>> The default default is 0.90.
>> However a local device can be set in mdadm.conf with e.g.
>>    CREATE metdata=1.0
>>
>> NeilBrown
>>     


-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


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

end of thread, other threads:[~2007-11-03 13:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26 16:43 Superblocks Greg Cormier
2007-10-27 14:08 ` Superblocks Raz
2007-10-30  4:27 ` Superblocks Neil Brown
2007-10-30 16:06   ` Superblocks Greg Cormier
2007-11-01 23:29     ` Superblocks Neil Brown
2007-11-02 12:33       ` Superblocks Bill Davidsen
2007-11-02 14:15       ` Superblocks Greg Cormier
2007-11-03 13:49         ` Superblocks Bill Davidsen

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).