Changeset 2541 in MondoRescue for devel/mr/sbin/mrcheck-lvm
- Timestamp:
- Jan 9, 2010, 4:40:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/mr/sbin/mrcheck-lvm
r2540 r2541 25 25 =head1 NAME 26 26 27 mr analyze-lvm - A Mindi Tool to analyze the LVM configuration and store it27 mrcheck-lvm - A Mindi Tool to check the LVM basic info 28 28 29 29 =head1 DESCRIPTION 30 30 31 B<mr analyze-lvm> prints all the information related to the LVM configuration that may be used by a restoration process31 B<mrcheck-lvm> prints all the information related to the LVM configuration that may be used by a restoration process 32 32 33 33 =head1 SYNOPSIS 34 34 35 mr analyze-lvm [-v]|[-q]|[-h]|[--man][-o outputfile][-l logfile]35 mrcheck-lvm [-v]|[-q]|[-h]|[--man][-o outputfile][-l logfile] 36 36 37 37 =head1 OPTIONS … … 93 93 # Initialize the syntax string 94 94 95 pb_syntax_init("mr analyze-lvm Version PBVER-rPBREV\n");95 pb_syntax_init("mrcheck-lvm Version PBVER-rPBREV\n"); 96 96 97 97 # Handle options … … 128 128 my $MINDI_LIB = "PBLIB"; 129 129 my $MINDI_SBIN = "$MINDI_PREFIX/sbin"; 130 # 131 # Temp dir 132 # 133 pb_temp_init(); 130 131 # Init 132 mr_init(); 134 133 135 134 # -------------------------------- main ----------------------------------- … … 141 140 } 142 141 143 my $lvmver = mr_lvm_analyze($OUTPUT); 142 my ($lvmver,$lvmcmd) = mr_lvm_check($OUTPUT); 143 if (defined $opts{'o'}) { 144 close($OUTPUT); 145 } 144 146 145 147 if ($lvmver == 0) { 146 pb_log( 1,"No LVM handling")148 pb_log(0,"No LVM handling\n") 147 149 } else { 148 pb_log( 1,"LVM v$lvmver Structure Analyzed")150 pb_log(0,"LVM v$lvmver command is $lvmcmd\n") 149 151 } 150 close($OUTPUT);151 152 mr_exit(0,undef);
Note:
See TracChangeset
for help on using the changeset viewer.