| 1 |
#! /usr/bin/perl
|
| 2 |
|
| 3 |
use strict;
|
| 4 |
use warnings;
|
| 5 |
use Faitest;
|
| 6 |
package FAITEST;
|
| 7 |
|
| 8 |
setup_test();
|
| 9 |
# - - - - - - - - - - - - - - - - - - - - - - - - - -
|
| 10 |
# now comes the test itself
|
| 11 |
|
| 12 |
&checkE2fsAttribute("/dev/mapper/volg1-es","Filesystem features","has_journal needs_recovery");
|
| 13 |
&checkE2fsAttribute("/dev/mapper/volg1-hl","Filesystem features","has_journal resize_inode dir_index filetype needs_recovery sparse_super large_file");
|
| 14 |
&checkE2fsAttribute("/dev/mapper/volg1-v","Filesystem features","has_journal filetype needs_recovery sparse_super");
|
| 15 |
&checkMdStat("md0","active raid1 sda5[1] sda7[0]");
|
| 16 |
&checkMdStat("md1","active raid1 sda8[1] sda6[0]");
|
| 17 |
|
| 18 |
exit printresult();
|
| 19 |
# - - - - - - - - - - - - - - - - - - - - - - - - - -
|
| 20 |
__END__
|
| 21 |
|
| 22 |
=head1 NAME
|
| 23 |
|
| 24 |
DSK_TEST_4 - regression test for setup-storage disk layout DSK_TEST_4
|
| 25 |
|
| 26 |
=head1 SYNOPSIS
|
| 27 |
|
| 28 |
DSK_TEST_4 checks some important aspects of setup-storage. The DSK_TEST_4 disk layout uses RAID and LVM for most partitions and
|
| 29 |
makes use of setup-storage ability to customize filesystem creation.
|
| 30 |
|
| 31 |
Options:
|
| 32 |
-help simple help
|
| 33 |
-verbose=n increase verbosity of test script
|
| 34 |
|
| 35 |
=head1 OPTIONS
|
| 36 |
|
| 37 |
=over 8
|
| 38 |
|
| 39 |
=item B<-help>
|
| 40 |
simple help
|
| 41 |
|
| 42 |
=item B<-verbose>
|
| 43 |
increase verbosity of test script
|