From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F07DE13800E for ; Thu, 2 Aug 2012 15:53:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A5D9BE076B; Thu, 2 Aug 2012 15:52:44 +0000 (UTC) Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com [209.85.216.46]) by pigeon.gentoo.org (Postfix) with ESMTP id 158DFE0656 for ; Thu, 2 Aug 2012 15:50:36 +0000 (UTC) Received: by qadb17 with SMTP id b17so3464545qad.19 for ; Thu, 02 Aug 2012 08:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OoyFsq/dJFAOSo8ldD5G7YToSAZJwq/7/N9zeCVZUE0=; b=XXykM2ROXuJklxxLUbe7WByWJ/Ub2uTdyjbl7yC8kXgEARQvB/1H2fKSNM4vhTb+2e VDqVz9WzBiEGPvJVo1XKYaNfS7ommc4OoEF8cNJnFu6JcNZuJYMzBs3qeVE+H8Mb/RDr 8U3hGUCLodvizNSJhRDwIKe4YvNbgLpHv9iQVq1eK6waDd3qDFm75RAf7aIJ4hPhRzyp npDdnmPnK8ekOP0G1BHXNsCXXH6WL85OZzaEFD9PNeE/Lo6sQ2QX1i2+LVh16qhFm3jr NEBIiPPc8QvUuFv4EIX74gI/yJvcXD1PkArN+sSiHkqpG3q97K+EqnNQoFv0NPL9ONER T9ZQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.224.175.6 with SMTP id v6mr19517736qaz.36.1343922636480; Thu, 02 Aug 2012 08:50:36 -0700 (PDT) Received: by 10.229.190.196 with HTTP; Thu, 2 Aug 2012 08:50:36 -0700 (PDT) In-Reply-To: <20120802170207.41780259@weird.wonkology.org> References: <20120802013404.3c67615a@weird.wonkology.org> <20120802024236.0c12da7c@weird.wonkology.org> <20120802112036.61631fa1@weird.wonkology.org> <20120802123857.38b050b8@weird.wonkology.org> <20120802170207.41780259@weird.wonkology.org> Date: Thu, 2 Aug 2012 08:50:36 -0700 Message-ID: Subject: Re: [gentoo-user] Udev rules for identical hard drives From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 08ac8438-a698-4f6c-9c01-7d3fdf023206 X-Archives-Hash: b036be4742234a8417efcdb6e226c03a On Thu, Aug 2, 2012 at 8:02 AM, Alex Schuster wrote: > Mark Knecht writes: > >> Check out the very nice 'lsdrv' script by Phil Turmel. Run it, save a >> copy of the output for bad times. >> >> https://github.com/pturmel/lsdrv > > That doesn't work here, and I do not understand why. In line 305 it tries > and fails to create /dev/block, which is already existing. > > if not os.path.exists('/dev/block'): > os.mkdir('/dev/block', 0755) > > Uh, is this a python bug? It works fine with python 2.7, but not with > 3.2. But os.path.exists() is quite a basic function, if that wouldn't > work, I'd expect all things to break, including emerge. > > Nice script. Much similar to lshw I think, but it shows more stuff, like > LVM names and UUIDS. Thanks! > > Wonko > Dunno about the python-3.2 thing. Are you set to use 3.2 by default? (How aggressive of you!) ;-) I'm set to use 2.7 as default which I think is the overall recommendation of dummies like me: c2stable ~ # eselect python list Available Python interpreters: [1] python2.7 * [2] python3.2 c2stable ~ # The script has been around awhile and updated now and again. Possibly it's just not tested with python-3.2? Anyway, the folks on the mdadm RAID list often ask people who had a RAID completely fail if they had the info this script provides taken from prior to the crash so I do it for all my machines and then keep the output in my GMail account for safety. HTH, Mark