[ale] USB "duplicate" drive issue on CentOS

Phil Turmel philip at turmel.org
Thu Jun 16 13:17:32 EDT 2016


On 06/16/2016 11:33 AM, Edward Holcroft wrote:
> All,
> 
> I am running USB HDD backups (encrypted with LUKS) on multiple CentOS 7
> boxes using rsync. The drives get swapped out for each day of the week
> and I use autofs to mount them. On some (not all) of these servers I
> encounter an issue whereby the drive does not automount and shows has a
> duplicate entry in messages:
> 
> Jun 16 10:48:01 atlfs systemd: Device
> dev-disk-by\x2duuid-0a647b12\x2dfce7\x2d4745\x2db6f7\x2d8bfa3ffd56d8.device
> appeared twice with different sysfs paths
> /sys/devices/pci0000:00/0000:00:02.0/0000:04:00.0/0000:05:00.0/0000:06:00.0/usb2/2-2/2-2:1.0/host5/target5:0:0/5:0:0:0/block/sdd
> and
> /sys/devices/pci0000:00/0000:00:02.0/0000:04:00.0/0000:05:00.0/0000:06:00.0/usb2/2-2/2-2:1.0/host92/target92:0:0/92:0:0:0/block/sdi

So autofs isn't letting go.  I don't know if that's a bug or if autofs
was just never updated to handle devices going away.  Is there a reason
you have to use autofs?  Could you not use a udev rule to trigger mount
and backup and then have an explicit unmount after backup is done?



More information about the Ale mailing list