<?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: About Physical volume groups.... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808508#M267939</link>
    <description>q) How to create a Physical Volume Group (PVG)&lt;BR /&gt;&lt;BR /&gt;create a file named /etc/lvmpvg with the following syntax:&lt;BR /&gt;           VG  vg_name&lt;BR /&gt;           PVG pvg_name&lt;BR /&gt;           pv_path&lt;BR /&gt;              ...&lt;BR /&gt;           PVG pvg_name&lt;BR /&gt;           pv_path&lt;BR /&gt;              ...&lt;BR /&gt;           VG  vg_name&lt;BR /&gt;           PVG pvg_name&lt;BR /&gt;           pv_path&lt;BR /&gt;              ...&lt;BR /&gt;&lt;BR /&gt;       For example, to use two PVGs "pvgwp1data" and "pvgwp1data_m" in vg01 with  and c5t8d0,c5t9d0,c5t10d0 and c5t11d0 in one PVG (pvgwp1data)&lt;BR /&gt;&lt;BR /&gt;c7t1d0,c7t2d0,c7t3d0 and c7t4d0 in the other PVG (pvgwp1data_m) then&lt;BR /&gt;       contents of the file (/etc/lvmpvg) should be:&lt;BR /&gt;&lt;BR /&gt;           VG /dev/vg01&lt;BR /&gt;           PVG pvgwp1data&lt;BR /&gt;           PV Name /dev/dsk/c5t8d0&lt;BR /&gt;           PV Name /dev/dsk/c5t9d0&lt;BR /&gt;           PV Name /dev/dsk/c5t10d0&lt;BR /&gt;           PV Name /dev/dsk/c5t11d0&lt;BR /&gt;&lt;BR /&gt;           PVG pvgwp1data_m&lt;BR /&gt;           PV Name /dev/dsk/c7t1d0&lt;BR /&gt;           PV Name /dev/dsk/c7t2d0&lt;BR /&gt;           PV Name /dev/dsk/c7t3d0&lt;BR /&gt;           PV Name /dev/dsk/c7t4d0&lt;BR /&gt;           &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;q) How to use PVG to mirror logical volumes on specific physical volumes.&lt;BR /&gt;&lt;BR /&gt;      Note: in the following text, the volume group will be vg01 and the      logical volume will be name lvol_data &lt;BR /&gt;&lt;BR /&gt;      After creating the /etc/lvmpvg file as describe above, each copy of your mirror could be force on different PVG. &lt;BR /&gt;&lt;BR /&gt;To achieve this if the logical volume is already created but not mirrored yet, use the following command:&lt;BR /&gt;&lt;BR /&gt;lvchange -s g /dev/vg01/lvol_data&lt;BR /&gt;lvextend -m 1 /dev/vg01/lvol_data&lt;BR /&gt;&lt;BR /&gt;If the logical volume is not created yet:&lt;BR /&gt;lvcreate -s g -m 1 -n lvol_data -L 200 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;-Amit&lt;BR /&gt;</description>
    <pubDate>Tue, 20 Jun 2006 03:42:24 GMT</pubDate>
    <dc:creator>Chauhan Amit</dc:creator>
    <dc:date>2006-06-20T03:42:24Z</dc:date>
    <item>
      <title>About Physical volume groups....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808502#M267933</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a VG configuration with these Physical Volume Groups :&lt;BR /&gt;&lt;BR /&gt;.....&lt;BR /&gt;   --- Physical volume groups ---&lt;BR /&gt;   PVG Name                    pvgwp1data&lt;BR /&gt;   PV Name                     /dev/dsk/c5t8d0&lt;BR /&gt;   PV Name                     /dev/dsk/c5t9d0&lt;BR /&gt;   PV Name                     /dev/dsk/c5t10d0&lt;BR /&gt;   PV Name                     /dev/dsk/c5t11d0&lt;BR /&gt;&lt;BR /&gt;   PVG Name                    pvgwp1data_m&lt;BR /&gt;   PV Name                     /dev/dsk/c7t1d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t2d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t3d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t4d0&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;I would like pull out physically the 4 disks c5tXd0, how can I remove physical volume group "pvgwp1data" ?&lt;BR /&gt;I'm not familiar with this kind of configuration.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Tue, 20 Jun 2006 03:01:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808502#M267933</guid>
      <dc:creator>OLIVA_1</dc:creator>
      <dc:date>2006-06-20T03:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: About Physical volume groups....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808503#M267934</link>
      <description>Shalom OLIVA,&lt;BR /&gt;&lt;BR /&gt;vgexport pvgwp1data&lt;BR /&gt;&lt;BR /&gt;You might wish to remove the logical volumes in it, but that is not a requirement.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 Jun 2006 03:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808503#M267934</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-06-20T03:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: About Physical volume groups....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808504#M267935</link>
      <description>You need to do a vgreduce on the disks c5tXd0 and then emove '/etc/lvmpvg' file&lt;BR /&gt;so that system doesn't use PVG anymore.&lt;BR /&gt;&lt;BR /&gt;-Amit</description>
      <pubDate>Tue, 20 Jun 2006 03:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808504#M267935</guid>
      <dc:creator>Chauhan Amit</dc:creator>
      <dc:date>2006-06-20T03:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: About Physical volume groups....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808505#M267936</link>
      <description>For my information someone can explain me how can I create 2 physical volume groups with X disks each and with the first volume group mirrored on the second one ?&lt;BR /&gt;&lt;BR /&gt;What command must be used to create this kind of configuration : &lt;BR /&gt;.....&lt;BR /&gt;--- Physical volume groups ---&lt;BR /&gt;PVG Name pvgwp1data&lt;BR /&gt;PV Name /dev/dsk/c5t8d0&lt;BR /&gt;PV Name /dev/dsk/c5t9d0&lt;BR /&gt;PV Name /dev/dsk/c5t10d0&lt;BR /&gt;PV Name /dev/dsk/c5t11d0&lt;BR /&gt;&lt;BR /&gt;PVG Name pvgwp1data_m&lt;BR /&gt;PV Name /dev/dsk/c7t1d0&lt;BR /&gt;PV Name /dev/dsk/c7t2d0&lt;BR /&gt;PV Name /dev/dsk/c7t3d0&lt;BR /&gt;PV Name /dev/dsk/c7t4d0&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;Ususally I mirror LV with this command :&lt;BR /&gt;ï ­ lvextend -m 1 /dev/vg_name/lvol_data /dev/dsk/device_2 &lt;BR /&gt;&lt;BR /&gt;Thanks...</description>
      <pubDate>Tue, 20 Jun 2006 03:26:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808505#M267936</guid>
      <dc:creator>OLIVA_1</dc:creator>
      <dc:date>2006-06-20T03:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: About Physical volume groups....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808506#M267937</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would suggest you to run the following script&lt;BR /&gt;&lt;BR /&gt;pvdisplay -v /dev/dsk/c5t8d0 /dev/dsk/c5t9d0 /dev/dsk/c5t10d0 /dev/dsk/c5t11d0 | awk '/Distribution of physical volume/,/Physical extents/' |  egrep -v 'Distribution|Physical|LV Name|^$'| awk '{print $1}' | while read lvname&lt;BR /&gt; do&lt;BR /&gt;  if [[ $(lvdisplay -v $lvname | grep -i Mirror | awk '{print $NF}') = "0" ]]&lt;BR /&gt;   then&lt;BR /&gt;      echo $lvname is not mirrored&lt;BR /&gt;   else&lt;BR /&gt;      if [[ $(lvdisplay -v $lvname | grep -c stale) != "0" ]]&lt;BR /&gt;       then&lt;BR /&gt;          echo $lvname has stale extents&lt;BR /&gt;      fi&lt;BR /&gt;  fi&lt;BR /&gt; done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;to check if all the volumes on the disks you wish to remove are mirrored and dont have any stale extents.&lt;BR /&gt;If you are satisfied then you will have to reduce the mirrors of the logical volumes from the c5 disks using&lt;BR /&gt;lvreduce -m 0 lvname pv_path&lt;BR /&gt;for all volumes&lt;BR /&gt;Then remove the disks from the VG&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jun 2006 03:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808506#M267937</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-06-20T03:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: About Physical volume groups....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808507#M267938</link>
      <description>The pvgs must have been created like this&lt;BR /&gt;vgcreate  -g pvgwp1data /dev/vgname /dev/dsk/c5t8d0 /dev/dsk/c5t9d0 /dev/dsk/c5t10d0 /dev/dsk/c5t11d0&lt;BR /&gt;vgextend -g pvgwp1data_m /dev/vgname /dev/dsk/c7t1d0 /dev/dsk/c7t2d0 /dev/dsk/c7t3d0 /dev/dsk/c7t4d0 &lt;BR /&gt;&lt;BR /&gt;Then when creating volumes you can do&lt;BR /&gt;lvcreate -m 1 -n volname -L size_in_mb -s g /dev/vgname&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Tue, 20 Jun 2006 03:40:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808507#M267938</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-06-20T03:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: About Physical volume groups....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808508#M267939</link>
      <description>q) How to create a Physical Volume Group (PVG)&lt;BR /&gt;&lt;BR /&gt;create a file named /etc/lvmpvg with the following syntax:&lt;BR /&gt;           VG  vg_name&lt;BR /&gt;           PVG pvg_name&lt;BR /&gt;           pv_path&lt;BR /&gt;              ...&lt;BR /&gt;           PVG pvg_name&lt;BR /&gt;           pv_path&lt;BR /&gt;              ...&lt;BR /&gt;           VG  vg_name&lt;BR /&gt;           PVG pvg_name&lt;BR /&gt;           pv_path&lt;BR /&gt;              ...&lt;BR /&gt;&lt;BR /&gt;       For example, to use two PVGs "pvgwp1data" and "pvgwp1data_m" in vg01 with  and c5t8d0,c5t9d0,c5t10d0 and c5t11d0 in one PVG (pvgwp1data)&lt;BR /&gt;&lt;BR /&gt;c7t1d0,c7t2d0,c7t3d0 and c7t4d0 in the other PVG (pvgwp1data_m) then&lt;BR /&gt;       contents of the file (/etc/lvmpvg) should be:&lt;BR /&gt;&lt;BR /&gt;           VG /dev/vg01&lt;BR /&gt;           PVG pvgwp1data&lt;BR /&gt;           PV Name /dev/dsk/c5t8d0&lt;BR /&gt;           PV Name /dev/dsk/c5t9d0&lt;BR /&gt;           PV Name /dev/dsk/c5t10d0&lt;BR /&gt;           PV Name /dev/dsk/c5t11d0&lt;BR /&gt;&lt;BR /&gt;           PVG pvgwp1data_m&lt;BR /&gt;           PV Name /dev/dsk/c7t1d0&lt;BR /&gt;           PV Name /dev/dsk/c7t2d0&lt;BR /&gt;           PV Name /dev/dsk/c7t3d0&lt;BR /&gt;           PV Name /dev/dsk/c7t4d0&lt;BR /&gt;           &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;q) How to use PVG to mirror logical volumes on specific physical volumes.&lt;BR /&gt;&lt;BR /&gt;      Note: in the following text, the volume group will be vg01 and the      logical volume will be name lvol_data &lt;BR /&gt;&lt;BR /&gt;      After creating the /etc/lvmpvg file as describe above, each copy of your mirror could be force on different PVG. &lt;BR /&gt;&lt;BR /&gt;To achieve this if the logical volume is already created but not mirrored yet, use the following command:&lt;BR /&gt;&lt;BR /&gt;lvchange -s g /dev/vg01/lvol_data&lt;BR /&gt;lvextend -m 1 /dev/vg01/lvol_data&lt;BR /&gt;&lt;BR /&gt;If the logical volume is not created yet:&lt;BR /&gt;lvcreate -s g -m 1 -n lvol_data -L 200 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;-Amit&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jun 2006 03:42:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808508#M267939</guid>
      <dc:creator>Chauhan Amit</dc:creator>
      <dc:date>2006-06-20T03:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: About Physical volume groups....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808509#M267940</link>
      <description>Systems with mirrored logical volumes often use multiple SCSI controllers to be able to work on in case of hardware failure. To secure that the mirrored extents of a logical volume can always be established on a disk not connected to the same card, PVGs - Physical Volume Groups can be created: &lt;BR /&gt;    # vgcreate -g [PVG name] vgXY /dev/dsk/cCtTdA /dev/dsk/cCtTdB ...&lt;BR /&gt;&lt;BR /&gt;All stated physical volumes are part of the new PVG. &lt;BR /&gt;&lt;BR /&gt;Further PVGs for an existing volume group can be created or extended by using the vgextend command. &lt;BR /&gt;&lt;BR /&gt;The information of the Physical Volume Group is stored in the ASCII file /etc/lvmpvg. This file can also be created or extended manually, instead of using the vgcreate and vgextend commands. lvmpvg stores the volume-group information for all of the physical volume groups in the system. The information is stored in a hierarchical format. First, it starts with a volume group under which multiple physical volume groups can exist. Under each physical volume group, a list of physical volumes can be specified. There must be at least one physical volume group in each volume group that appears in this file. The physical-volume-group name must be unique within the corresponding volume group, although it is permissible to use a common physical volume group name across different volume groups. There can be as many volume groups in this file as there are in the system.&lt;BR /&gt;&lt;BR /&gt;At following example of /etc/lvmpvg, four hard disks are connected to two SCSI controllers.&lt;BR /&gt;&lt;BR /&gt;    # cat /etc/lvmpvg&lt;BR /&gt;&lt;BR /&gt;    VG /dev/vg01&lt;BR /&gt;    PVG scsi0&lt;BR /&gt;    /dev/dsk/c0t6d0&lt;BR /&gt;    /dev/dsk/c0t5d0&lt;BR /&gt;    PVG scsi1&lt;BR /&gt;    /dev/dsk/c1t2d0&lt;BR /&gt;    /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;The volume group shows up as follows:&lt;BR /&gt;&lt;BR /&gt;    # vgdisplay -v /dev/vg01&lt;BR /&gt;&lt;BR /&gt;    ...&lt;BR /&gt;    --- Physical volume groups ---&lt;BR /&gt;    PVG Name scsi0&lt;BR /&gt;    PV Name /dev/dsk/c0t6d0&lt;BR /&gt;    PV Name /dev/dsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;    PVG Name scsi1&lt;BR /&gt;    PV Name /dev/dsk/c1t1d&lt;BR /&gt;    PV Name /dev/dsk/c1t2d0&lt;BR /&gt;&lt;BR /&gt;The allocation policy of the logical volumes has to be set to PVG-strict , so that the extents are allocated automatically to a disk within the other PVG when mirroring:&lt;BR /&gt;&lt;BR /&gt;    # lvchange -s g /dev/vg01/lvol4&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jun 2006 03:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808509#M267940</guid>
      <dc:creator>Mridul Shrivastava</dc:creator>
      <dc:date>2006-06-20T03:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: About Physical volume groups....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808510#M267941</link>
      <description>Would like to add few more things to earlier post:&lt;BR /&gt;The creation of PVGs does not restrict creation of logical volume mirrors on&lt;BR /&gt;particular disks.  If a logical volume is created as PVG-strict, mirrors of&lt;BR /&gt;the logical volume can be created only on different PVGs.  PVGs increase your&lt;BR /&gt;flexibility by adding one more option, where you can force mirrors to be on&lt;BR /&gt;different physical volume groups.&lt;BR /&gt;&lt;BR /&gt;With just the lvextend command without PVGs, you can force the disks that you&lt;BR /&gt;put your original lvol and its mirror onto.  As long as you know the device&lt;BR /&gt;files for the disks on the different channels, you can force I/O channel&lt;BR /&gt;separation using lvextend without using PVGs.&lt;BR /&gt;&lt;BR /&gt;There is an example of PVGs in the "System Administration Tasks" manual&lt;BR /&gt;(B2355-90051).  Information is in sections of chapter 7 entitled "Should I&lt;BR /&gt;Use I/O Channel Separation?" and "Achieving I/O Channel Separation".&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jun 2006 04:05:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-physical-volume-groups/m-p/3808510#M267941</guid>
      <dc:creator>Mridul Shrivastava</dc:creator>
      <dc:date>2006-06-20T04:05:15Z</dc:date>
    </item>
  </channel>
</rss>

