Changeset 2541 in MondoRescue for devel/mr/sbin/mrcheck-lvm


Ignore:
Timestamp:
Jan 9, 2010, 4:40:56 PM (14 years ago)
Author:
Bruno Cornec
Message:

r3577@localhost: bruno | 2010-01-08 02:23:52 +0100
The 2 first commands check and analyze begin to work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/mr/sbin/mrcheck-lvm

    r2540 r2541  
    2525=head1 NAME
    2626
    27 mranalyze-lvm - A Mindi Tool to analyze the LVM configuration and store it
     27mrcheck-lvm - A Mindi Tool to check the LVM basic info
    2828
    2929=head1 DESCRIPTION
    3030
    31 B<mranalyze-lvm> prints all the information related to the LVM configuration that may be used by a restoration process
     31B<mrcheck-lvm> prints all the information related to the LVM configuration that may be used by a restoration process
    3232
    3333=head1 SYNOPSIS
    3434
    35 mranalyze-lvm [-v]|[-q]|[-h]|[--man][-o outputfile][-l logfile]
     35mrcheck-lvm [-v]|[-q]|[-h]|[--man][-o outputfile][-l logfile]
    3636
    3737=head1 OPTIONS
     
    9393# Initialize the syntax string
    9494
    95 pb_syntax_init("mranalyze-lvm Version PBVER-rPBREV\n");
     95pb_syntax_init("mrcheck-lvm Version PBVER-rPBREV\n");
    9696
    9797# Handle options
     
    128128my $MINDI_LIB = "PBLIB";
    129129my $MINDI_SBIN = "$MINDI_PREFIX/sbin";
    130 #
    131 # Temp dir
    132 #
    133 pb_temp_init();
     130
     131# Init
     132mr_init();
    134133
    135134# -------------------------------- main -----------------------------------
     
    141140}
    142141
    143 my $lvmver = mr_lvm_analyze($OUTPUT);
     142my ($lvmver,$lvmcmd) = mr_lvm_check($OUTPUT);
     143if (defined $opts{'o'}) {
     144    close($OUTPUT);
     145}
    144146
    145147if ($lvmver == 0) {
    146     pb_log(1,"No LVM handling")
     148    pb_log(0,"No LVM handling\n")
    147149} else {
    148     pb_log(1,"LVM v$lvmver Structure Analyzed")
     150    pb_log(0,"LVM v$lvmver command is $lvmcmd\n")
    149151}
    150 close($OUTPUT);
    151152mr_exit(0,undef);
Note: See TracChangeset for help on using the changeset viewer.