<?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: LVM presented disk SPLIT among VM's in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-presented-disk-split-among-vm-s/m-p/4745989#M548749</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Your commands above will fail because you cannot allocate the same disk device to multiple VM's (unless they have been marked as SHARE=YES, but this would not suite what you're after anyway).&lt;BR /&gt;The best way to split a single disk up between multiple VM's is to create a volume group in LVM with disk13 &amp;amp; 15 and then create 6 logical volumes. You can then allocate these logical volumes as disks to your VM's&lt;BR /&gt;&lt;BR /&gt;The example below will allocate 2 x 20Gb 'disks' to each of your 3 VM's:&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/rdisk/disk13&lt;BR /&gt;pvcreate /dev/rdisk/disk15&lt;BR /&gt;vgcreate /dev/vmvg /dev/disk/disk13 /dev/disk/disk15&lt;BR /&gt;lvcreate -L 20480 /dev/vmvg (run 6 times)&lt;BR /&gt;&lt;BR /&gt;hpvmcreate -P DB01VM -O HPUX -e 10 -r 10G -a network:avio_lan::vswitch:vs01 -a network:avio_lan::vswitch:vs02 -a disk:avio_stor::lv:/dev/vmvg/rlvol1 -a disk:avio_stor::lv:/dev/vmvg/rlvol2&lt;BR /&gt;&lt;BR /&gt;hpvmcreate -P DB02VM -O HPUX -e 10 -r 10G -a network:avio_lan::vswitch:vs01 -a network:avio_lan::vswitch:vs02 -a disk:avio_stor::lv:/dev/vmvg/rlvol3 -a disk:avio_stor::lv:/dev/vmvg/rlvol4&lt;BR /&gt;&lt;BR /&gt;hpvmcreate -P DB03VM -O HPUX -e 10 -r 10G -a network:avio_lan::vswitch:vs01 -a network:avio_lan::vswitch:vs02 -a disk:avio_stor::lv:/dev/vmvg/rlvol5 -a disk:avio_stor::lv:/dev/vmvg/rlvol6&lt;BR /&gt;&lt;BR /&gt;You will get better IO performance on your VM's using whole disks rather than LV's but if you only have 2 disks to play with between your VM's then this is probably your best choice.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Richard</description>
    <pubDate>Mon, 31 Jan 2011 09:12:32 GMT</pubDate>
    <dc:creator>Richard Hepworth</dc:creator>
    <dc:date>2011-01-31T09:12:32Z</dc:date>
    <item>
      <title>LVM presented disk SPLIT among VM's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-presented-disk-split-among-vm-s/m-p/4745988#M548748</link>
      <description>Not sure if I am trying to do the right approach.&lt;BR /&gt;&lt;BR /&gt;I would like to take the following 2 drives and split them on the host to a couple of VM's for their OS and data drives.&lt;BR /&gt;&lt;BR /&gt;# ioscan -fnNC disk&lt;BR /&gt;Class     I  H/W Path  Driver S/W State   H/W Type     Description&lt;BR /&gt;===================================================================&lt;BR /&gt;disk      1  64000/0xfa00/0x0  esdisk   CLAIMED     DEVICE       HP      IR Volume&lt;BR /&gt;                      /dev/disk/disk1      /dev/disk/disk1_p2   /dev/rdisk/disk1     /dev/rdisk/disk1_p2&lt;BR /&gt;                      /dev/disk/disk1_p1   /dev/disk/disk1_p3   /dev/rdisk/disk1_p1  /dev/rdisk/disk1_p3&lt;BR /&gt;disk     13  64000/0xfa00/0x9  esdisk   CLAIMED     DEVICE       DGC     AX4-5WDR10&lt;BR /&gt;                      /dev/disk/disk13   /dev/rdisk/disk13&lt;BR /&gt;disk     15  64000/0xfa00/0xb  esdisk   CLAIMED     DEVICE       DGC     AX4-5WDR5&lt;BR /&gt;                      /dev/disk/disk15   /dev/rdisk/disk15&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;Disk 1 is my host and i am not touching it.&lt;BR /&gt;&lt;BR /&gt;disk 13 is my DB drive I would like to split in 3 pieces so that the only thing the EMC iSCSI array knows is its just one allocation.&lt;BR /&gt;&lt;BR /&gt;disk 15 is my OS drive I would like split in 3 pieces as well. It is also iSCSI EMC.&lt;BR /&gt;&lt;BR /&gt;Each of these pieces is going to a new virtual machine.&lt;BR /&gt;&lt;BR /&gt;The cmd line build is as follows:&lt;BR /&gt;(i have not run the DB02VM or DB03VM yet)&lt;BR /&gt;&lt;BR /&gt;hpvmcreate -P DB01VM -O HPUX -e 10 -r 10G -a network:avio_lan::vswitch:vs01 -a network:avio_lan::vswitch:vs02 -a disk:avio_stor::disk:/dev/rdisk/disk15 -a disk:avio_stor::disk:/dev/rdisk/disk13&lt;BR /&gt;&lt;BR /&gt;hpvmcreate -P DB02VM -O HPUX -e 10 -r 10G -a network:avio_lan::vswitch:vs01 -a network:avio_lan::vswitch:vs02 -a disk:avio_stor::disk:/dev/rdisk/disk15 -a disk:avio_stor::disk:/dev/rdisk/disk13&lt;BR /&gt;&lt;BR /&gt;hpvmcreate -P DB03VM -O HPUX -e 10 -r 10G -a network:avio_lan::vswitch:vs01 -a network:avio_lan::vswitch:vs02 -a disk:avio_stor::disk:/dev/rdisk/disk15 -a disk:avio_stor::disk:/dev/rdisk/disk13&lt;BR /&gt;&lt;BR /&gt;I think I am missing a piece in there that actually divides up the disk15 and disk 13.&lt;BR /&gt;&lt;BR /&gt;Need a little command line help thanks.&lt;BR /&gt;&lt;BR /&gt;This to me seems like a mess waiting to happen.&lt;BR /&gt;&lt;BR /&gt;Here is an output&lt;BR /&gt;&lt;BR /&gt;# hpvmdevmgmt -l all&lt;BR /&gt;# HP Virtual Machine Management Database&lt;BR /&gt;# Created 01/30/11 18:36:58 by user root&lt;BR /&gt;# Version 4.20.5&lt;BR /&gt;#&lt;BR /&gt;# This file must not be modified by hand.&lt;BR /&gt;#&lt;BR /&gt;HPVM MANAGEMENT_DB START&lt;BR /&gt;DB01VM:CONFIG=server::WWID_NULL&lt;BR /&gt;/etc:CONFIG=rdev,EXIST=YES,DEVTYPE=DIRECTORY,SHARE=NO,RECURSIVE=FS::HPVM_DIR_STATID_4_1073741827&lt;BR /&gt;/stand:CONFIG=rdev,EXIST=YES,DEVTYPE=DIRECTORY,SHARE=NO,RECURSIVE=FS::HPVM_DIR_STATID_2_1073741825&lt;BR /&gt;/dev/vg00/rlvol1:CONFIG=rdev,EXIST=YES,DEVTYPE=LV,SHARE=NO,AUTORDEV=YES::HPVM_LVOL_TYPE1_0x01.0x00.0x03.0x600508e0000000009178c6e4adc73805$$1$$/dev/vg00/rlvol1&lt;BR /&gt;/dev/vg00/rlvol2:CONFIG=rdev,EXIST=YES,DEVTYPE=LV,SHARE=NO,AUTORDEV=YES::HPVM_LVOL_TYPE1_0x01.0x00.0x03.0x600508e0000000009178c6e4adc73805$$2$$/dev/vg00/rlvol2&lt;BR /&gt;/dev/vg00/rlvol3:CONFIG=rdev,EXIST=YES,DEVTYPE=LV,SHARE=NO,AUTORDEV=YES::HPVM_LVOL_TYPE1_0x01.0x00.0x03.0x600508e0000000009178c6e4adc73805$$3$$/dev/vg00/rlvol3&lt;BR /&gt;/dev/vg00/rlvol4:CONFIG=rdev,EXIST=YES,DEVTYPE=LV,SHARE=NO,AUTORDEV=YES::HPVM_LVOL_TYPE1_0x01.0x00.0x03.0x600508e0000000009178c6e4adc73805$$4$$/dev/vg00/rlvol4&lt;BR /&gt;/dev/vg00/rlvol5:CONFIG=rdev,EXIST=YES,DEVTYPE=LV,SHARE=NO,AUTORDEV=YES::HPVM_LVOL_TYPE1_0x01.0x00.0x03.0x600508e0000000009178c6e4adc73805$$5$$/dev/vg00/rlvol5&lt;BR /&gt;/dev/vg00/rlvol6:CONFIG=rdev,EXIST=YES,DEVTYPE=LV,SHARE=NO,AUTORDEV=YES::HPVM_LVOL_TYPE1_0x01.0x00.0x03.0x600508e0000000009178c6e4adc73805$$6$$/dev/vg00/rlvol6&lt;BR /&gt;/dev/vg00/rlvol7:CONFIG=rdev,EXIST=YES,DEVTYPE=LV,SHARE=NO,AUTORDEV=YES::HPVM_LVOL_TYPE1_0x01.0x00.0x03.0x600508e0000000009178c6e4adc73805$$7$$/dev/vg00/rlvol7&lt;BR /&gt;/dev/vg00/rlvol8:CONFIG=rdev,EXIST=YES,DEVTYPE=LV,SHARE=NO,AUTORDEV=YES::HPVM_LVOL_TYPE1_0x01.0x00.0x03.0x600508e0000000009178c6e4adc73805$$8$$/dev/vg00/rlvol8&lt;BR /&gt;/dev/rdisk/disk1:CONFIG=rdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO,AUTORDEV=YES::0x01.0x00.0x03.0x600508e0000000009178c6e4adc73805&lt;BR /&gt;localnet:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES::WWID_NULL&lt;BR /&gt;lan0:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO:vs01:WWID_NULL&lt;BR /&gt;vs01:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES:DB01VM:WWID_NULL&lt;BR /&gt;lan1:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO:vs02:WWID_NULL&lt;BR /&gt;vs02:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES:DB01VM:WWID_NULL&lt;BR /&gt;lan2:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO:vs03:WWID_NULL&lt;BR /&gt;vs03:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES::WWID_NULL&lt;BR /&gt;/dev/rdisk/disk15:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:DB01VM:0x01.0x00.0x03.0x600601603eb020004e50f1b7d028e011&lt;BR /&gt;/dev/pt/pt1:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:DB01VM:0x01.0x00.0x03.0x60060160048020003c7341fc7718e011&lt;BR /&gt;HPVM MANAGEMENT_DB EOF&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 31 Jan 2011 00:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-presented-disk-split-among-vm-s/m-p/4745988#M548748</guid>
      <dc:creator>TAvery</dc:creator>
      <dc:date>2011-01-31T00:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: LVM presented disk SPLIT among VM's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-presented-disk-split-among-vm-s/m-p/4745989#M548749</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Your commands above will fail because you cannot allocate the same disk device to multiple VM's (unless they have been marked as SHARE=YES, but this would not suite what you're after anyway).&lt;BR /&gt;The best way to split a single disk up between multiple VM's is to create a volume group in LVM with disk13 &amp;amp; 15 and then create 6 logical volumes. You can then allocate these logical volumes as disks to your VM's&lt;BR /&gt;&lt;BR /&gt;The example below will allocate 2 x 20Gb 'disks' to each of your 3 VM's:&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/rdisk/disk13&lt;BR /&gt;pvcreate /dev/rdisk/disk15&lt;BR /&gt;vgcreate /dev/vmvg /dev/disk/disk13 /dev/disk/disk15&lt;BR /&gt;lvcreate -L 20480 /dev/vmvg (run 6 times)&lt;BR /&gt;&lt;BR /&gt;hpvmcreate -P DB01VM -O HPUX -e 10 -r 10G -a network:avio_lan::vswitch:vs01 -a network:avio_lan::vswitch:vs02 -a disk:avio_stor::lv:/dev/vmvg/rlvol1 -a disk:avio_stor::lv:/dev/vmvg/rlvol2&lt;BR /&gt;&lt;BR /&gt;hpvmcreate -P DB02VM -O HPUX -e 10 -r 10G -a network:avio_lan::vswitch:vs01 -a network:avio_lan::vswitch:vs02 -a disk:avio_stor::lv:/dev/vmvg/rlvol3 -a disk:avio_stor::lv:/dev/vmvg/rlvol4&lt;BR /&gt;&lt;BR /&gt;hpvmcreate -P DB03VM -O HPUX -e 10 -r 10G -a network:avio_lan::vswitch:vs01 -a network:avio_lan::vswitch:vs02 -a disk:avio_stor::lv:/dev/vmvg/rlvol5 -a disk:avio_stor::lv:/dev/vmvg/rlvol6&lt;BR /&gt;&lt;BR /&gt;You will get better IO performance on your VM's using whole disks rather than LV's but if you only have 2 disks to play with between your VM's then this is probably your best choice.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Mon, 31 Jan 2011 09:12:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-presented-disk-split-among-vm-s/m-p/4745989#M548749</guid>
      <dc:creator>Richard Hepworth</dc:creator>
      <dc:date>2011-01-31T09:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: LVM presented disk SPLIT among VM's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-presented-disk-split-among-vm-s/m-p/4745990#M548750</link>
      <description>Thanks for the help with the command line.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We have decided to delete all the drives and not try to split the iscsi presentations rather carve out drives individually on the EMC Array. If we have to move between blades with a VM that would seem an easier alternative.</description>
      <pubDate>Mon, 31 Jan 2011 23:15:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-presented-disk-split-among-vm-s/m-p/4745990#M548750</guid>
      <dc:creator>TAvery</dc:creator>
      <dc:date>2011-01-31T23:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: LVM presented disk SPLIT among VM's</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-presented-disk-split-among-vm-s/m-p/4745991#M548751</link>
      <description>Logical volumes work very well as disks for integrity VM.  That way you allocate your disks in appropriate luns to the volume group and then create logical volumes based on the size of the boot disk that a VM needs.&lt;BR /&gt;&lt;BR /&gt;IF you use LVs for Vms you cannot present the same LV acrosss multiple systems for migration.  That is the only limitation.&lt;BR /&gt;&lt;BR /&gt;IF you were not going to use migration (online or offline) LVM or vxvm provides you flexability to define the sizes of disks to be any size you need.&lt;BR /&gt;&lt;BR /&gt;The shared device should only be used for disks between VMs that are for volume groups of a serviceguard package either between VMs on the same host or vms on different hosts.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2011 23:39:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-presented-disk-split-among-vm-s/m-p/4745991#M548751</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2011-01-31T23:39:45Z</dc:date>
    </item>
  </channel>
</rss>

