summaryrefslogtreecommitdiffstats
path: root/lvm2/lvmnodes
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:12:28 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:12:28 +0100
commit9291e062cb24bac5d7c7059d4dc64669c1917b33 (patch)
treeae6f7e4fb2769d6c53b214c5e0b4d862f1df98dc /lvm2/lvmnodes
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.gz
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.bz2
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.xz
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.zip
aaabasicfs 2011-3 et split des dépot base et extra en 2 git séparé
Diffstat (limited to 'lvm2/lvmnodes')
-rwxr-xr-xlvm2/lvmnodes39
1 files changed, 39 insertions, 0 deletions
diff --git a/lvm2/lvmnodes b/lvm2/lvmnodes
new file mode 100755
index 000000000..28ef51732
--- /dev/null
+++ b/lvm2/lvmnodes
@@ -0,0 +1,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