<p dir="ltr">I agree with Phil. This needs to be activated by usb tools instead of autofs. The usb connection will usually change as it&#39;s done on the fly. A udev event process will map into user space from kernel space where autofs is is the reverse. </p>
<p dir="ltr">How are the drives being removed?</p>
<div class="gmail_quote">On Jun 16, 2016 1:50 PM, &quot;Edward Holcroft&quot; &lt;<a href="mailto:eholcroft@mkainc.com">eholcroft@mkainc.com</a>&gt; wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">I guess I don&#39;t have to use autofs. It just seemed like the easiest way at the time to script automated, remote, encrypted daily backup based on the label of the drive that gets inserted by the office manager at the remote site. Since I only have this issue at some of my sites, all with the same hardware and software (CentOS 7 on HP ML350), I&#39;m optimistic that there&#39;s a fix, hoping that I&#39;ve just done something stupid on some of the servers.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Here&#39;s an example of a log where I place the drive into a freshly rebooted server ... encrypted drive ready to go at 12:31:16. Then pull the drive and reinsert it ... and I get the &quot;different syspaths&quot; issue. In googling that message, many forums refer to it as &quot;harmless&quot; and &quot;to be ignored&quot;. Clearly not in this case though, since my servers that do work, do not have this anywhere in the logs. One systemd bugfix that I read merely changed the verbosity level to get rid of the message, without changing underlying behavior.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default">Jun 16 12:31:16 atlfs kernel: usb 2-2: USB disconnect, device number 3</div><div class="gmail_default">Jun 16 12:31:16 atlfs kernel: sd 3:0:0:0: [sdd] Synchronizing SCSI cache</div><div class="gmail_default">Jun 16 12:31:16 atlfs kernel: sd 3:0:0:0: [sdd] Synchronize Cache(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK</div><div class="gmail_default">Jun 16 12:31:16 atlfs systemd: Stopping Cryptography Setup for THURSDAY...</div><div class="gmail_default">Jun 16 12:31:16 atlfs systemd-udevd: error opening USB device &#39;descriptors&#39; file</div><div class="gmail_default">Jun 16 12:31:16 atlfs systemd: Stopped /dev/mapper/THURSDAY.</div><div class="gmail_default">Jun 16 12:31:16 atlfs systemd: Stopped /dev/disk/by-uuid/dc142de3-42a6-4793-aa2d-796c9fdcf588.</div><div class="gmail_default">Jun 16 12:31:16 atlfs systemd: Stopped /dev/disk/by-label/THURSDAY.</div><div class="gmail_default">Jun 16 12:31:16 atlfs systemd: Stopped /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-0a647b12fce74745b6f78bfa3ffd56d8-THURSDAY.</div><div class="gmail_default">Jun 16 12:31:16 atlfs systemd: Stopped /dev/disk/by-id/dm-name-THURSDAY.</div><div class="gmail_default">Jun 16 12:31:16 atlfs systemd: Stopped /dev/dm-2.</div><div class="gmail_default">Jun 16 12:31:16 atlfs systemd: Stopped /sys/devices/virtual/block/dm-2.</div><div class="gmail_default">Jun 16 12:31:16 atlfs systemd: Stopped Cryptography Setup for THURSDAY.</div><div class="gmail_default"><br></div><div class="gmail_default">Jun 16 12:32:58 atlfs kernel: usb 2-2: new SuperSpeed USB device number 4 using xhci_hcd</div><div class="gmail_default">Jun 16 12:32:58 atlfs kernel: usb 2-2: New USB device found, idVendor=174c, idProduct=55aa</div><div class="gmail_default">Jun 16 12:32:58 atlfs kernel: usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1</div><div class="gmail_default">Jun 16 12:32:58 atlfs kernel: usb 2-2: Product: ASM1053</div><div class="gmail_default">Jun 16 12:32:58 atlfs kernel: usb 2-2: Manufacturer: Asmedia</div><div class="gmail_default">Jun 16 12:32:58 atlfs kernel: usb 2-2: SerialNumber: 0123456789ABCDEF0124</div><div class="gmail_default">Jun 16 12:32:58 atlfs kernel: usb-storage 2-2:1.0: USB Mass Storage device detected</div><div class="gmail_default">Jun 16 12:32:58 atlfs kernel: usb-storage 2-2:1.0: Quirks match for vid 174c pid 55aa: 400000</div><div class="gmail_default">Jun 16 12:32:58 atlfs kernel: scsi host5: usb-storage 2-2:1.0</div><div class="gmail_default">Jun 16 12:32:58 atlfs mtp-probe: checking bus 2, device 4: &quot;/sys/devices/pci0000:00/0000:00:02.0/0000:04:00.0/0000:05:00.0/0000:06:00.0/usb2/2-2&quot;</div><div class="gmail_default">Jun 16 12:32:58 atlfs mtp-probe: bus: 2, device: 4 was not an MTP device</div><div class="gmail_default">Jun 16 12:32:59 atlfs kernel: scsi 5:0:0:0: Direct-Access     ASMT     2105             0    PQ: 0 ANSI: 6</div><div class="gmail_default">Jun 16 12:32:59 atlfs kernel: sd 5:0:0:0: Attached scsi generic sg5 type 0</div><div class="gmail_default">Jun 16 12:33:11 atlfs kernel: sd 5:0:0:0: [sdd] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)</div><div class="gmail_default">Jun 16 12:33:11 atlfs kernel: sd 5:0:0:0: [sdd] Write Protect is off</div><div class="gmail_default">Jun 16 12:33:11 atlfs kernel: sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn&#39;t support DPO or FUA</div><div class="gmail_default">Jun 16 12:33:11 atlfs kernel: sdd: unknown partition table</div><div class="gmail_default">Jun 16 12:33:11 atlfs kernel: sd 5:0:0:0: [sdd] Attached SCSI disk</div><div class="gmail_default">Jun 16 12:33:11 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/host3/target3:0:0/3: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/host5/target5:0:0/5:0:0:0/block/sdd</div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Even if I delete the duplicate target, it still keeps the original and adds a new one, incrementing the number each time. Restarting autofs does not help, but a reboot does.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">ed</div><div class="gmail_extra"><div class="elided-text"><br><div class="gmail_quote">On Thu, Jun 16, 2016 at 1:17 PM, Phil Turmel <span dir="ltr">&lt;<a href="mailto:philip@turmel.org" target="_blank">philip@turmel.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 06/16/2016 11:33 AM, Edward Holcroft wrote:<br>
&gt; All,<br>
&gt;<br>
&gt; I am running USB HDD backups (encrypted with LUKS) on multiple CentOS 7<br>
&gt; boxes using rsync. The drives get swapped out for each day of the week<br>
&gt; and I use autofs to mount them. On some (not all) of these servers I<br>
&gt; encounter an issue whereby the drive does not automount and shows has a<br>
&gt; duplicate entry in messages:<br>
&gt;<br>
&gt; Jun 16 10:48:01 atlfs systemd: Device<br>
&gt; dev-disk-by\x2duuid-0a647b12\x2dfce7\x2d4745\x2db6f7\x2d8bfa3ffd56d8.device<br>
&gt; appeared twice with different sysfs paths<br>
&gt; /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<br>
&gt; and<br>
&gt; /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<br>
<br>
</span>So autofs isn&#39;t letting go.  I don&#39;t know if that&#39;s a bug or if autofs<br>
was just never updated to handle devices going away.  Is there a reason<br>
you have to use autofs?  Could you not use a udev rule to trigger mount<br>
and backup and then have an explicit unmount after backup is done?<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div><br></div><div><br></div><div><br><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">_________________________________________ </span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:11pt">Edward O. Holcroft</b><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">IT Operations Manager</span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:11pt">Madsen, Kneppers &amp; Associates, Inc.</b><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">Construction Consultants &amp; Engineers </span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">11695 Johns Creek Parkway, Suite 250</span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">Johns Creek, GA 30097</span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">O</b><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">  <a href="tel:770.446.9606" value="+17704469606" target="_blank">770.446.9606</a>  |  </span><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">F</b><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">  <a href="tel:770.446.9612" value="+17704469612" target="_blank">770.446.9612</a>  |  </span><b style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">C</b><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px">  <a href="tel:770.630.0949" value="+17706300949" target="_blank">770.630.0949</a>  |  <a href="mailto:eholcroft@mkainc.com" target="_blank">eholcroft@mkainc.com</a></span><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Arial,Helvetica,san-serif;font-size:13.3333px"><a href="http://www.mkainc.com" target="_blank">www.mkainc.com</a> </span><br></div></div></div></div></div></div></div>
</div></div><div class="elided-text">

<br>
<span style="font-family:arial"><font size="2">MADSEN, KNEPPERS &amp; ASSOCIATES USA, MKA Canada Inc. WARNING/CONFIDENTIALITY NOTICE: This message may be confidential and/or privileged. If you are not the intended recipient, please notify the sender immediately then delete it - you should not copy or use it for any purpose or disclose its content to any other person. Internet communications are not secure. You should scan this message and any attachments for viruses. Any unauthorized use or interception of this e-mail is illegal.</font></span></div><br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div>