linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: md device on Redhat Linux 3
       [not found] <207069.41342.qm@web30301.mail.mud.yahoo.com>
@ 2007-01-31  0:52 ` Neil Brown
  2007-01-31  8:06   ` Luca Berra
  0 siblings, 1 reply; 2+ messages in thread
From: Neil Brown @ 2007-01-31  0:52 UTC (permalink / raw)
  To: David Shine; +Cc: linux-raid

On Tuesday January 30, davidshine@yahoo.com wrote:
> Hi there,
> 
> I am currenlty building a site ysing the following
> 
> 2 * IBM DS4300 (SANS)
> 2 * IBM X346 (intel systems)
> 2 * HBA on each node
> 
> I am using the md device driver to tie the two SANS together and use them in a mirrored environement. So the layout is 3 file systems sitting under and LVM volume group siting under a mirrored SAN (/dev/sdb, /dev/sdc) on 2 g.b. fibre using md driver.
> 
> The problem when we write to one of the SANS when he mirror is
> broken and then take this offline and ring the other SAN online and
> switch on the RAID array and  varyon the volume group and  finally
> mount the file system and then dismount the file system,swithc of
> both the volume group and the RAID array and thn reboot the server
> it finds the most recently updated disk to be the one written to not
> the one last mounted. 

It's not really clear to me what you are trying to do here.... maybe
if you explain your motivations and expectations.

> 
> How does this work? Where is the date and time stamp written. I
> thought it would be at the point of doing a aidstart and the supper
> block would be updated, can you confirm this please? 

There is a timestamp on superblock but it isn't used much.  The 'event
count' is used more.
So if you have a mirrored pair and :
  - stop it
  - restart with just one device - do some stuff, and stop it
  - restart with just the other device, do some stuff, and stop
  - reassemble the pair
then the 'primary' could easily be either of the two, depending on
which got the most event updates.

Just don't do this.

Again: what do you really want to do?

NeilBrown

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

* Re: md device on Redhat Linux 3
  2007-01-31  0:52 ` md device on Redhat Linux 3 Neil Brown
@ 2007-01-31  8:06   ` Luca Berra
  0 siblings, 0 replies; 2+ messages in thread
From: Luca Berra @ 2007-01-31  8:06 UTC (permalink / raw)
  To: linux-raid

On Wed, Jan 31, 2007 at 11:52:17AM +1100, Neil Brown wrote:
>On Tuesday January 30, davidshine@yahoo.com wrote:
>> Hi there,
>> 
>> I am currenlty building a site ysing the following
>> 
>> 2 * IBM DS4300 (SANS)
>> 2 * IBM X346 (intel systems)
>> 2 * HBA on each node
>> 
>> I am using the md device driver to tie the two SANS together and use them in a mirrored environement. So the layout is 3 file systems sitting under and LVM volume group siting under a mirrored SAN (/dev/sdb, /dev/sdc) on 2 g.b. fibre using md driver.
>> 
>> The problem when we write to one of the SANS when he mirror is
>> broken and then take this offline and ring the other SAN online and
>> switch on the RAID array and  varyon the volume group and  finally
>> mount the file system and then dismount the file system,swithc of
>> both the volume group and the RAID array and thn reboot the server
>> it finds the most recently updated disk to be the one written to not
>> the one last mounted. 
>
>It's not really clear to me what you are trying to do here.... maybe
>if you explain your motivations and expectations.
Usually if you get in the unpleasant situation of having two different
versions of your data you _must_ ensure that automatic resyncronization
does not happen at all. (you might need to manually copy data from one
storage to the other)
maybe mdadm could help, by having some options to control startup of
degraded or unclean arrays.
At the moment the best opion is to have a script that checks
availability of device nodes before starting the array, and refuses to
start if the array would be degraded.
In case you need to force a copy to start you can use mdadm --create
with the "missing" option to forcibly kick the other storage from the
array.
Also a nice add-on to mdadm would be a command to increase the event
counter of the remaining devices on a degraded array, to ensure those
will be considered to be uptodate at next restart.

L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

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

end of thread, other threads:[~2007-01-31  8:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <207069.41342.qm@web30301.mail.mud.yahoo.com>
2007-01-31  0:52 ` md device on Redhat Linux 3 Neil Brown
2007-01-31  8:06   ` Luca Berra

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