<?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: Reduction of LV for the /var and /opt directories in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859994#M612428</link>
    <description>That's what I get for copying and pasting from a M$ Word document!&lt;BR /&gt;&lt;BR /&gt;find . -xdev -depth -print|cpio -pmd /mydir&lt;BR /&gt;&lt;BR /&gt;Mark</description>
    <pubDate>Wed, 13 Sep 2006 08:53:48 GMT</pubDate>
    <dc:creator>MarkSyder</dc:creator>
    <dc:date>2006-09-13T08:53:48Z</dc:date>
    <item>
      <title>Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859982#M612416</link>
      <description>&lt;!--!*#--&gt;Hi, new to Unix admin.  I need to free up some disk space alocated to my /var and /opt directories.  I only have the basic tool set available on this machine, so I will have to copy contents of /var, then unmount it, then mount it with a smaller disk space.  This will free up space for other volumes, specifically /.  So my questions is, can I unmount /var and /opt safely with out crashing my machine.  some one had suggested to me that there is vital operating system files in those directories, and deleting them wiould cause my machine to not function.&lt;BR /&gt;&lt;BR /&gt;Is this true or can I unmount these directories safely?&lt;BR /&gt;&lt;BR /&gt;Thanks, for the help.&lt;BR /&gt;&lt;BR /&gt;Phil  &lt;BR /&gt;</description>
      <pubDate>Sun, 10 Sep 2006 16:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859982#M612416</guid>
      <dc:creator>Phillip Popp</dc:creator>
      <dc:date>2006-09-10T16:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859983#M612417</link>
      <description>/var is used by just about every process in HP-UX, but don't worry, you can't umount /var -- it is marked as busy, just like /opt. Since these are active filesystems, you'll need to reboot into single user mode. Once there, mount all the filesystems with this command:&lt;BR /&gt; &lt;BR /&gt;mount -al&lt;BR /&gt; &lt;BR /&gt;Now perform your copy, unmount and recreate the lvol, then initialize it with newfs and mount it again. Now copy your files back to the lvol. Repeat for each filesystem. To quickly copy your filesystem, use cpio -p as in:&lt;BR /&gt; &lt;BR /&gt;cd /old_dir&lt;BR /&gt;find . | cpio -pudlmv /temp_dir&lt;BR /&gt; &lt;BR /&gt;Once the new lvol is available, use the same command to copy the files back.</description>
      <pubDate>Sun, 10 Sep 2006 18:19:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859983#M612417</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-09-10T18:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859984#M612418</link>
      <description>Hi Phil,&lt;BR /&gt;&lt;BR /&gt;IS your /opt and /var are not separate filesystems? Are they part of / ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If they are individual filesystem, I recon cleaning up them will not increasse / filesystem free space.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sathish</description>
      <pubDate>Tue, 12 Sep 2006 02:59:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859984#M612418</guid>
      <dc:creator>sathish kannan</dc:creator>
      <dc:date>2006-09-12T02:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859985#M612419</link>
      <description>I have to ask why you want to increase /?&lt;BR /&gt;&lt;BR /&gt;This is usually a static filesystem with little if any growth. Is it possible you have stuff in / that should be in a filesystem of its own? Probably on a non-operating system disc.&lt;BR /&gt;&lt;BR /&gt;Let us know why you want to increase / and we'll be able to advise you.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Tue, 12 Sep 2006 03:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859985#M612419</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-09-12T03:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859986#M612420</link>
      <description>Phil,&lt;BR /&gt;&lt;BR /&gt;Safer option might be to use make_tape_recovery, part of Ignite, available for free download from &lt;A href="http://docs.hp.com/en/IUX/download.html" target="_blank"&gt;http://docs.hp.com/en/IUX/download.html&lt;/A&gt;&lt;BR /&gt;This would let you create a bootable tape - "The make_tape_recovery(1M) and make_net_recovery(1M) tools enable consistent, reliable recovery in the event of a catastrophic failure of the system disk or root volume group." &lt;BR /&gt;&lt;BR /&gt;That way you should be able to restructure your vg00 layout and you also have your vg00 data secured&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Nick&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 03:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859986#M612420</guid>
      <dc:creator>Nick W</dc:creator>
      <dc:date>2006-09-12T03:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859987#M612421</link>
      <description>Yes,&lt;BR /&gt;   Who ever set up the system in the first place, put a lot of stuff under the / directory.  This machine is destined to be a back up of another machine that was set up as mentioned above.  I will eventually use rdist to keep both machines relatively the same so if the first machine goes down the other one can be switched to. This second machine does not have enough space under / to accomadate the frst machines set up.  so it is either free up space on / on second machine or reformat from scratch on that machine. I have nvever reformated and started from scratch on a Unix box before, the experts here suggest not to do that if I can help it.  You see I am not a full time admin, I am actually an EE who finds himself with the responsibility to maintain a small network of two servers and 20 clients.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Tue, 12 Sep 2006 09:06:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859987#M612421</guid>
      <dc:creator>Phillip Popp</dc:creator>
      <dc:date>2006-09-12T09:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859988#M612422</link>
      <description>It appears from your previous answer that you are able to identify the stuff that shouldn't be in /. Do you have a non-operating system disc you could move this stuff to? This would free up space in / and be a lot easier than reducing other filesystems so you can increase /.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 12 Sep 2006 09:45:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859988#M612422</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-09-12T09:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859989#M612423</link>
      <description>Thnaks Mark,&lt;BR /&gt;    I would love to redue the files that do not belong in there.  However there are so many scripts that reference those files, then other things are linked here and there, it is a mess.  If i move some of these, it would surely break the system.  This system is part of a database chain that provides a lot of critical data to our business.  I do not have the luxury of experimenting.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;phil</description>
      <pubDate>Tue, 12 Sep 2006 09:55:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859989#M612423</guid>
      <dc:creator>Phillip Popp</dc:creator>
      <dc:date>2006-09-12T09:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859990#M612424</link>
      <description>You could move them and still keep the old names (although this would admittedly involve a certain amount of downtime).&lt;BR /&gt;&lt;BR /&gt;Let us say you have a directory called mydir in /. You would rename the directory (for example) mydir.old, then create a new logical volume with a filesystem called mydir. You would then move the contents of mydir.old to /mydir and there you have it - mydir is re-created on a different disc. You could then remove mydir.old when you were happy that the new filesystem was working properly.&lt;BR /&gt;&lt;BR /&gt;Full instructions available if this looks feasible.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 12 Sep 2006 10:14:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859990#M612424</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-09-12T10:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859991#M612425</link>
      <description>Mark,&lt;BR /&gt;  That sounds like a good plan, I could do it slowly over time to make sure nothing breaks along the way.  Change one directory let it run for  a while then do another if no issues arise.&lt;BR /&gt;&lt;BR /&gt;A full set of instructions would be teriffic.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;BTW, I am running HP 10.2&lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Tue, 12 Sep 2006 11:04:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859991#M612425</guid>
      <dc:creator>Phillip Popp</dc:creator>
      <dc:date>2006-09-12T11:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859992#M612426</link>
      <description>1. mv mydir mydir.old&lt;BR /&gt;&lt;BR /&gt;2. Go into SAM -&amp;gt; discs and filesystems -&amp;gt; Logical volumes -&amp;gt; create. Create an lvol that you think will be big enough to take the contents of mydir.old, preferably not on the os disc. Name the filesystem /mydir&lt;BR /&gt;&lt;BR /&gt;2. cd mydir.old&lt;BR /&gt;find . â  xdev â  depth â  print|cpio â  pmd /mydir&lt;BR /&gt;&lt;BR /&gt;Once this has finished, monitor for a while and then delete mydir.old and all its contents.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 13 Sep 2006 02:03:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859992#M612426</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-09-13T02:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859993#M612427</link>
      <description>Thanks Mark,&lt;BR /&gt; I really appreciate this help.  Just one thing, I can not read step two in your directions.&lt;BR /&gt;&lt;BR /&gt; 2. cd mydir.old&lt;BR /&gt;find . Ã¢Â Â xdev Ã¢Â Â depth Ã¢Â Â print|cpio Ã¢Â Â pmd /mydir&lt;BR /&gt;&lt;BR /&gt;I do not understand the a and squares, the characters must not be translating correctly or something?&lt;BR /&gt;&lt;BR /&gt;Could you please resend&lt;BR /&gt;&lt;BR /&gt;And thanks again for for all your time!!</description>
      <pubDate>Wed, 13 Sep 2006 08:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859993#M612427</guid>
      <dc:creator>Phillip Popp</dc:creator>
      <dc:date>2006-09-13T08:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859994#M612428</link>
      <description>That's what I get for copying and pasting from a M$ Word document!&lt;BR /&gt;&lt;BR /&gt;find . -xdev -depth -print|cpio -pmd /mydir&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 13 Sep 2006 08:53:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859994#M612428</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-09-13T08:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reduction of LV for the /var and /opt directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859995#M612429</link>
      <description>Phil,&lt;BR /&gt;&lt;BR /&gt;One final point (for which I want no points).&lt;BR /&gt;&lt;BR /&gt;I'm grateful for the points you've given to me, but other people have tried to help. When I ask a question I always give a minimum of 3 points to every genuine attempt to help, even if it didn't help at all. Some good people have given you some good answers and they deserve points!&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 13 Sep 2006 09:38:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduction-of-lv-for-the-var-and-opt-directories/m-p/3859995#M612429</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2006-09-13T09:38:15Z</dc:date>
    </item>
  </channel>
</rss>

