Skip to content
Snippets Groups Projects
Commit 910abf33 authored by micah's avatar micah :speech_balloon:
Browse files

added more robust mdadm raid device capture, by actually scanning active...

added more robust mdadm raid device capture, by actually scanning active arrays via mdadm, rather than just catting the mdadm.conf file, which may be empty
parent 4d81bb45
Branches
Tags
No related merge requests found
...@@ -49,6 +49,9 @@ version 0.9.6 -- unreleased ...@@ -49,6 +49,9 @@ version 0.9.6 -- unreleased
debconf-get-selections debconf-get-selections
. fixed catifexec function to actually work, also now passes the arguments . fixed catifexec function to actually work, also now passes the arguments
given to catifexec() to the called command (Thanks John Hallam!) given to catifexec() to the called command (Thanks John Hallam!)
. Added more robust software RAID information capture by running mdadm
-Q --detail /dev/md?* because some people may have empty mdadm.conf files
(Thanks to John Hallam).
version 0.9.5 -- December 2, 2007 version 0.9.5 -- December 2, 2007
backupninja changes backupninja changes
......
...@@ -382,7 +382,7 @@ STATUS="Gathering information about your ide drivers:" ...@@ -382,7 +382,7 @@ STATUS="Gathering information about your ide drivers:"
catiffile "/proc/ide" catiffile "/proc/ide"
STATUS="Gathering information about your bus:" STATUS="Gathering information about your bus:"
catifexec lspci catifexec "/usr/bin/lspci"
catiffile "/proc/bus" catiffile "/proc/bus"
echo echo
...@@ -393,7 +393,7 @@ STATUS="Collecting information from /etc/fstab:" ...@@ -393,7 +393,7 @@ STATUS="Collecting information from /etc/fstab:"
catiffile "/etc/fstab" catiffile "/etc/fstab"
STATUS="Collecting disk partition information:" STATUS="Collecting disk partition information:"
catifexec "fdisk -l" catifexec "/sbin/fdisk -l"
STATUS="Checking mounted file systems (mount) " STATUS="Checking mounted file systems (mount) "
catifexec "/bin/mount" catifexec "/bin/mount"
...@@ -410,6 +410,9 @@ catiffile "/etc/raidtab" ...@@ -410,6 +410,9 @@ catiffile "/etc/raidtab"
STATUS="Collecting Software RAID information (/etc/mdadm.conf)" STATUS="Collecting Software RAID information (/etc/mdadm.conf)"
catiffile "/etc/mdadm.conf" catiffile "/etc/mdadm.conf"
STATUS="Collecting Software RAID information (/sbin/mdadm -Q)"
catifexec "/sbin/mdadm" "-Q" "--detail" '/dev/md?*'
STATUS="Collecting Automount information (auto.master)" STATUS="Collecting Automount information (auto.master)"
catiffile "/etc/auto.master" catiffile "/etc/auto.master"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment