master - vgimportclone: cleanup the script and remove dependency on awk, grep, cut and tr
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1f30ba6178df6c3faac06328f17158f549b9d4f7 Commit: 1f30ba6178df6c3faac06328f17158f549b9d4f7 Parent: 8733a8d89040820f66a99d4d4e8f524ab2497983 Author: Peter Rajnoha <[email protected]> AuthorDate: Fri Oct 9 16:26:27 2015 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Fri Oct 9 16:31:02 2015 +0200
vgimportclone: cleanup the script and remove dependency on awk, grep, cut and tr
We can replace the expressions with awk/grep/cut/tr with --select now and more suitable reporting options and modes. Also, we don't need to check the temporary lvm.conf generated within vgimportclone script since we're generating it ourselves now using lvmconfig, not using sed anymore like it was before (so we can be pretty sure it's correct - we use lvmconfig now even for generating the lvm.conf itself).
--- WHATS_NEW | 1 + scripts/vgimportclone.sh | 87 +++++++++++++-------------------------------- 2 files changed, 26 insertions(+), 62 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.133 - ====================================== + Cleanup vgimportclone script and remove dependency on awk, grep, cut and tr. Add vg_missing_pv_count report field to report number of missing PVs in a VG. Properly identify internal LV holding sanlock locks within lv_role field. Add metadata_devices and seg_metadata_le_ranges report fields for raid vols.
scripts/vgimportclone.sh +25 -62
125 lines not on this page · raw message