File: README

package info (click to toggle)
evms 2.5.2-1.sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 14,248 kB
  • ctags: 15,488
  • sloc: ansic: 201,340; perl: 12,421; sh: 4,262; makefile: 1,516; yacc: 316; sed: 16
file content (42 lines) | stat: -rw-r--r-- 969 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Building the multipath test driver module:

For a 2.6 kernel:

	cd /usr/src/linux-2.6.0/
	cp /usr/src/evms-2.2.1/tests/mpdev/2.6/*.[ch] drivers/block/
	patch -p1 < /usr/src/evms-2.2.1/tests/mpdev/2.6/Makefile.patch
	make
	make modules_install

For a 2.4 kernel:

	cd /usr/src/linux-2.4.24/
	cp /usr/src/evms-2.2.1/tests/mpdev/2.4/*.[ch] drivers/block/
	patch -p1 < /usr/src/evms-2.2.1/tests/mpdev/2.4/Makefile.patch
	make dep
	make modules
	make modules_install


General stuff:

mpdev is a RAM-disk block device...

	mknod /dev/mpa b 252 0
	mknod /dev/mpb b 252 1
	mknod /dev/mpc b 252 2 

	modprobe mpdev

	module paramaters:
		major: desired major number for the driver. Default = 252
		paths: number of multipaths to activate. Default = 16.
		size: size in kB of the ram-disk. Default = 1024.

Edit /etc/evms.conf ... change legacy section ... include {mpa mpb mpc hd? ...}

How to fail and recover a device ...
            
	mp fail /dev/mpa
	mp recover /dev/mpa