Skip to contentSkip to conversation

multipath-tools-0.1.6

ANNOUNCE christophe varoqui 3 participants 7 messages Apr 25, 2004 – Apr 27, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

here goes multipath-tools-0.1.6

Changelog for this release :

* add the dmadm WIP tool (read MD superblocks and create corresponding devmaps when possible)
* plug fd leak in TUR path checker (multipathd)

Please note dmadm should not be run anywhere near a production machine with useful data on MD raids. That said comments and contributions are welcome.

Downloads and docs at http://christophe.varoqui.free.fr

regards,
cvaroqui

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 2 lines · christophe varoqui

* add the dmadm WIP tool (read MD superblocks and create corresponding devmaps when possible)

:)

- Joe

#2 lore raw

Selon [email protected]:

Quoted 6 lines · christophe varoqui
Quoted 2 lines

* add the dmadm WIP tool (read MD superblocks and create corresponding devmaps when possible)

:)

Any insight on where to put the log of the mirror target when mapping over a MD-created raid1 ?

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
Quoted 10 lines · On Tue, Apr 27, 2004 at 11:57:58AM +0200, [email protected] wrote:

Selon [email protected]:

Quoted 6 lines · christophe varoqui
Quoted 2 lines

* add the dmadm WIP tool (read MD superblocks and create corresponding devmaps when possible)

:)

Any insight on where to put the log of the mirror target when mapping over a MD-created raid1 ?

MD effectively uses a log with a single region in it. So we only need 3 sectors (2 for the header 1 for the bitset) for the log, is there any space in the MD metadata where this could be placed ?

- Joe

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#4 lore raw

Selon [email protected]:

Quoted 8 lines
Quoted 1 line

Any insight on where to put the log of the mirror target when mapping over

a

Quoted 1 line

MD-created raid1 ?

MD effectively uses a log with a single region in it. So we only need 3 sectors (2 for the header 1 for the bitset) for the log, is there any space in the MD metadata where this could be placed ?

Nope : the sb is 4096 bytes long, and is full of holes. The biggest one is 128 bytes long, at the tail. We could lower the maximum number of device in a raid from 27 to 21 to free 3 sectors, but it won't be appreciated and would leave us with the most fundamental problem : logging in the MD superblock would corrupt the checksum ... :(

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#5 lore raw
In reply to [email protected]
Quoted 9 lines · On Tue, 2004-04-27 at 05:09, [email protected] wrote:
Quoted 8 lines · On Tue, Apr 27, 2004 at 11:57:58AM +0200, [email protected] wrote:

Selon [email protected]:

Quoted 6 lines · christophe varoqui
Quoted 2 lines

* add the dmadm WIP tool (read MD superblocks and create corresponding devmaps when possible)

:)

Quoted 8 lines
Quoted 2 lines

Any insight on where to put the log of the mirror target when mapping over a MD-created raid1 ?

MD effectively uses a log with a single region in it. So we only need 3 sectors (2 for the header 1 for the bitset) for the log, is there any space in the MD metadata where this could be placed ?

- Joe

The MD device size is 64K aligned and MD superblock size is 4K. In term of sectors, the calculation is as follows:

MD_SB_BYTES 4096
MD_SB_SECTORS (MD_SB_BYTES / 512)

// x is the child device size in sectors.

#define MD_RESERVED_BYTES (64 * 1024)
#define MD_RESERVED_SECTORS (MD_RESERVED_BYTES / 512)
#define MD_NEW_SIZE_SECTORS(x) (((x) & ~(MD_RESERVED_SECTORS -1)) - MD_RESERVED_SECTORS)

It's safe to write the log after the MD superblock.

Regards,
Mike T.

#6 lore raw
Quoted 13 lines · Mike Tran
Quoted 12 lines · On Tue, 2004-04-27 at 05:09, [email protected] wrote:
Quoted 10 lines · On Tue, Apr 27, 2004 at 11:57:58AM +0200, [email protected] wrote:

Selon [email protected]:

Quoted 6 lines · christophe varoqui
Quoted 2 lines

* add the dmadm WIP tool (read MD superblocks and create corresponding devmaps when possible)

:)

Any insight on where to put the log of the mirror target when mapping over a MD-created raid1 ?

Quoted 8 lines
Quoted 5 lines

MD effectively uses a log with a single region in it. So we only need 3 sectors (2 for the header 1 for the bitset) for the log, is there any space in the MD metadata where this could be placed ?

- Joe

The MD device size is 64K aligned and MD superblock size is 4K. In term of sectors, the calculation is as follows:

Oops. I was thinking raid1 when saying : "The MD device size is 64K aligned." I should have said : "The new MD child size is 64K aligned."

Mike T.