From: Evan Broder Date: Sun, 3 May 2009 07:47:27 +0000 (-0400) Subject: Don't be quite as ionice to the dds that wipe out deleted LVs. X-Git-Tag: 0.3.14^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/commitdiff_plain/refs/tags/0.3.14 Don't be quite as ionice to the dds that wipe out deleted LVs. svn path=/trunk/packages/invirt-remote/; revision=2345 --- diff --git a/debian/changelog b/debian/changelog index ed063e4..af6a9b0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-remote (0.3.14) unstable; urgency=low + + * Maybe we won't be /quite/ so ionice to the dd over a deleted LV. + + -- Evan Broder Sun, 03 May 2009 03:46:13 -0400 + invirt-remote (0.3.13) unstable; urgency=low * I totally failed to patch the right server. diff --git a/host/usr/sbin/invirt-lvm b/host/usr/sbin/invirt-lvm index bafcec7..a2a6cc9 100755 --- a/host/usr/sbin/invirt-lvm +++ b/host/usr/sbin/invirt-lvm @@ -68,7 +68,7 @@ if subcommand == "lvremove": # this is running non-interactively), so let's just drop them on # the floor for now. if os.fork() == 0: - call(["/usr/bin/ionice", "-c", "3", "/bin/dd", "if=/dev/zero", "of=%s" % new_lvpath]) + call(["/usr/bin/ionice", "-c", "2", "-n", "7", "/bin/dd", "if=/dev/zero", "of=%s" % new_lvpath]) call(["/sbin/lvchange", "-a", "n", new_lvpath]) call(["/sbin/lvchange", "-a", "ey", new_lvpath]) call(["/sbin/lvremove", "--force", new_lvpath])