[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#499482: marked as done (Dmraid activation could possibly activate degraded arrays.)



Your message dated Fri, 08 May 2009 06:02:16 +0000
with message-id <E1M2JA0-0000Ku-LE@ries.debian.org>
and subject line Bug#499482: fixed in hw-detect 1.72
has caused the Debian Bug report #499482,
regarding Dmraid activation could possibly activate degraded arrays.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
499482: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499482
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: disk-detect
Version: 1.69
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch intrepid ubuntu

When disk-detect.sh attempts to activate dmraid arrays with "dmraid -ay", there is the potential for degraded arras to be activated. If Debian happens to be installed to such an array, this could worsen the array's state.

Attached is a patch that uses the dmraid-activate script from the dmraid-udeb package to activate only arrays that don't appear to be degraded.
Index: disk-detect.sh
===================================================================
--- disk-detect.sh	(revision 55893)
+++ disk-detect.sh	(working copy)
@@ -180,8 +180,10 @@
 
 		if [ "$(dmraid -c -s)" != "No RAID disks" ]; then
 			logger -t disk-detect "Serial ATA RAID disk(s) detected; enabling dmraid support"
-			# Activate devices
-			log-output -t disk-detect dmraid -ay
+			# Activate only those arrays which have all disks present.
+			for dev in $(dmraid -r -c); do
+				log-output -t disk-detect dmraid-activate $dev
+			done
 		else
 			logger -t disk-detect "No Serial ATA RAID disks detected"
 		fi

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: hw-detect
Source-Version: 1.72

We believe that the bug you reported is fixed in the latest version of
hw-detect, which is due to be installed in the Debian FTP archive:

archdetect_1.72_amd64.udeb
  to pool/main/h/hw-detect/archdetect_1.72_amd64.udeb
disk-detect_1.72_all.udeb
  to pool/main/h/hw-detect/disk-detect_1.72_all.udeb
ethdetect_1.72_all.udeb
  to pool/main/h/hw-detect/ethdetect_1.72_all.udeb
hw-detect_1.72.dsc
  to pool/main/h/hw-detect/hw-detect_1.72.dsc
hw-detect_1.72.tar.gz
  to pool/main/h/hw-detect/hw-detect_1.72.tar.gz
hw-detect_1.72_amd64.udeb
  to pool/main/h/hw-detect/hw-detect_1.72_amd64.udeb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 499482@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Frans Pop <fjp@debian.org> (supplier of updated hw-detect package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 08 May 2009 07:45:48 +0200
Source: hw-detect
Binary: hw-detect ethdetect disk-detect archdetect
Architecture: source all amd64
Version: 1.72
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Frans Pop <fjp@debian.org>
Description: 
 archdetect - Hardware architecture detector (udeb)
 disk-detect - Detect disk drives (udeb)
 ethdetect  - Detect network hardware and load kernel drivers for it (udeb)
 hw-detect  - Detect hardware and load kernel drivers for it (udeb)
Closes: 499482 510304
Changes: 
 hw-detect (1.72) unstable; urgency=low
 .
   [ Colin Watson ]
   * Ask the correct parameters question if modprobe fails.
   * Cope with dm-mod being built-in (e.g. custom kernels).
   * Merge from Ubuntu:
     - Check dmraid's exit code rather than parsing its output.
     - Use 'update-dev --settle' rather than 'update-dev' after loading
       modules (although not after installing new module packages, which may
       still require a trigger). Requires di-utils 1.66.
     - Activate only non-degraded dmraid arrays (thanks, Luke Yelavich;
       closes: #499482).
 .
   [ Frans Pop ]
   * Install usbutils based on presence of /sys/bus/usb.
 .
   [ Javier Fernández-Sanguino Peña ]
   * Fix Spanish translation. Closes: #510304
 .
   [ Frans Pop ]
   * Remove myself as uploader.
   * Move hook scripts to directories to simplify including them.
   * hppa: starting with kernel 2.6.29 modules for devices on the parisc bus
     should be loaded automatically.
Checksums-Sha1: 
 4776cb3462b521360a6cb4626bf0de2ddcc13625 995 hw-detect_1.72.dsc
 2156ccbaeba7f6d13dd92bead27a07d41f7b3dc5 170209 hw-detect_1.72.tar.gz
 eb4cbe55b3f0b24df98eac3a8b2203ad8a29b855 27530 ethdetect_1.72_all.udeb
 60e3d0befc3f88f4664f4c97920ff096a5641909 21118 disk-detect_1.72_all.udeb
 d188849ca0defba95011375bab981fa09a61cad9 92442 hw-detect_1.72_amd64.udeb
 ad9f655ce85a9783c5335489eb1573bd5609ce81 2288 archdetect_1.72_amd64.udeb
Checksums-Sha256: 
 0daf840ebaecfd270ced078678b3d16704b95d51b300bb0149adb174d500f6e8 995 hw-detect_1.72.dsc
 9ace0364730d050cc034db5a1e5a56877d08e7ebd396c4693bcbc8589ee06d4e 170209 hw-detect_1.72.tar.gz
 0905f84227b4c7edcc3396d8d143030adfffc96df22e19998018ff060ccc6169 27530 ethdetect_1.72_all.udeb
 dd5b50cbcbcf666f53abcafabb7585a9797d703d524c80d12b5fb549924e8bfc 21118 disk-detect_1.72_all.udeb
 e2981c01753da3f051e76d5eb6631273183eef13c91b0bfe4334482994a91203 92442 hw-detect_1.72_amd64.udeb
 4b559aaceac3983ceec3532da85038716b99294cd057ca6e6a146cbff2ef0275 2288 archdetect_1.72_amd64.udeb
Files: 
 d484bb6246ca502bc1c60a3f6f57f80a 995 debian-installer standard hw-detect_1.72.dsc
 d6beece61b52e6a016990d72478b9cea 170209 debian-installer standard hw-detect_1.72.tar.gz
 30ad62089bbbe9fdec8f0472ee46e9f1 27530 debian-installer optional ethdetect_1.72_all.udeb
 1c0b1f3e0894fe483eb7f03e249d8800 21118 debian-installer optional disk-detect_1.72_all.udeb
 0b48c37f0ce49eea9fb55abb56205717 92442 debian-installer standard hw-detect_1.72_amd64.udeb
 4e8fe66c7bf7a01d7462e8baa618891d 2288 debian-installer standard archdetect_1.72_amd64.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoDx40ACgkQgm/Kwh6ICoT3zACdGjQBhwuNADWu2lpI/eQ1I1MP
J54An1Ys+GKfyZTapbymnOU78p+u6Oq7
=rAhO
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: