diff options
| author | Simeon Simeonov | 2017-09-15 13:25:46 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2017-09-15 13:25:46 +0200 |
| commit | f94c7dc1f3deb93f8efd3a02084ad17bad069280 (patch) | |
| tree | 6294e6d39fc07fe3a76a782609b4011e805051f9 /cumount.py | |
| parent | 8ef2a7f12227a6d3365ac77040d14becba6ddd83 (diff) | |
Use vgexport / vgimport instead of vgchange -a ...
Diffstat (limited to 'cumount.py')
| -rwxr-xr-x | cumount.py | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -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(): |
