<?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: lvcreate doubt in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604709#M648170</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it's a two step process:&lt;BR /&gt;first define the LVOL (size will be 0) and then extend the LVOL on the specific disk.&lt;BR /&gt;&lt;BR /&gt;lvcreate -n lvoln /dev/vgxx&lt;BR /&gt;lvextend -L nnn /dev/vgxx/lvoln /dev/dsk/cxtydz&lt;BR /&gt;&lt;BR /&gt;afterwards you can create the filesystem and edit /etc/fstab if required.&lt;BR /&gt;&lt;BR /&gt;good luck,&lt;BR /&gt;Thierry.</description>
    <pubDate>Wed, 31 Oct 2001 13:01:32 GMT</pubDate>
    <dc:creator>Thierry Poels_1</dc:creator>
    <dc:date>2001-10-31T13:01:32Z</dc:date>
    <item>
      <title>lvcreate doubt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604706#M648167</link>
      <description>Hello all.&lt;BR /&gt;&lt;BR /&gt;I??ve a simple doubt about lvcreate.&lt;BR /&gt;I??d like create a lvol in specific disk.&lt;BR /&gt;The correct command to do its follow:&lt;BR /&gt;#lvcreate -l &lt;PE size=""&gt; vgxx /dev/dsk/cxtydz ?&lt;BR /&gt;&lt;BR /&gt;Please, help me. I forget how to do this... &lt;BR /&gt;&lt;BR /&gt;Tkts,&lt;BR /&gt;Valkiria&lt;/PE&gt;</description>
      <pubDate>Wed, 31 Oct 2001 12:48:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604706#M648167</guid>
      <dc:creator>Valkiria Santos</dc:creator>
      <dc:date>2001-10-31T12:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate doubt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604707#M648168</link>
      <description>The way I use lvcreate is to first create the lv&lt;BR /&gt;lvcreate -n lv## /dev/vg##  (create 0 sized LV)&lt;BR /&gt;lvextend -l &amp;lt;# 4MB extents&amp;gt; /dev/vg##/lv## /dev/dsk/cXtXd0 - Make lv's size you want&lt;BR /&gt;&lt;BR /&gt;Don't forget to make the mountpoint and newfs&lt;BR /&gt;mkdir /mntpoint&lt;BR /&gt;&lt;BR /&gt;mkdir /mntpoint&lt;BR /&gt;&lt;BR /&gt;newfs -F vxfs -b &lt;BLKSIZE&gt; /dev/vg##/lvol_&lt;BR /&gt;&lt;BR /&gt;&lt;/BLKSIZE&gt;</description>
      <pubDate>Wed, 31 Oct 2001 12:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604707#M648168</guid>
      <dc:creator>nancy rippey</dc:creator>
      <dc:date>2001-10-31T12:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate doubt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604708#M648169</link>
      <description>Not quite. lvcreate doesn't let you specify a physical disk. If you want all the PEs to go on a particular disk first create the LV:&lt;BR /&gt;&lt;BR /&gt;lvcreate -n lvolname vgname&lt;BR /&gt;&lt;BR /&gt;This creates a LV of 0 size in the volume group.&lt;BR /&gt;Then use lvextend to size the LV and assign the LV to a particular disk:&lt;BR /&gt;&lt;BR /&gt;lvextend -L size /dev/vgname/lvname /dev/dsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;e.g. to create a 200MB logical volume called lvol4 in volumge group vg01 and on disk c1t2d0 do the following:&lt;BR /&gt;&lt;BR /&gt;lvcreate -n lvol4 /dev/vg01&lt;BR /&gt;lvextend -L 200 /dev/vg01/lvol4 /dev/dsk/c1t2d0&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 31 Oct 2001 12:55:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604708#M648169</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2001-10-31T12:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate doubt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604709#M648170</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it's a two step process:&lt;BR /&gt;first define the LVOL (size will be 0) and then extend the LVOL on the specific disk.&lt;BR /&gt;&lt;BR /&gt;lvcreate -n lvoln /dev/vgxx&lt;BR /&gt;lvextend -L nnn /dev/vgxx/lvoln /dev/dsk/cxtydz&lt;BR /&gt;&lt;BR /&gt;afterwards you can create the filesystem and edit /etc/fstab if required.&lt;BR /&gt;&lt;BR /&gt;good luck,&lt;BR /&gt;Thierry.</description>
      <pubDate>Wed, 31 Oct 2001 13:01:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604709#M648170</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-10-31T13:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate doubt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604710#M648171</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;&amp;lt;&lt;I&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;  Before you create an lvol, make sure&lt;BR /&gt;1) About the Size of Lvol which you want to&lt;BR /&gt;   create.&lt;BR /&gt;2) The Name of the Lvol which you want to create&lt;BR /&gt;3)  The VG on which you want to Create it.&lt;BR /&gt;    (optional: and the disk on which you want it.)&lt;BR /&gt;&lt;BR /&gt;4)  Optional:The allocation policy (distributed, striping...). This is not necessary for&lt;BR /&gt;simple creation.&lt;BR /&gt;   &lt;BR /&gt;&amp;gt;&amp;gt;#lvcreate -l &lt;PE size=""&gt;vgxx /dev/dsk/cxtydz ? &lt;BR /&gt;&lt;BR /&gt;    To make it easy, assign size in Mbytes&lt;BR /&gt;by giving -L option&lt;BR /&gt;   You cannot specify the disk name in&lt;BR /&gt;an lvcreate command.  It would need to&lt;BR /&gt;go into lvextend command:  &lt;BR /&gt;  so, the right command would be:&lt;BR /&gt; &lt;BR /&gt;  lvcreate  -n &lt;LVNAME&gt; /dev/vgname&lt;BR /&gt;     (this creates a LV of Zero size)&lt;BR /&gt;  lvextend -L &lt;SIZE in="" mbytes=""&gt; /dev/vgname /dev/dsk/cxtydz&lt;BR /&gt;   (this extends the LV to the specified size)&lt;BR /&gt;  &lt;BR /&gt;But, before you do this, make sure the&lt;BR /&gt;Disk belongs to that volume group, by&lt;BR /&gt;giving the VGDISPLAY command&lt;BR /&gt;vgdisplay -v /dev/vgname    will show what&lt;BR /&gt;disks belong to the VG.&lt;BR /&gt;&lt;BR /&gt;  Also, once you create the LV, if this&lt;BR /&gt;is going to be filesystem, you would need&lt;BR /&gt;to give the newfs command to make it a&lt;BR /&gt;filesystem.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj&lt;/SIZE&gt;&lt;/LVNAME&gt;&lt;/PE&gt;&lt;/I&gt;</description>
      <pubDate>Wed, 31 Oct 2001 13:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604710#M648171</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-10-31T13:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate doubt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604711#M648172</link>
      <description>Thanks for all to solve my doubt... long time without use technical part, only admnistrating cause  blackout like this.&lt;BR /&gt;:-)&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Oct 2001 13:36:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604711#M648172</guid>
      <dc:creator>Valkiria Santos</dc:creator>
      <dc:date>2001-10-31T13:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: lvcreate doubt</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604712#M648173</link>
      <description>Hi Valkiria,&lt;BR /&gt;&lt;BR /&gt;you can do it like this,&lt;BR /&gt;&lt;BR /&gt;lvcreate -n lv_name /dev/vg_name&lt;BR /&gt;lvextend -L lv_size /dev/vg_name/lv_name /dev/dsk/pv_name&lt;BR /&gt;newfs -F vxfs -o largefiles /dev/vg_name/rlv_name&lt;BR /&gt;&lt;BR /&gt;you can also refer to the hp manual "Managing systems and workgroups"&lt;BR /&gt;&lt;BR /&gt;Here is a thread to that manual, Look for the section Managing Disks -&amp;gt; Tasks That You Can Perform Only with HP-UX Commands --&amp;gt; Extending a Logical Volume to a Specific Disk. &lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Oct 2001 16:42:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvcreate-doubt/m-p/2604712#M648173</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-10-31T16:42:05Z</dc:date>
    </item>
  </channel>
</rss>

