Thread (5 messages) 5 messages, 2 authors, 2015-02-16

RE: RAID 1 metadata - keep separate from mirror disks ?

From: Suresh Babu Kandukuru <hidden>
Date: 2015-02-12 11:42:18

Thanks Phil . This helps.

/Suresh


-----Original Message-----
From: Phil Turmel [mailto:philip@turmel.org] 
Sent: Wednesday, February 11, 2015 8:19 PM
To: Suresh Babu Kandukuru; linux-raid@vger.kernel.org
Subject: Re: RAID 1 metadata - keep separate from mirror disks ?

Good morning Suresh,

On 02/11/2015 07:14 AM, Suresh Babu Kandukuru wrote:
Hi There,

On the RAID 1  metadata: is there  any way to keep the metadata 
separate from the mirror disks?  Could you  guide us on this ?, 
please. In general, we need to keep all metadata off the device 
itself, leaving all the device available for user data. This is 
particularly important in the migration case, where we want to take an 
existing LUN and add a second leg to it to create the mirror device 
without changing any of the data or metadata on the LUN.
If you look at "man 4 md" you'll see some options.  If a legacy array type meets your needs, you can operate without metadata at all.  Use "mdadm --build" to assemble your raid at each boot.

Or, if your storage server can insert a leg ahead of you current LUN, you can then create the array with an explicit data offset matching the size of the inserted leg.  Create it degraded with the existing LUN, then add (a) LUN(s) to start mirroring.  This process will leave you the option to resize with more legs later.

Or you can add a leg to the end and create your array with version 1.0 metadata, which is placed at the end of the device.

Finally, you could write your own metadata container service for use with mdmon.  (That's a bit beyond my ability, sorry.)

Phil
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help