<?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: icrease size of a file to virtual guest in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185395#M527744</link>
    <description>Bonjour,&lt;BR /&gt;&lt;BR /&gt;As far as I know there is no option included in hpvmdevmgmt to increase the size of a file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IMHO, I think you can do it in a classical way with dd. For example, if working with block size = 1 Mo and you want to add 5 GB, something like :&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/virt/files/db01x bs=1024k seek=20480 count=5120&lt;BR /&gt;&lt;BR /&gt;will add 5 Go (count=5120 blocks of 1024 Ko each) after the first 20 Go (seek=20480 blocks of 1024 Ko)&lt;BR /&gt;&lt;BR /&gt;You can also have something more clever and faster :&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/virt/files/db01x bs=1024k seek=25599 count=1&lt;BR /&gt;&lt;BR /&gt;It will add just one block of 1 Mo at position 25 Go - 1 Mo (seek=25599 blocks). To have a file of 25 Go, there is no need to populate all blocks in the file. The latest one is sufficient.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And I think you will have to stop and restart the VM so that it take care of the new size.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Of course be careful !!! Bad computation of numbers of blocks and you will loose all the datas :-( Have some tests before ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, how are you going to handle this new space ? In the VM, how do you use the virtual disk ? &lt;BR /&gt;&lt;BR /&gt;- Through LVM ? So you will have to issue some "vgmodify" commands (size of the disk, maximum physical extends).&lt;BR /&gt;- As a raw device ? You will have to notice Oracle to resize.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, if you use LVM at VM Guest side, you should consider Torsten's answer and work with LVM : add a new virtual disk file to the VM, add it to the VG and extend the size of the LV&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Eric</description>
    <pubDate>Thu, 24 Apr 2008 07:12:10 GMT</pubDate>
    <dc:creator>Eric SAUBIGNAC</dc:creator>
    <dc:date>2008-04-24T07:12:10Z</dc:date>
    <item>
      <title>icrease size of a file to virtual guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185393#M527742</link>
      <description>Hello, I have got a question, we use a VMguest which has a disk defined as file, created by&lt;BR /&gt;hpvmdevmgmt -S 20G /virt/files/db01x&lt;BR /&gt;but the database on system is growing very fast, is there any possibility how to increase file size or there is a need to create another file and connect it to the system?&lt;BR /&gt;br Thomas</description>
      <pubDate>Wed, 23 Apr 2008 13:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185393#M527742</guid>
      <dc:creator>ting stong</dc:creator>
      <dc:date>2008-04-23T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: icrease size of a file to virtual guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185394#M527743</link>
      <description>No idea if you can "grow" this file, but I would create another file (or LVOL), assign it to the guest and use the guests LVM to extend the VG and the LVOLs.</description>
      <pubDate>Wed, 23 Apr 2008 14:42:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185394#M527743</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-04-23T14:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: icrease size of a file to virtual guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185395#M527744</link>
      <description>Bonjour,&lt;BR /&gt;&lt;BR /&gt;As far as I know there is no option included in hpvmdevmgmt to increase the size of a file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IMHO, I think you can do it in a classical way with dd. For example, if working with block size = 1 Mo and you want to add 5 GB, something like :&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/virt/files/db01x bs=1024k seek=20480 count=5120&lt;BR /&gt;&lt;BR /&gt;will add 5 Go (count=5120 blocks of 1024 Ko each) after the first 20 Go (seek=20480 blocks of 1024 Ko)&lt;BR /&gt;&lt;BR /&gt;You can also have something more clever and faster :&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/virt/files/db01x bs=1024k seek=25599 count=1&lt;BR /&gt;&lt;BR /&gt;It will add just one block of 1 Mo at position 25 Go - 1 Mo (seek=25599 blocks). To have a file of 25 Go, there is no need to populate all blocks in the file. The latest one is sufficient.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And I think you will have to stop and restart the VM so that it take care of the new size.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Of course be careful !!! Bad computation of numbers of blocks and you will loose all the datas :-( Have some tests before ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, how are you going to handle this new space ? In the VM, how do you use the virtual disk ? &lt;BR /&gt;&lt;BR /&gt;- Through LVM ? So you will have to issue some "vgmodify" commands (size of the disk, maximum physical extends).&lt;BR /&gt;- As a raw device ? You will have to notice Oracle to resize.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, if you use LVM at VM Guest side, you should consider Torsten's answer and work with LVM : add a new virtual disk file to the VM, add it to the VG and extend the size of the LV&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Thu, 24 Apr 2008 07:12:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185395#M527744</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-04-24T07:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: icrease size of a file to virtual guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185396#M527745</link>
      <description>nice, really nice thx</description>
      <pubDate>Thu, 24 Apr 2008 07:19:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185396#M527745</guid>
      <dc:creator>ting stong</dc:creator>
      <dc:date>2008-04-24T07:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: icrease size of a file to virtual guest</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185397#M527746</link>
      <description>Out of interest, what is the guest OS you are using?&lt;BR /&gt;I ask this because I am wondering whether DRD might not be useful here ( I have not had the chance to try this)&lt;BR /&gt;Use hpvmdevmgmt to create a NEW larger "disc" file, add this to the VM, then on the VM guest OS ( assuming ti is HP-UX and you have DRD installed on it, use DRD to clone the vg00 "disc" to the new larger "disc", then activate the clone, i.e. boot from it.&lt;BR /&gt;&lt;BR /&gt;As I say, I have not tried this but I believe it will work, as DRD can be used to clone VM guest images to be used by other guests.&lt;BR /&gt;see &lt;A href="http://docs.hp.com/en/5992-4803/5992-4803.pdf" target="_blank"&gt;http://docs.hp.com/en/5992-4803/5992-4803.pdf&lt;/A&gt;</description>
      <pubDate>Thu, 24 Apr 2008 07:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/icrease-size-of-a-file-to-virtual-guest/m-p/4185397#M527746</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2008-04-24T07:27:40Z</dc:date>
    </item>
  </channel>
</rss>

