summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 11:22:58 -0700
committerBrian Behlendorf <[email protected]>2010-08-31 13:41:27 -0700
commitc9c0d073da561bcbefbdf09c87fc75b227415619 (patch)
tree7daee55ae61526107f421de48171573fa5a15d28 /etc
parent40b84e7aec6392187722e61e5a4a853b530bf60f (diff)
Add build system
Add autoconf style build infrastructure to the ZFS tree. This includes autogen.sh, configure.ac, m4 macros, some scripts/*, and makefiles for all the core ZFS components.
Diffstat (limited to 'etc')
-rw-r--r--etc/Makefile.am3
-rw-r--r--etc/udev/rules.d/60-zpool.rules8
-rw-r--r--etc/zfs/zdev.conf9
-rw-r--r--etc/zfs/zdev.conf.dragon.example176
-rw-r--r--etc/zfs/zdev.conf.supermicro.example30
-rw-r--r--etc/zfs/zdev.conf.x4550.example66
6 files changed, 292 insertions, 0 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am
new file mode 100644
index 000000000..1bc847d1a
--- /dev/null
+++ b/etc/Makefile.am
@@ -0,0 +1,3 @@
+sysconfdir = /etc
+nobase_dist_sysconf_DATA = zfs/*
+nobase_dist_sysconf_DATA += udev/rules.d/*
diff --git a/etc/udev/rules.d/60-zpool.rules b/etc/udev/rules.d/60-zpool.rules
new file mode 100644
index 000000000..0f4a356dd
--- /dev/null
+++ b/etc/udev/rules.d/60-zpool.rules
@@ -0,0 +1,8 @@
+#
+# /etc/udev/rules.d/99-zpool.rules
+#
+
+ENV{DEVTYPE}=="disk", IMPORT{program}="/usr/bin/zpool_id -d %p"
+
+KERNEL=="*[!0-9]", ENV{SUBSYSTEM}=="block", ENV{ID_ZPOOL}=="?*", SYMLINK+="$env{ID_ZPOOL_PATH}"
+KERNEL=="*[0-9]", ENV{SUBSYSTEM}=="block", ENV{ID_ZPOOL}=="?*", SYMLINK+="$env{ID_ZPOOL_PATH}-part%n"
diff --git a/etc/zfs/zdev.conf b/etc/zfs/zdev.conf
new file mode 100644
index 000000000..236c342b3
--- /dev/null
+++ b/etc/zfs/zdev.conf
@@ -0,0 +1,9 @@
+#
+# Custom by-path mapping for large JBOD configurations
+#
+# Example Config: Desktop
+#
+
+#<ID> <by-path name>
+#disk1 pci-0000:61:06.1-scsi-0:0:0:0
+#disk2 pci-0000:61:06.1-scsi-0:0:0:1
diff --git a/etc/zfs/zdev.conf.dragon.example b/etc/zfs/zdev.conf.dragon.example
new file mode 100644
index 000000000..23ef7f09d
--- /dev/null
+++ b/etc/zfs/zdev.conf.dragon.example
@@ -0,0 +1,176 @@
+#
+# Custom by-path mapping for large JBOD configurations
+#
+# Example Config:
+# Quarter scale dragon drawer based SSU for RHEL6
+#
+
+# Channel A: PCI Bus 3, Enclosure 0x50001ff10e991000
+a1 pci-0000:03:00.0-sas-0x50001ff10e991000-34
+a2 pci-0000:03:00.0-sas-0x50001ff10e991000-35
+a3 pci-0000:03:00.0-sas-0x50001ff10e991000-39
+a4 pci-0000:03:00.0-sas-0x50001ff10e991000-40
+a5 pci-0000:03:00.0-sas-0x50001ff10e991000-44
+a6 pci-0000:03:00.0-sas-0x50001ff10e991000-45
+a7 pci-0000:03:00.0-sas-0x50001ff10e991000-48
+a8 pci-0000:03:00.0-sas-0x50001ff10e991000-49
+a9 pci-0000:03:00.0-sas-0x50001ff10e991000-50
+a10 pci-0000:03:00.0-sas-0x50001ff10e991000-53
+a11 pci-0000:03:00.0-sas-0x50001ff10e991000-54
+a12 pci-0000:03:00.0-sas-0x50001ff10e991000-55
+a13 pci-0000:03:00.0-sas-0x50001ff10e991000-58
+a14 pci-0000:03:00.0-sas-0x50001ff10e991000-59
+a15 pci-0000:03:00.0-sas-0x50001ff10e991000-60
+
+# Channel B: PCI Bus 3, Enclosure 0x50001ff10e9d1000
+b1 pci-0000:03:00.0-sas-0x50001ff10e9d1000-34
+b2 pci-0000:03:00.0-sas-0x50001ff10e9d1000-35
+b3 pci-0000:03:00.0-sas-0x50001ff10e9d1000-39
+b4 pci-0000:03:00.0-sas-0x50001ff10e9d1000-40
+b5 pci-0000:03:00.0-sas-0x50001ff10e9d1000-44
+b6 pci-0000:03:00.0-sas-0x50001ff10e9d1000-45
+b7 pci-0000:03:00.0-sas-0x50001ff10e9d1000-48
+b8 pci-0000:03:00.0-sas-0x50001ff10e9d1000-49
+b9 pci-0000:03:00.0-sas-0x50001ff10e9d1000-50
+b10 pci-0000:03:00.0-sas-0x50001ff10e9d1000-53
+b11 pci-0000:03:00.0-sas-0x50001ff10e9d1000-54
+b12 pci-0000:03:00.0-sas-0x50001ff10e9d1000-55
+b13 pci-0000:03:00.0-sas-0x50001ff10e9d1000-58
+b14 pci-0000:03:00.0-sas-0x50001ff10e9d1000-59
+b15 pci-0000:03:00.0-sas-0x50001ff10e9d1000-60
+
+# Channel C: PCI Bus 4, Enclosure 0x50001ff10e991000
+c1 pci-0000:04:00.0-sas-0x50001ff10e991000-31
+c2 pci-0000:04:00.0-sas-0x50001ff10e991000-32
+c3 pci-0000:04:00.0-sas-0x50001ff10e991000-33
+c4 pci-0000:04:00.0-sas-0x50001ff10e991000-36
+c5 pci-0000:04:00.0-sas-0x50001ff10e991000-37
+c6 pci-0000:04:00.0-sas-0x50001ff10e991000-38
+c7 pci-0000:04:00.0-sas-0x50001ff10e991000-41
+c8 pci-0000:04:00.0-sas-0x50001ff10e991000-42
+c9 pci-0000:04:00.0-sas-0x50001ff10e991000-43
+c10 pci-0000:04:00.0-sas-0x50001ff10e991000-46
+c11 pci-0000:04:00.0-sas-0x50001ff10e991000-47
+c12 pci-0000:04:00.0-sas-0x50001ff10e991000-51
+c13 pci-0000:04:00.0-sas-0x50001ff10e991000-52
+c14 pci-0000:04:00.0-sas-0x50001ff10e991000-56
+c15 pci-0000:04:00.0-sas-0x50001ff10e991000-57
+
+# Channel D: PCI Bus 4, Enclosure 0x50001ff10e9d1000
+d1 pci-0000:04:00.0-sas-0x50001ff10e9d1000-31
+d2 pci-0000:04:00.0-sas-0x50001ff10e9d1000-32
+d3 pci-0000:04:00.0-sas-0x50001ff10e9d1000-33
+d4 pci-0000:04:00.0-sas-0x50001ff10e9d1000-36
+d5 pci-0000:04:00.0-sas-0x50001ff10e9d1000-37
+d6 pci-0000:04:00.0-sas-0x50001ff10e9d1000-38
+d7 pci-0000:04:00.0-sas-0x50001ff10e9d1000-41
+d8 pci-0000:04:00.0-sas-0x50001ff10e9d1000-42
+d9 pci-0000:04:00.0-sas-0x50001ff10e9d1000-43
+d10 pci-0000:04:00.0-sas-0x50001ff10e9d1000-46
+d11 pci-0000:04:00.0-sas-0x50001ff10e9d1000-47
+d12 pci-0000:04:00.0-sas-0x50001ff10e9d1000-51
+d13 pci-0000:04:00.0-sas-0x50001ff10e9d1000-52
+d14 pci-0000:04:00.0-sas-0x50001ff10e9d1000-56
+d15 pci-0000:04:00.0-sas-0x50001ff10e9d1000-57
+
+# Channel E: PCI Bus 84, Enclosure 0x50001ff10e991000
+e1 pci-0000:84:00.0-sas-0x50001ff10e991000-3
+e2 pci-0000:84:00.0-sas-0x50001ff10e991000-4
+e3 pci-0000:84:00.0-sas-0x50001ff10e991000-5
+e4 pci-0000:84:00.0-sas-0x50001ff10e991000-8
+e5 pci-0000:84:00.0-sas-0x50001ff10e991000-9
+e6 pci-0000:84:00.0-sas-0x50001ff10e991000-10
+e7 pci-0000:84:00.0-sas-0x50001ff10e991000-13
+e8 pci-0000:84:00.0-sas-0x50001ff10e991000-14
+e9 pci-0000:84:00.0-sas-0x50001ff10e991000-15
+e10 pci-0000:84:00.0-sas-0x50001ff10e991000-19
+e11 pci-0000:84:00.0-sas-0x50001ff10e991000-20
+e12 pci-0000:84:00.0-sas-0x50001ff10e991000-24
+e13 pci-0000:84:00.0-sas-0x50001ff10e991000-25
+e14 pci-0000:84:00.0-sas-0x50001ff10e991000-29
+e15 pci-0000:84:00.0-sas-0x50001ff10e991000-30
+
+# Channel F: PCI Bus 84, Enclosure 0x50001ff10e9d1000
+f1 pci-0000:84:00.0-sas-0x50001ff10e9d1000-3
+f2 pci-0000:84:00.0-sas-0x50001ff10e9d1000-4
+f3 pci-0000:84:00.0-sas-0x50001ff10e9d1000-5
+f4 pci-0000:84:00.0-sas-0x50001ff10e9d1000-8
+f5 pci-0000:84:00.0-sas-0x50001ff10e9d1000-9
+f6 pci-0000:84:00.0-sas-0x50001ff10e9d1000-10
+f7 pci-0000:84:00.0-sas-0x50001ff10e9d1000-13
+f8 pci-0000:84:00.0-sas-0x50001ff10e9d1000-14
+f9 pci-0000:84:00.0-sas-0x50001ff10e9d1000-15
+f10 pci-0000:84:00.0-sas-0x50001ff10e9d1000-19
+f11 pci-0000:84:00.0-sas-0x50001ff10e9d1000-20
+f12 pci-0000:84:00.0-sas-0x50001ff10e9d1000-24
+f13 pci-0000:84:00.0-sas-0x50001ff10e9d1000-25
+f14 pci-0000:84:00.0-sas-0x50001ff10e9d1000-29
+f15 pci-0000:84:00.0-sas-0x50001ff10e9d1000-30
+
+# Channel G: PCI Bus 85, Enclosure 0x50001ff10e991000
+g1 pci-0000:85:00.0-sas-0x50001ff10e991000-1
+g2 pci-0000:85:00.0-sas-0x50001ff10e991000-2
+g3 pci-0000:85:00.0-sas-0x50001ff10e991000-6
+g4 pci-0000:85:00.0-sas-0x50001ff10e991000-7
+g5 pci-0000:85:00.0-sas-0x50001ff10e991000-11
+g6 pci-0000:85:00.0-sas-0x50001ff10e991000-12
+g7 pci-0000:85:00.0-sas-0x50001ff10e991000-16
+g8 pci-0000:85:00.0-sas-0x50001ff10e991000-17
+g9 pci-0000:85:00.0-sas-0x50001ff10e991000-18
+g10 pci-0000:85:00.0-sas-0x50001ff10e991000-21
+g11 pci-0000:85:00.0-sas-0x50001ff10e991000-22
+g12 pci-0000:85:00.0-sas-0x50001ff10e991000-23
+g13 pci-0000:85:00.0-sas-0x50001ff10e991000-26
+g14 pci-0000:85:00.0-sas-0x50001ff10e991000-27
+g15 pci-0000:85:00.0-sas-0x50001ff10e991000-28
+
+# Channel H: PCI Bus 85, Enclosure 0x50001ff10e9d1000
+h1 pci-0000:85:00.0-sas-0x50001ff10e9d1000-1
+h2 pci-0000:85:00.0-sas-0x50001ff10e9d1000-2
+h3 pci-0000:85:00.0-sas-0x50001ff10e9d1000-6
+h4 pci-0000:85:00.0-sas-0x50001ff10e9d1000-7
+h5 pci-0000:85:00.0-sas-0x50001ff10e9d1000-11
+h6 pci-0000:85:00.0-sas-0x50001ff10e9d1000-12
+h7 pci-0000:85:00.0-sas-0x50001ff10e9d1000-16
+h8 pci-0000:85:00.0-sas-0x50001ff10e9d1000-17
+h9 pci-0000:85:00.0-sas-0x50001ff10e9d1000-18
+h10 pci-0000:85:00.0-sas-0x50001ff10e9d1000-21
+h11 pci-0000:85:00.0-sas-0x50001ff10e9d1000-22
+h12 pci-0000:85:00.0-sas-0x50001ff10e9d1000-23
+h13 pci-0000:85:00.0-sas-0x50001ff10e9d1000-26
+h14 pci-0000:85:00.0-sas-0x50001ff10e9d1000-27
+h15 pci-0000:85:00.0-sas-0x50001ff10e9d1000-28
+
+# Channel I: PCI Bus 83, Enclosure 0x5000155359b8e33f
+i1 pci-0000:83:00.0-sas-0x5000155359b8e33f-0
+i2 pci-0000:83:00.0-sas-0x5000155359b8e33f-1
+i3 pci-0000:83:00.0-sas-0x5000155359b8e33f-2
+i4 pci-0000:83:00.0-sas-0x5000155359b8e33f-3
+i5 pci-0000:83:00.0-sas-0x5000155359b8e33f-4
+i6 pci-0000:83:00.0-sas-0x5000155359b8e33f-5
+i7 pci-0000:83:00.0-sas-0x5000155359b8e33f-6
+i8 pci-0000:83:00.0-sas-0x5000155359b8e33f-7
+i9 pci-0000:83:00.0-sas-0x5000155359b8e33f-8
+i10 pci-0000:83:00.0-sas-0x5000155359b8e33f-9
+i11 pci-0000:83:00.0-sas-0x5000155359b8e33f-10
+i12 pci-0000:83:00.0-sas-0x5000155359b8e33f-11
+i13 pci-0000:83:00.0-sas-0x5000155359b8e33f-12
+i14 pci-0000:83:00.0-sas-0x5000155359b8e33f-13
+i15 pci-0000:83:00.0-sas-0x5000155359b8e33f-14
+
+# Channel J: PCI Bus 83, Enclosure 0x5000155359dba33f
+j1 pci-0000:83:00.0-sas-0x5000155359dba33f-0
+j2 pci-0000:83:00.0-sas-0x5000155359dba33f-1
+j3 pci-0000:83:00.0-sas-0x5000155359dba33f-2
+j4 pci-0000:83:00.0-sas-0x5000155359dba33f-3
+j5 pci-0000:83:00.0-sas-0x5000155359dba33f-4
+j6 pci-0000:83:00.0-sas-0x5000155359dba33f-5
+j7 pci-0000:83:00.0-sas-0x5000155359dba33f-6
+j8 pci-0000:83:00.0-sas-0x5000155359dba33f-7
+j9 pci-0000:83:00.0-sas-0x5000155359dba33f-8
+j10 pci-0000:83:00.0-sas-0x5000155359dba33f-9
+j11 pci-0000:83:00.0-sas-0x5000155359dba33f-10
+j12 pci-0000:83:00.0-sas-0x5000155359dba33f-11
+j13 pci-0000:83:00.0-sas-0x5000155359dba33f-12
+j14 pci-0000:83:00.0-sas-0x5000155359dba33f-13
+j15 pci-0000:83:00.0-sas-0x5000155359dba33f-14
diff --git a/etc/zfs/zdev.conf.supermicro.example b/etc/zfs/zdev.conf.supermicro.example
new file mode 100644
index 000000000..f20dcc081
--- /dev/null
+++ b/etc/zfs/zdev.conf.supermicro.example
@@ -0,0 +1,30 @@
+#
+# Custom by-path mapping for large JBOD configurations
+#
+# Example Config:
+# Single Supermicro JBOD for RHEL6
+#
+
+# Channel A: PCI Bus 7, Enclosure 0x500304800027367f
+a1 pci-0000:07:00.0-sas-0x500304800027367f-0
+a2 pci-0000:07:00.0-sas-0x500304800027367f-1
+a3 pci-0000:07:00.0-sas-0x500304800027367f-2
+a4 pci-0000:07:00.0-sas-0x500304800027367f-3
+
+# Channel B: PCI Bus 7, Enclosure 0x500304800027367f
+b1 pci-0000:07:00.0-sas-0x500304800027367f-4
+b2 pci-0000:07:00.0-sas-0x500304800027367f-5
+b3 pci-0000:07:00.0-sas-0x500304800027367f-6
+b4 pci-0000:07:00.0-sas-0x500304800027367f-7
+
+# Channel C: PCI Bus 7, Enclosure 0x500304800027367f
+c1 pci-0000:07:00.0-sas-0x500304800027367f-8
+c2 pci-0000:07:00.0-sas-0x500304800027367f-9
+c3 pci-0000:07:00.0-sas-0x500304800027367f-10
+c4 pci-0000:07:00.0-sas-0x500304800027367f-11
+
+# Channel D: PCI Bus 7, Enclosure 0x500304800027367f
+d1 pci-0000:07:00.0-sas-0x500304800027367f-12
+d2 pci-0000:07:00.0-sas-0x500304800027367f-13
+d3 pci-0000:07:00.0-sas-0x500304800027367f-14
+d4 pci-0000:07:00.0-sas-0x500304800027367f-15
diff --git a/etc/zfs/zdev.conf.x4550.example b/etc/zfs/zdev.conf.x4550.example
new file mode 100644
index 000000000..9c611ed45
--- /dev/null
+++ b/etc/zfs/zdev.conf.x4550.example
@@ -0,0 +1,66 @@
+#
+# Custom by-path mapping for large JBOD configurations
+#
+# Example Config:
+# Sun x4550 for RHEL5
+#
+
+# Channel A: PCI Bus 2
+a1 pci-0000:02:00.0-sas-0x50062b0000000001:1:0-0xd6807184d601e192:0
+a2 pci-0000:02:00.0-sas-0x50062b0000000002:1:1-0xd4905378e6e3d592:1
+a3 pci-0000:02:00.0-sas-0x50062b0000000003:1:2-0xd3827673d806d392:2
+a4 pci-0000:02:00.0-sas-0x50062b0000000004:1:3-0xd6805385d6e3e192:3
+a5 pci-0000:02:00.0-sas-0x50062b0000000005:1:4-0xd680655bd6f5b792:4
+a6 pci-0000:02:00.0-sas-0x50062b0000000006:1:5-0x7a967598ec06d091:5
+a7 pci-0000:02:00.0-sas-0x50062b0000000007:1:6-0xd3826c60d8fcbf92:6
+a8 pci-0000:02:00.0-sas-0x50062b0000000008:1:7-0xd6805271d6e2cd92:7
+
+# Channel B: PCI Bus 3
+b1 pci-0000:03:00.0-sas-0x50062b0000000002:1:0-0xd680685fd6f8bb92:0
+b2 pci-0000:03:00.0-sas-0x50062b0000000003:1:1-0xd58c706de200cb92:1
+b3 pci-0000:03:00.0-sas-0x50062b0000000004:1:2-0xd5897480df04de92:2
+b4 pci-0000:03:00.0-sas-0x50062b0000000005:1:3-0xd6805764d6e7c092:3
+b5 pci-0000:03:00.0-sas-0x50062b0000000006:1:4-0xd6806a6dd6fac992:4
+b6 pci-0000:03:00.0-sas-0x50062b0000000007:1:5-0xd58c6b84e2fbe192:5
+b7 pci-0000:03:00.0-sas-0x50062b0000000008:1:6-0xd58a576ee0e7cb92:6
+b8 pci-0000:03:00.0-sas-0x50062b0000000009:1:7-0xd5877871dd08cf92:7
+
+# Channel C: PCI Bus 4
+c1 pci-0000:04:00.0-sas-0x50062b0000000003:1:0-0xd6806678d6f6d492:0
+c2 pci-0000:04:00.0-sas-0x50062b0000000004:1:1-0xd680696fd6f9cb92:1
+c3 pci-0000:04:00.0-sas-0x50062b0000000005:1:2-0xd3827182d801e292:2
+c4 pci-0000:04:00.0-sas-0x50062b0000000006:1:3-0xd680666fd6f6cb92:3
+c5 pci-0000:04:00.0-sas-0x50062b0000000007:1:4-0xd6806970d6f9cc92:4
+c6 pci-0000:04:00.0-sas-0x50062b0000000008:1:5-0xd6806b62d6fbbe92:5
+c7 pci-0000:04:00.0-sas-0x50062b0000000009:1:6-0xd58a5760e0e7bd92:6
+c8 pci-0000:04:00.0-sas-0x50062b000000000a:1:7-0xd680717fd601dc92:7
+
+# Channel D: PCI Bus 41
+d1 pci-0000:41:00.0-sas-0x50062b0000000004:1:0-0xd6806572d6f5ce92:0
+d2 pci-0000:41:00.0-sas-0x50062b0000000005:1:1-0xd6806983d6f9df92:1
+d3 pci-0000:41:00.0-sas-0x50062b0000000006:1:2-0xd3826c69d8fcc892:2
+d4 pci-0000:41:00.0-sas-0x50062b0000000007:1:3-0xd680725fd602bc92:3
+d5 pci-0000:41:00.0-sas-0x50062b0000000008:1:4-0xd6806971d6f9cd92:4
+d6 pci-0000:41:00.0-sas-0x50062b0000000009:1:5-0xd680726dd602ca92:5
+d7 pci-0000:41:00.0-sas-0x50062b000000000a:1:6-0xd3827772d807d292:6
+d8 pci-0000:41:00.0-sas-0x50062b000000000b:1:7-0xd4955584ebe5e192:7
+
+# Channel E: PCI Bus 42
+e1 pci-0000:42:00.0-sas-0x50062b0000000005:1:0-0xd4925676e8e6d392:0
+e2 pci-0000:42:00.0-sas-0x50062b0000000006:1:1-0xd6806b6ed6fbca92:1
+e3 pci-0000:42:00.0-sas-0x50062b0000000007:1:2-0xd382765fd806bf92:2
+e4 pci-0000:42:00.0-sas-0x50062b0000000008:1:3-0xd587786cdd08ca92:3
+e5 pci-0000:42:00.0-sas-0x50062b0000000009:1:4-0xd66f4e5bc5deb792:4
+e6 pci-0000:42:00.0-sas-0x50062b000000000a:1:5-0xd6806879d6f8d592:5
+e7 pci-0000:42:00.0-sas-0x50062b000000000b:1:6-0xd5885175dee1d292:6
+e8 pci-0000:42:00.0-sas-0x50062b000000000c:1:7-0xd588515fdee1bc92:7
+
+# Channel F: PCI Bus 43
+f1 pci-0000:43:00.0-sas-0x50062b0000000006:1:0-0xd66d6978c3f9d492:0
+f2 pci-0000:43:00.0-sas-0x50062b0000000007:1:1-0xd6806a5cd6fab892:1
+f3 pci-0000:43:00.0-sas-0x50062b0000000008:1:2-0xd6806563d6f5bf92:2
+f4 pci-0000:43:00.0-sas-0x50062b0000000009:1:3-0xd6805664d6e6c092:3
+f5 pci-0000:43:00.0-sas-0x50062b000000000a:1:4-0xd58c707ee200dc92:4
+f6 pci-0000:43:00.0-sas-0x50062b000000000b:1:5-0xd5885781dee7de92:5
+f7 pci-0000:43:00.0-sas-0x50062b000000000c:1:6-0xd3827481d804e192:6
+f8 pci-0000:43:00.0-sas-0x50062b000000000d:1:7-0xd6806863d6f8bf92:7