diff options
author | Brian Behlendorf <[email protected]> | 2013-01-29 10:53:19 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-01-29 12:23:17 -0800 |
commit | dbf763b39b232996f0d6bb0022e4446643c18e05 (patch) | |
tree | a7c53dccf053df26b2bfa8144ab845680fd87ad2 /scripts | |
parent | 79c6e4c44538414340a43c065f850d11cb0203af (diff) |
Retire zpool_id infrastructure
In the interest of maintaining only one udev helper to give vdevs
user friendly names, the zpool_id and zpool_layout infrastructure
is being retired. They are superseded by vdev_id which incorporates
all the previous functionality.
Documentation for the new vdev_id(8) helper and its configuration
file, vdev_id.conf(5), can be found in their respective man pages.
Several useful example files are installed under /etc/zfs/.
/etc/zfs/vdev_id.conf.alias.example
/etc/zfs/vdev_id.conf.multipath.example
/etc/zfs/vdev_id.conf.sas_direct.example
/etc/zfs/vdev_id.conf.sas_switch.example
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #981
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 2 | ||||
-rw-r--r-- | scripts/common.sh.in | 5 | ||||
-rw-r--r-- | scripts/zpool-config/zpool-raid0.sh | 7 | ||||
-rw-r--r-- | scripts/zpool-config/zpool-raid10.sh | 7 | ||||
-rw-r--r-- | scripts/zpool-config/zpool-raidz.sh | 7 | ||||
-rw-r--r-- | scripts/zpool-layout/Makefile.am | 22 | ||||
-rw-r--r-- | scripts/zpool-layout/dragon.ddn.conf | 67 | ||||
-rw-r--r-- | scripts/zpool-layout/dragon.llnl.conf | 67 |
8 files changed, 12 insertions, 172 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index d8cb00705..a96915938 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = zpool-config zpool-layout zpios-test zpios-profile +SUBDIRS = zpool-config zpios-test zpios-profile pkglibexecdir = $(libexecdir)/@PACKAGE@ dist_pkglibexec_SCRIPTS = \ diff --git a/scripts/common.sh.in b/scripts/common.sh.in index c6d98f66b..c99894cbf 100644 --- a/scripts/common.sh.in +++ b/scripts/common.sh.in @@ -41,7 +41,7 @@ udevruledir=@udevruledir@ sysconfdir=@sysconfdir@ ETCDIR=${ETCDIR:-/etc} -DEVDIR=${DEVDIR:-/dev/disk/zpool} +DEVDIR=${DEVDIR:-/dev/disk/by-vdev} ZPOOLDIR=${ZPOOLDIR:-${pkglibexecdir}/zpool-config} ZPIOSDIR=${ZPIOSDIR:-${pkglibexecdir}/zpios-test} ZPIOSPROFILEDIR=${ZPIOSPROFILEDIR:-${pkglibexecdir}/zpios-profile} @@ -50,7 +50,6 @@ ZDB=${ZDB:-${sbindir}/zdb} ZFS=${ZFS:-${sbindir}/zfs} ZINJECT=${ZINJECT:-${sbindir}/zinject} ZPOOL=${ZPOOL:-${sbindir}/zpool} -ZPOOL_ID=${ZPOOL_ID:-${bindir}/zpool_id} ZTEST=${ZTEST:-${sbindir}/ztest} ZPIOS=${ZPIOS:-${sbindir}/zpios} @@ -525,7 +524,7 @@ udev_trigger() { # # The following udev helper functions assume that the provided -# udev rules file will create a /dev/disk/zpool/<CHANNEL><RANK> +# udev rules file will create a /dev/disk/by-vdev/<CHANNEL><RANK> # disk mapping. In this mapping each CHANNEL is represented by # the letters a-z, and the RANK is represented by the numbers # 1-n. A CHANNEL should identify a group of RANKS which are all diff --git a/scripts/zpool-config/zpool-raid0.sh b/scripts/zpool-config/zpool-raid0.sh index aa78b71ed..518aec6b9 100644 --- a/scripts/zpool-config/zpool-raid0.sh +++ b/scripts/zpool-config/zpool-raid0.sh @@ -2,10 +2,9 @@ # # Zpool Raid-0 Configuration # -# This script is used to simplify testing with the /dev/disk/zpool/[A-Z][1-n] -# devices. It assumes that you have already populated /dev/disk/zpool/ by -# creating an /etc/zfs/zdev.conf file based on your system design. You may -# use the zpool_layout command or manually create your own config file. +# This script is used to test with the /dev/disk/by-vdev/[A-Z][1-n] devices. +# It assumes that you have already populated /dev/disk/by-vdev/ by creating +# an /etc/zfs/vdev_id.conf file based on your system design. # # You can then use either the zpool-create.sh or the zpios.sh test script to # test various Raid-0 configurations by adjusting the following tunables. diff --git a/scripts/zpool-config/zpool-raid10.sh b/scripts/zpool-config/zpool-raid10.sh index 8cb1f1548..b9c220f47 100644 --- a/scripts/zpool-config/zpool-raid10.sh +++ b/scripts/zpool-config/zpool-raid10.sh @@ -2,10 +2,9 @@ # # Zpool Raid-10 Configuration # -# This script is used to simplify testing with the /dev/disk/zpool/[A-Z][1-n] -# devices. It assumes that you have already populated /dev/disk/zpool/ by -# creating an /etc/zfs/zdev.conf file based on your system design. You may -# use the zpool_layout command or manually create your own config file. +# This script is used to test with the /dev/disk/by-vdev/[A-Z][1-n] devices. +# It assumes that you have already populated /dev/disk/by-vdev/ by creating +# an /etc/zfs/vdev_id.conf file based on your system design. # # You can then use either the zpool-create.sh or the zpios.sh test script to # test various Raid-10 configurations by adjusting the following tunables. diff --git a/scripts/zpool-config/zpool-raidz.sh b/scripts/zpool-config/zpool-raidz.sh index 4f022666f..027aec3d3 100644 --- a/scripts/zpool-config/zpool-raidz.sh +++ b/scripts/zpool-config/zpool-raidz.sh @@ -2,10 +2,9 @@ # # Zpool Raid-Z Configuration # -# This script is used to simplify testing with the /dev/disk/zpool/[A-Z][1-n] -# devices. It assumes that you have already populated /dev/disk/zpool/ by -# creating an /etc/zfs/zdev.conf file based on your system design. You may -# use the zpool_layout command or manually create your own config file. +# This script is used to test with the /dev/disk/by-vdev/[A-Z][1-n] devices. +# It assumes that you have already populated /dev/disk/by-vdev/ by creating +# an /etc/zfs/vdev_id.conf file based on your system design. # # You can then use either the zpool-create.sh or the zpios.sh test script to # test various Raid-Z configurations by adjusting the following tunables. diff --git a/scripts/zpool-layout/Makefile.am b/scripts/zpool-layout/Makefile.am deleted file mode 100644 index 3eef2412d..000000000 --- a/scripts/zpool-layout/Makefile.am +++ /dev/null @@ -1,22 +0,0 @@ -pkglibexecdir = $(libexecdir)/@PACKAGE@/zpool-layout -dist_pkglibexec_SCRIPTS = \ - $(top_srcdir)/scripts/zpool-layout/dragon.ddn.conf \ - $(top_srcdir)/scripts/zpool-layout/dragon.llnl.conf - -all: - @list='$(dist_pkglibexec_SCRIPTS)'; \ - for file in $$list; do \ - link=$$(basename $$file); \ - if [ ! -e $$link ]; then \ - $(LN_S) $$file $$link; \ - fi \ - done - -clean: - @list='$(dist_pkglibexec_SCRIPTS)'; \ - for file in $$list; do \ - link=$$(basename $$file); \ - if [ -L $$link ]; then \ - $(RM) $$link; \ - fi \ - done diff --git a/scripts/zpool-layout/dragon.ddn.conf b/scripts/zpool-layout/dragon.ddn.conf deleted file mode 100644 index c797b4dba..000000000 --- a/scripts/zpool-layout/dragon.ddn.conf +++ /dev/null @@ -1,67 +0,0 @@ -# -# Custom DDN slot mapping for zpool_layout command and -# StorageScaler 6000 enclosures (Dragon Drawer). -# -# Linux DDN -# Slot Slot -# -1 1 -2 13 -3 25 -4 37 -5 49 -6 2 -7 14 -8 26 -9 38 -10 50 -11 3 -12 15 -13 27 -14 39 -15 51 -16 4 -17 16 -18 28 -19 40 -20 52 -21 5 -22 17 -23 29 -24 41 -25 53 -26 6 -27 18 -28 30 -29 42 -30 54 -31 7 -32 19 -33 31 -34 43 -35 55 -36 8 -37 20 -38 32 -39 44 -40 56 -41 9 -42 21 -43 33 -44 45 -45 57 -46 10 -47 22 -48 34 -49 46 -50 58 -51 11 -52 23 -53 35 -54 47 -55 59 -56 12 -57 24 -58 36 -59 48 -60 60 diff --git a/scripts/zpool-layout/dragon.llnl.conf b/scripts/zpool-layout/dragon.llnl.conf deleted file mode 100644 index 0c684c784..000000000 --- a/scripts/zpool-layout/dragon.llnl.conf +++ /dev/null @@ -1,67 +0,0 @@ -# -# Custom LLNL slot mapping for zpool_layout command and -# StorageScaler 6000 enclosures (Dragon Drawer). -# -# Linux LLNL -# Slot Slot -# -1 25 -2 19 -3 13 -4 7 -5 1 -6 26 -7 20 -8 14 -9 8 -10 2 -11 27 -12 21 -13 15 -14 9 -15 3 -16 28 -17 22 -18 16 -19 10 -20 4 -21 29 -22 23 -23 17 -24 11 -25 5 -26 30 -27 24 -28 18 -29 12 -30 6 -31 60 -32 54 -33 48 -34 42 -35 36 -36 59 -37 53 -38 47 -39 41 -40 35 -41 58 -42 52 -43 46 -44 40 -45 34 -46 57 -47 51 -48 45 -49 39 -50 33 -51 56 -52 50 -53 44 -54 38 -55 32 -56 55 -57 49 -58 43 -59 37 -60 31 |