HomeFreeBSD

Add [-m map] option to zpool_layout

Description

Add [-m map] option to zpool_layout

By default the zpool_layout command would always use the slot
number assigned by Linux when generating the zdev.conf file.
This is a reasonable default there are cases when it makes
sense to remap the slot id assigned by Linux using your own
custom mapping.

This commit adds support to zpool_layout to provide a custom
slot mapping file. The file contains in the first column the
Linux slot it and in the second column the custom slot mapping.
By passing this map file with '-m map' to zpool_config the
mapping will be applied when generating zdev.conf.

Additionally, two sample mapping have been added which reflect
different ways to map the slots in the dragon drawers.

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Sep 15 2010, 10:32 PM
Parents
rGbbf3a3575c0b: Fix markdown rendering
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGa5b4d6358200: Add [-m map] option to zpool_layout (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Sep 17 2010, 6:02 PM