<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: migrate /var into nfs server in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452523#M37277</link>
    <description>&amp;gt;symlink I need to change which pointing to /var to write files while booting&lt;BR /&gt;&lt;BR /&gt;Why bother thinking, just create symlinks for every directory under /var and see which are changed.</description>
    <pubDate>Sun, 05 Jul 2009 03:16:33 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-07-05T03:16:33Z</dc:date>
    <item>
      <title>migrate /var into nfs server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452514#M37268</link>
      <description>Hello,&lt;BR /&gt;this is interesting task i need to do for one of my linux server, its redhat EP 4, i need to move /var in to nfs due to some space issue,&lt;BR /&gt;&lt;BR /&gt;i had created nfs drive and put entry in fstab.&lt;BR /&gt;&lt;BR /&gt;and rebooted server but it does not work as /var is require to write some logs and other stuff, it just stop in half boot,&lt;BR /&gt;&lt;BR /&gt;i think i need to change system path which are pointing to /var to write messages, while booting,&lt;BR /&gt;&lt;BR /&gt;anybody having any good suggestion,&lt;BR /&gt;surely assign point for each reply and full point for correct answer,&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Fri, 03 Jul 2009 11:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452514#M37268</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-07-03T11:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: migrate /var into nfs server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452515#M37269</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;check on wich runlevel is nfs client starting,&lt;BR /&gt;&lt;BR /&gt;you could change the startup prioriy with the start scripts.&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Fri, 03 Jul 2009 11:42:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452515#M37269</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2009-07-03T11:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: migrate /var into nfs server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452516#M37270</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;This is not a good idea.&lt;BR /&gt;&lt;BR /&gt;Problem is the system wants to mount /var and start writing files to it before it starts the NFS client.&lt;BR /&gt;&lt;BR /&gt;So where will all that output go?&lt;BR /&gt;&lt;BR /&gt;To the root fs. Then when /var mounts on NFS you won't even be able to see or erase this output because there will be a file system mounted on /var&lt;BR /&gt;&lt;BR /&gt;I call this the old hidden file trick.&lt;BR /&gt;&lt;BR /&gt;Better strategy:&lt;BR /&gt;&lt;BR /&gt;cd /var&lt;BR /&gt;du -sk | sort -rn | more&lt;BR /&gt;&lt;BR /&gt;Identify a big directory.&lt;BR /&gt;&lt;BR /&gt;See what is in it.&lt;BR /&gt;&lt;BR /&gt;Lets say /var/log/httpd is huge.&lt;BR /&gt;&lt;BR /&gt;You can safely move /var/log/httpd to NFS without doing yourself in with the old hidden file trick.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 03 Jul 2009 12:13:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452516#M37270</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-07-03T12:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: migrate /var into nfs server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452517#M37271</link>
      <description>thanks for suggestion,&lt;BR /&gt;i have no other choise need to migrate it in nfs&lt;BR /&gt;any other clue?&lt;BR /&gt;&lt;BR /&gt;as steven mentioned while booting up system want to write some files in /var and nfs will mount later so i can just change fstab and boot up system?&lt;BR /&gt;&lt;BR /&gt;appricate any other suggestion here</description>
      <pubDate>Fri, 03 Jul 2009 14:28:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452517#M37271</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-07-03T14:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: migrate /var into nfs server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452518#M37272</link>
      <description>You will damage your system by migrating all of /var to NFS.&lt;BR /&gt;&lt;BR /&gt;Again:&lt;BR /&gt;&lt;BR /&gt;cd /var&lt;BR /&gt;&lt;BR /&gt;du -k | sort -rn | more&lt;BR /&gt;&lt;BR /&gt;Pick three big directories.&lt;BR /&gt;&lt;BR /&gt;say &lt;BR /&gt;&lt;BR /&gt;/var/log/httpd&lt;BR /&gt;/var/log&lt;BR /&gt;&lt;BR /&gt;Create nfs mount and make:&lt;BR /&gt;&lt;BR /&gt;/var/log/httpd&lt;BR /&gt;/var/log&lt;BR /&gt;&lt;BR /&gt;file systems located on nfs&lt;BR /&gt;&lt;BR /&gt;mount -t nfs server:/path /var/log&lt;BR /&gt;&lt;BR /&gt;now its on nfs.&lt;BR /&gt;&lt;BR /&gt;Copy the data out first.&lt;BR /&gt;&lt;BR /&gt;Please read the hidden file trick remakrs carefully. Moving all of /var will eventually lead to a clogged and potentially filled / filesystem.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 03 Jul 2009 14:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452518#M37272</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-07-03T14:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: migrate /var into nfs server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452519#M37273</link>
      <description>Hello Steven&lt;BR /&gt;as i mentioned i have no choise i need to migrate i have few other reason to migrate it not only space,&lt;BR /&gt;&lt;BR /&gt;please advice if you have any other better suggestion, how i can boot my system to point out nfs /var while it trying to write some files in booting period thanks,&lt;BR /&gt;</description>
      <pubDate>Sat, 04 Jul 2009 00:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452519#M37273</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-07-04T00:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: migrate /var into nfs server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452520#M37274</link>
      <description>Consider very seriously Mr. Protter's recommendation; it will be much easier in the large majority of cases.&lt;BR /&gt;&lt;BR /&gt;If, for some other reason you haven't explained, it is mandatory that /var be NFS mounted, then you'll need to do a lot of research.  At a minimum, you'll need to replace /var/run (on both the local file system and on the NFS mounted /var) with a symbolic link to something like /var_local/run, on local storage mounted before any of the other startup scripts run.  Change the netfs startup script to run immediately after the nfslock startup script (you may need to renumber, e.g., the mdmonitor script so that it runs after netfs).  All the script renumberings will be subject to reversal if you ever apply patches to the packages owning the startup scripts, so be ready to deal with that.  Read /etc/rc.d/rc.sysinit and all the other startup scripts preceding netfs, and note where they attempt to use /var, replacing any file or directory mentioned with a symlink such as that for /run.  Keep detailed notes as you do all this on a test system, so that you haven't broken the production system while discovering all the little pieces you missed.  I run a virtual machine hosted by my laptop for just this kind of research.  Even better, write a script that performs all the changes, so that you can test the script on your test image - programs are less likely to miss a step than humans.&lt;BR /&gt;&lt;BR /&gt;Now that you have an idea what you're in for, consider Mr. Protter's advice again ;-)</description>
      <pubDate>Sat, 04 Jul 2009 00:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452520#M37274</guid>
      <dc:creator>Stephen P. Schaefer</dc:creator>
      <dc:date>2009-07-04T00:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: migrate /var into nfs server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452521#M37275</link>
      <description>This is unrelated to this thread but Volkmar is waiting for you to reply to your congrats thread:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1346628" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1346628&lt;/A&gt;</description>
      <pubDate>Sat, 04 Jul 2009 08:18:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452521#M37275</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-04T08:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: migrate /var into nfs server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452522#M37276</link>
      <description>ok now questions comes in mind that what are the system link i need to change which pointing to /var to write files while booting, any body having any specific list? &lt;BR /&gt;i may create one folder call /n-var and do link here so while bootup system can write all files here, what you guys think, thanks,</description>
      <pubDate>Sun, 05 Jul 2009 00:16:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452522#M37276</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-07-05T00:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: migrate /var into nfs server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452523#M37277</link>
      <description>&amp;gt;symlink I need to change which pointing to /var to write files while booting&lt;BR /&gt;&lt;BR /&gt;Why bother thinking, just create symlinks for every directory under /var and see which are changed.</description>
      <pubDate>Sun, 05 Jul 2009 03:16:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/migrate-var-into-nfs-server/m-p/4452523#M37277</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-05T03:16:33Z</dc:date>
    </item>
  </channel>
</rss>

