RE: Storage device enumeration script
From: Leslie Rhorer <hidden>
Date: 2011-05-27 00:13:23
-----Original Message----- From: linux-raid-owner@vger.kernel.org [mailto:linux-raid- owner@vger.kernel.org] On Behalf Of Phil Turmel Sent: Thursday, May 26, 2011 6:42 AM To: Mathias Burén Cc: lrhorer@satx.rr.com; linux-raid@vger.kernel.org Subject: Re: Storage device enumeration script On 05/26/2011 02:16 AM, Mathias Burén wrote:quoted
On 26 May 2011 07:14, Leslie Rhorer [off-list ref] wrote:quoted
I get an error right off the bat: Traceback (most recent call last): File "./lsdrv.txt", line 264, in <module> for x in runx(['pvs', '-o', 'pv_name,pv_used,pv_size,pv_uuid,vg_name,vg_size,vg_free,vg_uuid', '--noheadings', '--separator', ' ']).split("\n"): File "./lsdrv.txt", line 50, in runx sub = Popen(*args, **kwargs) File "/usr/lib/python2.6/subprocess.py", line 623, in __init__ errread, errwrite) File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory I'm running Python 2.6.6 and mdadm 3.1.4 running on kernel 2.6.32-5-amd64quoted
quoted
-- To unsubscribe from this list: send the line "unsubscribe linux-raid"inquoted
quoted
the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlI get that in Ubuntu 11.04 on a laptop as well. /MDoes a plain install of Ubuntu include the LVM utilities? Can you run "pvs" directly?
I can't speak to Ubuntu, but Debian evidently does not. I don't know what "pvs" is, but neither bash nor Python recognize it as a file anywhere in the path. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html