Bug#329409: How do you workaround wontfix bug #329409: group and perms wrong in /dev/mapper

Bdale Garbee bdale at gag.com
Sat Nov 19 14:28:08 UTC 2005


On Wed, 2005-11-16 at 12:42 -0500, John A. Martin wrote:
> How do you workaround wontfix bug #329409: group and perms wrong in
> /dev/mapper?  


The correct fix is to change the configure options to libdevmapper1.01
as I articulated earlier.

My workaround is a patch to the init script provided by lvm-common:

--- debian/init 2004-04-12 12:16:28.000000000 -0600
+++ /etc/init.d/lvm     2005-09-26 10:43:09.000000000 -0600
@@ -56,6 +56,8 @@
                         chmod $MOD $DEV
                         chown $OWN $DEV
                 done
+               chgrp disk /dev/mapper/vg*
+               chmod 0660 /dev/mapper/vg*
                ;;

        stop)


>         Do we still want to avoid ext2/3 dump/restore?
>         xfsdump/xfsrestore?

I use ext3 over lvm with dump and amanda and am quite happy with the
results.  No method operating on a live filesystem can be "perfect", but
this combination more than meets my current backup needs.

>         What is the preferred way to automate snapshots for/with
>         Amanda? 

I don't currently use snapshots, so have no particular suggestions.  Let
me know what you decide to do in the end.

> Lastly, I am trying to identify the culprit that leads to failing
> dumps of 5G or larger xfs filesystems when indexing. 

I've never used xfs on a filesystem I needed to back up, so I don't have
anything to add here, either.

Bdale





More information about the pkg-lvm-maintainers mailing list