Module Name: src
Committed By: agc
Date: Sun Jun 21 21:23:46 UTC 2009
Added Files:
src/external/bsd/iscsi/dist/src/examples: 1.conf 2.conf 3.conf 4.conf
Log Message:
Add example configuration files
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/iscsi/dist/src/examples/1.conf \
src/external/bsd/iscsi/dist/src/examples/2.conf \
src/external/bsd/iscsi/dist/src/examples/3.conf \
src/external/bsd/iscsi/dist/src/examples/4.conf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: src/external/bsd/iscsi/dist/src/examples/1.conf
diff -u /dev/null src/external/bsd/iscsi/dist/src/examples/1.conf:1.1
--- /dev/null Sun Jun 21 21:23:46 2009
+++ src/external/bsd/iscsi/dist/src/examples/1.conf Sun Jun 21 21:23:46 2009
@@ -0,0 +1,20 @@
+# Simple file showing 1 extent, device and target
+
+# extent
+# name storage offset (in bytes) size
+extent0 /tmp/iscsi-target0 0 100MB
+
+# devices
+# name resilience devices/extents
+device0 RAID0 extent0
+
+# targets
+# name device netmask
+target0 device0 10.4.0.0/16
+
+
+
+# NB, in the above, the intermediate device definition is not necessary.
+# It could have been simply:
+extent1 /tmp/iscsi-target1 0 100MB
+target1 extent1 10.4.0.0/16
Index: src/external/bsd/iscsi/dist/src/examples/2.conf
diff -u /dev/null src/external/bsd/iscsi/dist/src/examples/2.conf:1.1
--- /dev/null Sun Jun 21 21:23:46 2009
+++ src/external/bsd/iscsi/dist/src/examples/2.conf Sun Jun 21 21:23:46 2009
@@ -0,0 +1,19 @@
+# Complex file showing 3-way RAID1 (with RAID1 components),
+# also using local and (NFS) remote components
+
+# extents
+extent0 /iscsi/extents/0 0 100MB
+extent1 /imports/remote1/iscsi/extents/0 0 100MB
+extent2 /iscsi/extents/1 0 100MB
+extent3 /imports/remote1/iscsi/extents/1 0 100MB
+extent4 /iscsi/extents/2 0 100MB
+extent5 /imports/remote1/iscsi/extents/2 0 100MB
+
+# devices
+device0 RAID1 extent0 extent1
+device1 RAID1 extent2 extent3
+device2 RAID1 extent4 extent5
+device3 RAID1 device0 device1 device2
+
+# targets
+target0 device3 10.4.0.0/16
Index: src/external/bsd/iscsi/dist/src/examples/3.conf
diff -u /dev/null src/external/bsd/iscsi/dist/src/examples/3.conf:1.1
--- /dev/null Sun Jun 21 21:23:46 2009
+++ src/external/bsd/iscsi/dist/src/examples/3.conf Sun Jun 21 21:23:46 2009
@@ -0,0 +1,22 @@
+# Complex file showing 3-way RAID1 (with RAID1 components),
+# also using local and (NFS) remote components
+
+# extents
+extent0 /iscsi/extents/0 0 100MB
+extent1 /imports/remote1/iscsi/extents/0 0 100MB
+extent2 /iscsi/extents/1 0 100MB
+extent3 /imports/remote1/iscsi/extents/1 0 100MB
+extent4 /iscsi/extents/2 0 100MB
+extent5 /imports/remote1/iscsi/extents/2 0 100MB
+extent6 /iscsi/extents/3 0 100MB
+
+# devices
+device0 RAID1 extent0 extent1
+device1 RAID1 extent2 extent3
+device2 RAID1 extent4 extent5
+device3 RAID1 device0 device1 device2
+device4 RAID0 extent6
+
+# targets
+target0 device3 10.4.0.0/16
+target1 device4 127.0.0.0/8
Index: src/external/bsd/iscsi/dist/src/examples/4.conf
diff -u /dev/null src/external/bsd/iscsi/dist/src/examples/4.conf:1.1
--- /dev/null Sun Jun 21 21:23:46 2009
+++ src/external/bsd/iscsi/dist/src/examples/4.conf Sun Jun 21 21:23:46 2009
@@ -0,0 +1,23 @@
+# Complex file showing 3-way RAID1 (with RAID1 components),
+# also using local and (NFS) remote components
+
+# extents
+extent0 /iscsi/extents/0 0 100MB
+extent1 /imports/remote1/iscsi/extents/0 0 100MB
+extent2 /iscsi/extents/1 0 100MB
+extent3 /imports/remote1/iscsi/extents/1 0 100MB
+extent4 /iscsi/extents/2 0 100MB
+extent5 /imports/remote1/iscsi/extents/2 0 100MB
+extent6 /iscsi/extents/3 0 100GB
+
+# devices
+device0 RAID1 extent0 extent1
+device1 RAID1 extent2 extent3
+device2 RAID1 extent4 extent5
+device3 RAID1 device0 device1 device2
+
+# targets
+target0 device3 10.4.0.0/16
+
+# a target can be made from just an extent
+target1 extent6 127.0.0.0/8