From f94c7dc1f3deb93f8efd3a02084ad17bad069280 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Fri, 15 Sep 2017 13:25:46 +0200 Subject: Use vgexport / vgimport instead of vgchange -a ... --- cumount.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cumount.py') diff --git a/cumount.py b/cumount.py index e74bc00..565c3fb 100755 --- a/cumount.py +++ b/cumount.py @@ -32,9 +32,8 @@ def main(): '-a', 'n', data['device']]) - subprocess.check_call(['/sbin/vgchange', - '-a', - 'n', + cstm_error = 'vgexport error' + subprocess.check_call(['/sbin/vgexport', data['device'].split('/')[2]]) cstm_error = 'pv_sources error' for mapper_name in data['pv_sources'].values(): -- cgit v1.3