<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Thu May 23, 2013 9:17 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Thu May 23, 2013 9:17 am</pubDate>
  <lastBuildDate>Thu May 23, 2013 9:17 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: /dev/disk/by-id cleanup</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=105211#105211</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=737'&gt;ferrari&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Apr 10, 2012 4:41 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I'm surprised you had stale links, because AFAIU, udev creates/deletes these dynamically (via kernel uevents) as any disks are detected or removed, but maybe your disk replication app is responsible for this behaviour?</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=105211#105211</comments>
                                        <author>ferrari</author>
                                        <pubDate>Tue Apr 10, 2012 4:41 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=105211#105211</guid>
                                      </item>
                                      <item>
                                        <title>Re: /dev/disk/by-id cleanup</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=105175#105175</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68003'&gt;indijanc&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Apr 05, 2012 8:42 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thank you nelz, that does clean up the stale links. &lt;br /&gt;
&lt;br /&gt;
I'd rather use a udev cleanup command or something similar though, since udev creates these links and takes care of them if I'm not mistaken. Is there any udev (or something similar) cleanup mode/command to take care of this? So far I haven't found any clues on &amp;quot;proper&amp;quot; removal of these stale softlinks.&lt;br /&gt;
&lt;br /&gt;
Thanks for the help &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=105175#105175</comments>
                                        <author>indijanc</author>
                                        <pubDate>Thu Apr 05, 2012 8:42 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=105175#105175</guid>
                                      </item>
                                      <item>
                                        <title>Re: /dev/disk/by-id cleanup</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=105173#105173</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Apr 05, 2012 1:54 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Do you mean that the directory is full of links that point nowhere? If so, this command will remove them.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;find -L /dev/disk/by-id -type l -exec rm &amp;quot;&amp;#123;&amp;#125;&amp;quot; +&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
The -L options makes find follow symbolic links and use information fro the file linked to rather than the link itself, so the only links it sees as links (-type l) are broken ones (or links that point to an unreadable file, but that won't happen if you run this as root).</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=105173#105173</comments>
                                        <author>nelz</author>
                                        <pubDate>Thu Apr 05, 2012 1:54 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=105173#105173</guid>
                                      </item>
                                      <item>
                                        <title>/dev/disk/by-id cleanup</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=105170#105170</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=68003'&gt;indijanc&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Apr 04, 2012 4:03 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Is there any way to clean up stale devices/symlinks in the /dev/disk/by-id folder?&lt;br /&gt;
&lt;br /&gt;
I have a SLES 11.1 with a SAN connected disk array. I'm using a program for disk replication and presenting the disks to the server. The program also enables the disks and creates a volume group on top. When it finishes it cleans up after itself (remove vg, unpresent etc.). After a few days of running it, the /dev/disk/by-id folder holds a large number of files (mostly softlinks to lvm devices). Is there any way to clean/remove these? So far only reboot helps &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=105170#105170</comments>
                                        <author>indijanc</author>
                                        <pubDate>Wed Apr 04, 2012 4:03 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=105170#105170</guid>
                                      </item></channel></rss>