<?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: create new desk help, please. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825496#M87486</link>
    <description>on all of my 11.0 systems, /tmp is lvol6... just make sure your /tmp that you are removing is in fact lvol4 (or lvol04)... for me lvol4 is /home... I'll shutup now :-)&lt;BR /&gt;&lt;BR /&gt;Ted</description>
    <pubDate>Mon, 14 Oct 2002 17:03:37 GMT</pubDate>
    <dc:creator>Ted Ellis_2</dc:creator>
    <dc:date>2002-10-14T17:03:37Z</dc:date>
    <item>
      <title>create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825493#M87483</link>
      <description>I have a drive I need to defragment and I do not have online jsf.&lt;BR /&gt;  I am going to stop all application activity, backup the system and remove the /tmp drive.&lt;BR /&gt;   I have a summary of the commands I would like to use followed by the information that support the commands.  I do not have a test system I can test this on, only one production system so I have to make sure this works.  Thanks for any suggestions I might get.&lt;BR /&gt;&lt;BR /&gt;Commands I would like to use:&lt;BR /&gt;umount /tmp&lt;BR /&gt;lvremove /dev/vg00/lvol04&lt;BR /&gt;lvcreate -L 1000 -n lvol04 /dev/vg00&lt;BR /&gt;newfs -f xvfs /dev/vg00/lvol04 /dev/dsk/c1t6d0 &lt;BR /&gt;newfs -f xvfs /dev/vg00/lvol04 /dev/dsk/c2t6d0&lt;BR /&gt;mount -a &lt;BR /&gt;#this info is already in the fstab.      &lt;BR /&gt;&lt;BR /&gt;fstab info:&lt;BR /&gt;/dev/vg00/lvol4 /tmp vxfs delaylog 0 2         &lt;BR /&gt;&lt;BR /&gt;bdf info:&lt;BR /&gt;/dev/vg00/lvol4    1048576  364238  645386   36% /tmp&lt;BR /&gt;&lt;BR /&gt;vgdisplay info:&lt;BR /&gt;vgdisplay -v /dev/vg00 |more. &lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;VG Write Access             read/write     &lt;BR /&gt;VG Status                   available                 &lt;BR /&gt;&lt;BR /&gt; --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c1t6d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    2169    &lt;BR /&gt;   Free PE                     268     &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c2t6d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    2169    &lt;BR /&gt;   Free PE                     268     &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol4&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            1024            &lt;BR /&gt;   Current LE                  256       &lt;BR /&gt;   Allocated PE                512         &lt;BR /&gt;   Used PV                     2   &lt;BR /&gt;   &lt;BR /&gt;     --- Logical volumes ---&lt;BR /&gt;   LV Name                     /dev/vg01/lvol1&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            64756           &lt;BR /&gt;   Current LE                  16189     &lt;BR /&gt;   Allocated PE                16189       &lt;BR /&gt;   Used PV                     1       &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c3t1d0&lt;BR /&gt;   PV Name                     /dev/dsk/c5t0d0  Alternate Link&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    16191   &lt;BR /&gt;   Free PE                     2       &lt;BR /&gt;   Autoswitch                  On      &lt;BR /&gt;</description>
      <pubDate>Mon, 14 Oct 2002 16:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825493#M87483</guid>
      <dc:creator>Tom_131</dc:creator>
      <dc:date>2002-10-14T16:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825494#M87484</link>
      <description>to mirror the new logical volume, you do not run the newfs command on each disk... instead:&lt;BR /&gt;&lt;BR /&gt;backup data (good)&lt;BR /&gt;lvremove (no problem)&lt;BR /&gt;lvcreate -L 1024 ...  good so far&lt;BR /&gt;newfs -F vxfs .... alright&lt;BR /&gt;&lt;BR /&gt;now:&lt;BR /&gt;&lt;BR /&gt;since you want to mirror this to to second disk on the root volume group, and assuming you have MirrorDisk already:&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t6d0&lt;BR /&gt;&lt;BR /&gt;note:  when you run lvremove on the original logical volume you remove, it will remove the mirror with it.&lt;BR /&gt;&lt;BR /&gt;You fstab entries seem fine.&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Mon, 14 Oct 2002 17:00:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825494#M87484</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-14T17:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825495#M87485</link>
      <description>oops... one more item.. if you want to use lvol4, then make sure that is the content of all your lvcreate, newfs and fstab entries:&lt;BR /&gt;&lt;BR /&gt;in other words, do not use lvcreate with /dev/vg00/lvol04... use /dev/vg00/lvol4&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Mon, 14 Oct 2002 17:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825495#M87485</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-14T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825496#M87486</link>
      <description>on all of my 11.0 systems, /tmp is lvol6... just make sure your /tmp that you are removing is in fact lvol4 (or lvol04)... for me lvol4 is /home... I'll shutup now :-)&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Mon, 14 Oct 2002 17:03:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825496#M87486</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-14T17:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825497#M87487</link>
      <description>Thank you very much for the help!&lt;BR /&gt;&lt;BR /&gt;   So the commans should look like this?(see below)&lt;BR /&gt;   do you extend the data before or afteryou create the new file system?&lt;BR /&gt;Commands:&lt;BR /&gt;BU Data&lt;BR /&gt;&lt;BR /&gt;umount /tmp&lt;BR /&gt;lvremove /dev/vg00/lvol04&lt;BR /&gt;lvcreate -L 1000 -n lvol04 /dev/vg00&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t6d0 &lt;BR /&gt;newfs -f xvfs /dev/vg00/lvol04 /dev/dsk/c1t6d0 &lt;BR /&gt;newfs -f xvfs /dev/vg00/lvol04 /dev/dsk/c2t6d0&lt;BR /&gt;mount -a &lt;BR /&gt;&lt;BR /&gt;   Thanks,&lt;BR /&gt;     Tom&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Oct 2002 17:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825497#M87487</guid>
      <dc:creator>Tom_131</dc:creator>
      <dc:date>2002-10-14T17:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825498#M87488</link>
      <description>Close - just one newfs, though.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 14 Oct 2002 17:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825498#M87488</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-10-14T17:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825499#M87489</link>
      <description>you can actually include the mirror command with the lvcreate.. guess I should have suggested that first:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 1000 -m 1 -s y -n lvol04 /dev/vg00&lt;BR /&gt;&lt;BR /&gt;the -s option indicates that mirrored physical extents will not be assigned to the same disks.  This will mirror your new lvol with one step.. then run the newfs next&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Mon, 14 Oct 2002 17:06:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825499#M87489</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-14T17:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825500#M87490</link>
      <description>By defrag you mean fsck right.  What are you trying to exactly do.  It looks like you are lvremoving and then going right back and recreating it as a smaller lv.  /tmp was 1024 and now you are creating lvol4 (/tmp) with 1000 MB 24 MB fewer than before.  If all you are trying to do is get /tmpto 0% used just umount /tmp if you can and run a fsadm -F vxfs /dev/vg00/lvol4.  If you can't umount it see what process is attached to /tmp run&lt;BR /&gt;#fuser -c /tmp&lt;BR /&gt;kill all processes if possible if not you will need to reboot the server and not mount /tmp on reboot.</description>
      <pubDate>Mon, 14 Oct 2002 17:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825500#M87490</guid>
      <dc:creator>Eric Hess</dc:creator>
      <dc:date>2002-10-14T17:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825501#M87491</link>
      <description>Thanks,&lt;BR /&gt;&lt;BR /&gt;    almost missed those 0's!&lt;BR /&gt;&lt;BR /&gt;    Tom</description>
      <pubDate>Mon, 14 Oct 2002 17:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825501#M87491</guid>
      <dc:creator>Tom_131</dc:creator>
      <dc:date>2002-10-14T17:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825502#M87492</link>
      <description>The command syntax are all wrong. Why don't you do this instead. I'm guessing your vg00 is mirrored since the allocated PE for lvol4 doubles the current LE. &lt;BR /&gt;Since you got (268*4=1072MB) left in vg00 you can create a "new" LV for /tmp, modify /etc/fstab and after you reboot your machine you can delete the "old" LV (ie lvol4).&lt;BR /&gt;# lvcreate -L 1000 -n lvol5 -m 1 /dev/vg00&lt;BR /&gt;==&amp;gt; Assuming lvol5 is not used yet.&lt;BR /&gt;# newfs -F vxfs /dev/vg00/rlvol5&lt;BR /&gt;# vi /etc/fstab&lt;BR /&gt;==&amp;gt; Replace the "old" /tmp entry marked as lvol4 with lvol5.&lt;BR /&gt;# /etc/shutdown -r -y 0&lt;BR /&gt;After the system comes up you'll have the new LV (ie lvol5) mounted onto /tmp. Now remove the old LV (ie lvol4)&lt;BR /&gt;# lvremove /dev/vg00/lvol4</description>
      <pubDate>Mon, 14 Oct 2002 17:09:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825502#M87492</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-10-14T17:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825503#M87493</link>
      <description>Hi after lvremove , you can do this :&lt;BR /&gt;#lvcreate -L 1000 -n lvol04 /dev/vg00 /dev/dsk/c1t6d0 .&lt;BR /&gt;#lvextend -m 1 /dev/vg00/lvol04 /dev/dsk/c2t6d0&lt;BR /&gt;# newfs -F vxfs /dev/vg00/rlvol04 &lt;BR /&gt;&lt;BR /&gt;YOu cna specify other option like block size etc . with -o option wiht newfs . DO a man newfs_vxfs to get more information .&lt;BR /&gt;&lt;BR /&gt;Rest of the stuff are fine .</description>
      <pubDate>Mon, 14 Oct 2002 17:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825503#M87493</guid>
      <dc:creator>Ashwani Kashyap</dc:creator>
      <dc:date>2002-10-14T17:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825504#M87494</link>
      <description>This has all been great help but one thing I have seen has confused me.&lt;BR /&gt;&lt;BR /&gt;   Do I have to extend the volume or leave it after I create it?&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 1000 -n lvol9 -m 1 /dev/vg00 &lt;BR /&gt; newfs -F vxfs /dev/vg00/rlvol9&lt;BR /&gt; vi the /etc/fstab&lt;BR /&gt; reboot&lt;BR /&gt; lvremove /dev/vg00/lvol4 &lt;BR /&gt;&lt;BR /&gt;   Thanks,&lt;BR /&gt;    Tom</description>
      <pubDate>Mon, 14 Oct 2002 17:17:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825504#M87494</guid>
      <dc:creator>Tom_131</dc:creator>
      <dc:date>2002-10-14T17:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825505#M87495</link>
      <description>no reboot needed when creating logical volumes.  Also, if you use the -m option to mirror with lvcreate, then make sure and use the -s option with y to make sure the mirroring is on separate physical disks.  You don't want a mirror on the same disk :-)&lt;BR /&gt;&lt;BR /&gt;the basic order of commands for removing and recreating:&lt;BR /&gt;&lt;BR /&gt;umount&lt;BR /&gt;lvremove&lt;BR /&gt;lvcreate&lt;BR /&gt;newfs&lt;BR /&gt;update /etc/fstab&lt;BR /&gt;mount&lt;BR /&gt;&lt;BR /&gt;the newfs command after an lvcreate will configure the file system using all space in the logical volume.. no need to extend at all.  And since you have already mirrored with your lvcreate command, you have no need for the lvextend command here&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Mon, 14 Oct 2002 17:20:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825505#M87495</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-14T17:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: create new desk help, please.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825506#M87496</link>
      <description>Thanks, Ted!</description>
      <pubDate>Mon, 14 Oct 2002 17:29:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-desk-help-please/m-p/2825506#M87496</guid>
      <dc:creator>Tom_131</dc:creator>
      <dc:date>2002-10-14T17:29:00Z</dc:date>
    </item>
  </channel>
</rss>

