<?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: seeking help for mirror disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422612#M626690</link>
    <description>Thanks for your explanation. I don't have access to the machine at the moment. But here is the output before I adjusted the partition (lvol9 is the /u01 I've mentioned while lvol4 is /tmp):&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;VG Write Access             read/write     &lt;BR /&gt;VG Status                   available                 &lt;BR /&gt;Max LV                      255    &lt;BR /&gt;Cur LV                      9      &lt;BR /&gt;Open LV                     9      &lt;BR /&gt;Max PV                      16     &lt;BR /&gt;Cur PV                      2      &lt;BR /&gt;Act PV                      2      &lt;BR /&gt;Max PE per PV               4350         &lt;BR /&gt;VGDA                        4   &lt;BR /&gt;PE Size (Mbytes)            8               &lt;BR /&gt;Total PE                    8680    &lt;BR /&gt;Alloc PE                    8680    &lt;BR /&gt;Free PE                     0       &lt;BR /&gt;Total PVG                   0        &lt;BR /&gt;Total Spare PVs             0              &lt;BR /&gt;Total Spare PVs in use      0                     &lt;BR /&gt;&lt;BR /&gt;   --- Logical volumes ---&lt;BR /&gt;   LV Name                     /dev/vg00/lvol1&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            304             &lt;BR /&gt;   Current LE                  38        &lt;BR /&gt;   Allocated PE                76          &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol2&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            4096            &lt;BR /&gt;   Current LE                  512       &lt;BR /&gt;   Allocated PE                1024        &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol3&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            200             &lt;BR /&gt;   Current LE                  25        &lt;BR /&gt;   Allocated PE                50          &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol4&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            200             &lt;BR /&gt;   Current LE                  25        &lt;BR /&gt;   Allocated PE                50          &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol5&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            24              &lt;BR /&gt;   Current LE                  3         &lt;BR /&gt;   Allocated PE                6           &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol6&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            1840            &lt;BR /&gt;   Current LE                  230       &lt;BR /&gt;   Allocated PE                460         &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol7&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            1880            &lt;BR /&gt;   Current LE                  235       &lt;BR /&gt;   Allocated PE                470         &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol8&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            4600            &lt;BR /&gt;   Current LE                  575       &lt;BR /&gt;   Allocated PE                1150        &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol9&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            43152           &lt;BR /&gt;   Current LE                  5394      &lt;BR /&gt;   Allocated PE                5394        &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c1t2d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    4340    &lt;BR /&gt;   Free PE                     0       &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c2t2d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    4340    &lt;BR /&gt;   Free PE                     0       &lt;BR /&gt;   Autoswitch                  On</description>
    <pubDate>Tue, 16 Nov 2004 02:15:23 GMT</pubDate>
    <dc:creator>Vincent Lam_1</dc:creator>
    <dc:date>2004-11-16T02:15:23Z</dc:date>
    <item>
      <title>seeking help for mirror disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422610#M626688</link>
      <description>I'm a newbie to HP-UX and has come across a very devastating situation...&lt;BR /&gt;&lt;BR /&gt;My r5470 has two disc. They're setup for mirroring by the former system admin (now left). Now, I'm given a task to enlarge the /tmp.&lt;BR /&gt;&lt;BR /&gt;From sam, I learnt that there're no space left at vg00 (all the logical volume are on vg00). So, I decided to shrink the logical volume hosting /u01. What I did is:&lt;BR /&gt;1. backup /u01&lt;BR /&gt;2. destroy /u01&lt;BR /&gt;3. re-create /u01 with lesser space&lt;BR /&gt;4. restore /u01&lt;BR /&gt;They're all done in sam.&lt;BR /&gt;&lt;BR /&gt;Then I tried to increase /tmp. In sam, it did give me the option to increase the size of /tmp now. But when I tried to confirm the change and execute it, it complaint something like "physical extent not available". Being no other choice, I destroy /tmp and create it again in sam. Everything seems fine so far.&lt;BR /&gt;&lt;BR /&gt;Then i realize that both /tmp and /u01 are not mirrored volume!!! Before I did the change, both of them are mirrored volumne!! what should I do now to make them mirrored volume? (I have two 73GB disc in the system)</description>
      <pubDate>Mon, 15 Nov 2004 20:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422610#M626688</guid>
      <dc:creator>Vincent Lam_1</dc:creator>
      <dc:date>2004-11-15T20:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: seeking help for mirror disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422611#M626689</link>
      <description>Simply, to have a volume be mirrored is one command. This assumes you have a license for mirror/ux. I assume this is true, because mirroring seems to be happening.&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg01/lvolname /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;This is not an exact command. The name of the volume group vg01 needs to change. The name of the disk needs to change.&lt;BR /&gt;&lt;BR /&gt;You need to get to know this system and its probably time to stop using sam.&lt;BR /&gt;&lt;BR /&gt;SAM will get you through a crisis. SAM will make stupid mistakes because software just can't be made so smart.&lt;BR /&gt;&lt;BR /&gt;I recommend the following:&lt;BR /&gt;&lt;BR /&gt;You may want to post the output and then I can write you exact commands.&lt;BR /&gt;&lt;BR /&gt;vgdisplay /dev/vg00&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v /dev/vg00&lt;BR /&gt;&lt;BR /&gt;This will get you a picture of how much space vg00 has. It will let you know what disks its sitting on.&lt;BR /&gt;&lt;BR /&gt;bdf&lt;BR /&gt;&lt;BR /&gt;the left column includes your logical volume names.&lt;BR /&gt;&lt;BR /&gt;lvdisplay /dev/vg00/lvol3&lt;BR /&gt;&lt;BR /&gt;You need to gather this information.&lt;BR /&gt;&lt;BR /&gt;From the vgdisplay command you'll get your disk names.&lt;BR /&gt;&lt;BR /&gt;pvdisplay /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;Again not a real disk name, but this will at least let you know where the free space is.&lt;BR /&gt;&lt;BR /&gt;If /tmp is on one disk and you mirror it without specifying another disk then the mirror will happily happen and be useless because the mirror copy will be on the same disk as the original.&lt;BR /&gt;&lt;BR /&gt;In summary, get to know your system, gather some data and some intelligent help can be offered.&lt;BR /&gt;&lt;BR /&gt;I now use SAM for two purposes only:&lt;BR /&gt;1) Gather information to plan command line work.&lt;BR /&gt;2) Learn command line for sysadmin functions I either don't know or have forgotten. There are a few of those.&lt;BR /&gt;&lt;BR /&gt;I won't quote Bill Hassell today because you've got enough stress. Do try and use this opportunity to do some command line lvm work.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 15 Nov 2004 21:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422611#M626689</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-15T21:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: seeking help for mirror disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422612#M626690</link>
      <description>Thanks for your explanation. I don't have access to the machine at the moment. But here is the output before I adjusted the partition (lvol9 is the /u01 I've mentioned while lvol4 is /tmp):&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;VG Write Access             read/write     &lt;BR /&gt;VG Status                   available                 &lt;BR /&gt;Max LV                      255    &lt;BR /&gt;Cur LV                      9      &lt;BR /&gt;Open LV                     9      &lt;BR /&gt;Max PV                      16     &lt;BR /&gt;Cur PV                      2      &lt;BR /&gt;Act PV                      2      &lt;BR /&gt;Max PE per PV               4350         &lt;BR /&gt;VGDA                        4   &lt;BR /&gt;PE Size (Mbytes)            8               &lt;BR /&gt;Total PE                    8680    &lt;BR /&gt;Alloc PE                    8680    &lt;BR /&gt;Free PE                     0       &lt;BR /&gt;Total PVG                   0        &lt;BR /&gt;Total Spare PVs             0              &lt;BR /&gt;Total Spare PVs in use      0                     &lt;BR /&gt;&lt;BR /&gt;   --- Logical volumes ---&lt;BR /&gt;   LV Name                     /dev/vg00/lvol1&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            304             &lt;BR /&gt;   Current LE                  38        &lt;BR /&gt;   Allocated PE                76          &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol2&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            4096            &lt;BR /&gt;   Current LE                  512       &lt;BR /&gt;   Allocated PE                1024        &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol3&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            200             &lt;BR /&gt;   Current LE                  25        &lt;BR /&gt;   Allocated PE                50          &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol4&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            200             &lt;BR /&gt;   Current LE                  25        &lt;BR /&gt;   Allocated PE                50          &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol5&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            24              &lt;BR /&gt;   Current LE                  3         &lt;BR /&gt;   Allocated PE                6           &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol6&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            1840            &lt;BR /&gt;   Current LE                  230       &lt;BR /&gt;   Allocated PE                460         &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol7&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            1880            &lt;BR /&gt;   Current LE                  235       &lt;BR /&gt;   Allocated PE                470         &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol8&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            4600            &lt;BR /&gt;   Current LE                  575       &lt;BR /&gt;   Allocated PE                1150        &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg00/lvol9&lt;BR /&gt;   LV Status                   available/syncd           &lt;BR /&gt;   LV Size (Mbytes)            43152           &lt;BR /&gt;   Current LE                  5394      &lt;BR /&gt;   Allocated PE                5394        &lt;BR /&gt;   Used PV                     2       &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c1t2d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    4340    &lt;BR /&gt;   Free PE                     0       &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c2t2d0&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    4340    &lt;BR /&gt;   Free PE                     0       &lt;BR /&gt;   Autoswitch                  On</description>
      <pubDate>Tue, 16 Nov 2004 02:15:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422612#M626690</guid>
      <dc:creator>Vincent Lam_1</dc:creator>
      <dc:date>2004-11-16T02:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: seeking help for mirror disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422613#M626691</link>
      <description>Hi Vincent,&lt;BR /&gt; &lt;BR /&gt;though SEP has already outlined what you need to do,&lt;BR /&gt;you could wrap the steps in a little script&lt;BR /&gt;(albeit, I doubt that the little task justifies the effort)&lt;BR /&gt; &lt;BR /&gt;e.g.&lt;BR /&gt; &lt;BR /&gt;rootdisks=$(vgdisplay -v vg00|awk '/PV Name/{print$NF}')&lt;BR /&gt;for lv in $(bdf /tmp /u01|awk 'NR&amp;gt;1{print$1}');do&lt;BR /&gt;pv_used=$lvdisplay -v $lv|awk 'NF==3&amp;amp;&amp;amp;$1~/^\/dev\/dsk/{print$1}'&lt;BR /&gt;lvextend -m 1 $lv $(echo $rootdisks|tr \\040 \\012|grep -v $pv_used)&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;However, I'd suggest to prepend an echo command to the last line in the for loop,&lt;BR /&gt;just to make sure that the correct LVs and PV was parsed.&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Nov 2004 03:11:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422613#M626691</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-11-16T03:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: seeking help for mirror disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422614#M626692</link>
      <description>would the process affect the data that's already in the logical volume?</description>
      <pubDate>Tue, 16 Nov 2004 04:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422614#M626692</guid>
      <dc:creator>Vincent Lam_1</dc:creator>
      <dc:date>2004-11-16T04:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: seeking help for mirror disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422615#M626693</link>
      <description>Hello Vincent, as i can see in you vgdisplay -v the lvol9 (/u01) was not mirrored:&lt;BR /&gt;Current LE=Allocated PE  5394 (43152 Mb).&lt;BR /&gt;&lt;BR /&gt;If you want to make bigger your /tmp, remove your lvol9, and add more space to your /tmp&lt;BR /&gt;&lt;BR /&gt;# lvextend -L (size in MB) lvol4 /dev/dsk/cxtxd0.&lt;BR /&gt;&lt;BR /&gt;If it was not mirrored mirror it:&lt;BR /&gt;&lt;BR /&gt;# lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/cxtxd0&lt;BR /&gt;&lt;BR /&gt;You can control wath is happenig with your sapce with vgdisplay -v. Once you have your /tmp with the space you need then add your lvol9 to the system. But as I said before, it was not mirrored. If you want to create with mirror the best way is to create it with no space, then add space to one device and finally add the mirror into the other disk:&lt;BR /&gt;&lt;BR /&gt;# lvcreate -n lvol9 vg00&lt;BR /&gt;#lvextend -L XX(size) /dev/vg00/lvol9 /dev/dsk/c1t2d0&lt;BR /&gt;#lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;You have to keep in mind all the time the space you have free in your disks (vgdisplay -v)&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 16 Nov 2004 04:33:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422615#M626693</guid>
      <dc:creator>Pedro Cosmen</dc:creator>
      <dc:date>2004-11-16T04:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: seeking help for mirror disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422616#M626694</link>
      <description>No, an lvextend will do no harm to your data.&lt;BR /&gt;It only initiates the building up of a mirror copy to the disk passed as last argument</description>
      <pubDate>Tue, 16 Nov 2004 04:43:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/seeking-help-for-mirror-disk/m-p/3422616#M626694</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-11-16T04:43:09Z</dc:date>
    </item>
  </channel>
</rss>

