summaryrefslogtreecommitdiffstats
path: root/base/lvm2/lvmnodes
blob: 28ef517320acd60a760ca325e4fc6527030cce91 (plain)
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
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/lvmnodes
#
# Description : mknodes lvm
#
# Authors     : guy_
#
# Version     : 00.00
#
# Notes       :
#########################################################################

. /etc/sysconfig/rc
. ${rc_functions}

boot_mesg "Mapping lvm drives..."
case "${1}" in
	start)
		if [ -f /sbin/lvm ]; then
			/sbin/lvm vgscan --ignorelockingfailure --mknodes
			evaluate_retval
			error_value=${?}
			if [ "${error_value}" = 0 ]; then
				echo_ok
				exit 0
			else
				echo_failure
				exit ${error_value}
			fi
		fi
		;;
	*)
		echo "Usage: ${0} {start}"
		exit 1
		;;
esac

# End $rc_base/init.d/lvmnodes