summaryrefslogtreecommitdiff
path: root/cumount.py
diff options
context:
space:
mode:
authorSimeon Simeonov2017-09-15 13:25:46 +0200
committerSimeon Simeonov2017-09-15 13:25:46 +0200
commitf94c7dc1f3deb93f8efd3a02084ad17bad069280 (patch)
tree6294e6d39fc07fe3a76a782609b4011e805051f9 /cumount.py
parent8ef2a7f12227a6d3365ac77040d14becba6ddd83 (diff)
Use vgexport / vgimport instead of vgchange -a ...
Diffstat (limited to 'cumount.py')
-rwxr-xr-xcumount.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/cumount.py b/cumount.py
index e74bc00..565c3fb 100755
--- a/cumount.py
+++ b/cumount.py
@@ -32,9 +32,8 @@ def main():
32 '-a', 32 '-a',
33 'n', 33 'n',
34 data['device']]) 34 data['device']])
35 subprocess.check_call(['/sbin/vgchange', 35 cstm_error = 'vgexport error'
36 '-a', 36 subprocess.check_call(['/sbin/vgexport',
37 'n',
38 data['device'].split('/')[2]]) 37 data['device'].split('/')[2]])
39 cstm_error = 'pv_sources error' 38 cstm_error = 'pv_sources error'
40 for mapper_name in data['pv_sources'].values(): 39 for mapper_name in data['pv_sources'].values():