<?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: move  a volume on the same disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607732#M35379</link>
    <description>Why would you want to do that????&lt;BR /&gt;&lt;BR /&gt;Just wondering.&lt;BR /&gt;&lt;BR /&gt;Jig, if you would explain exactly what you are attempting to accomplish, I'm sure we could assist.&lt;BR /&gt;&lt;BR /&gt;Are you wanting to rename a lvol?&lt;BR /&gt;Are bad sectors the reason for the move?&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
    <pubDate>Tue, 06 Nov 2001 15:09:30 GMT</pubDate>
    <dc:creator>Joseph C. Denman</dc:creator>
    <dc:date>2001-11-06T15:09:30Z</dc:date>
    <item>
      <title>move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607723#M35370</link>
      <description>Hi Friends&lt;BR /&gt;&lt;BR /&gt;  Is  there  any way to  move  a  volume on the  same   disk.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;   Thank you&lt;BR /&gt;    Jignesh Patel&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Nov 2001 21:16:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607723#M35370</guid>
      <dc:creator>Jig  Patel</dc:creator>
      <dc:date>2001-11-05T21:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607724#M35371</link>
      <description>what exactly do you mean by volume? &lt;BR /&gt;filesystem / directory / logical volume / volume group? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Nov 2001 21:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607724#M35371</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2001-11-05T21:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607725#M35372</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you mean move the phusical extents of a logical volume from one physical volume of a volume group to another physical volume of the same volume group, then "yes".  See the man (1M) pages for 'pvmove'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 05 Nov 2001 21:34:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607725#M35372</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-11-05T21:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607726#M35373</link>
      <description>Does pvmove do a physical to logical extent mapping? &lt;BR /&gt;&lt;BR /&gt;In other words - I'm REALLY asking: do the sizes of the disks matter?&lt;BR /&gt;&lt;BR /&gt;for example: &lt;BR /&gt;disk c0t1d0 = 18GB&lt;BR /&gt;disk c1t1d0 = 36GB (i.e. new disk)&lt;BR /&gt;&lt;BR /&gt;pvmove /dev/dsk/c0t1d0 /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;(I've not played with pvmove before)</description>
      <pubDate>Mon, 05 Nov 2001 21:39:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607726#M35373</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2001-11-05T21:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607727#M35374</link>
      <description>&lt;BR /&gt;If you mean renaming Logical&lt;BR /&gt;volume, yes you can do it.&lt;BR /&gt;Make sure the filesystem&lt;BR /&gt;containing the LV is unmounted&lt;BR /&gt;and then just do a ""mv"' .&lt;BR /&gt;If it is raw volume, make&lt;BR /&gt;sure it is not being used&lt;BR /&gt;by running fuser command and&lt;BR /&gt;rename it.&lt;BR /&gt;&lt;BR /&gt;  If you mean, moving data&lt;BR /&gt;from one disk to another&lt;BR /&gt;in the Same volumegroup,&lt;BR /&gt;use pvmove command.&lt;BR /&gt;&lt;BR /&gt;-raj</description>
      <pubDate>Mon, 05 Nov 2001 22:07:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607727#M35374</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-11-05T22:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607728#M35375</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;It doesn't. This is because the new disk will be in the same volume group and hence it possesses the same characterstics as of the old disk except for the number of extents. &lt;BR /&gt;However, unless you specificied MaxPhysicalExtents value (-e) while creating the volume group, it will not allot the extents more than what could be configured on the first disk in the volume group. &lt;BR /&gt;&lt;BR /&gt;Jig,&lt;BR /&gt;&lt;BR /&gt;You can use pvmove command to move the logical volumes across disks in a volume group. But if you want to move a logical volume from one place to other place on the same disk in a volume group, it is not possible. But you can create another logical volume , copy the data and then remove the old logical volume.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 05 Nov 2001 22:12:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607728#M35375</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-11-05T22:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607729#M35376</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Not sure why you would want to move a volume &lt;BR /&gt;to the same disk. I would assume you meant the&lt;BR /&gt;same volume group. Anyway the answer is 'pvmove'&lt;BR /&gt;Have a good read of the man page before using it.&lt;BR /&gt;There is some valuable hints there in regards &lt;BR /&gt;to having mirrored disks and the use of disks&lt;BR /&gt;in shared mode.&lt;BR /&gt;This is an extract from the man page &lt;BR /&gt;/Quote&lt;BR /&gt;source_pv_path must not appear as a dest_pv_path.&lt;BR /&gt;If source_pv_path is a member of a dest_pv_path, it is automatically excluded from being a destination physical volume.&lt;BR /&gt;\Unquote&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Mon, 05 Nov 2001 22:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607729#M35376</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-05T22:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607730#M35377</link>
      <description>You're probably stuck with creating another logical volume, copying the original lv's data to the new, then deleting the original and renaming the new.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 05 Nov 2001 22:31:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607730#M35377</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-11-05T22:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607731#M35378</link>
      <description>&lt;BR /&gt;    I  mean    moving  the  logical  extends of&lt;BR /&gt;   a logical  volume   from  one  portion  of the  disk  (Physical volume)  to  another  portion  of  the  disk .The  logical volume   is  contained  on  only  one  disk.&lt;BR /&gt;&lt;BR /&gt;    The  portion  of  the  disk  where  the  logical  volume  is  to  be  moved   is  free  as  appears  in  the  following  command.&lt;BR /&gt;&lt;BR /&gt;    pvdisplay -v  /dev/dsk/c0t5d0</description>
      <pubDate>Tue, 06 Nov 2001 14:58:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607731#M35378</guid>
      <dc:creator>Jig  Patel</dc:creator>
      <dc:date>2001-11-06T14:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607732#M35379</link>
      <description>Why would you want to do that????&lt;BR /&gt;&lt;BR /&gt;Just wondering.&lt;BR /&gt;&lt;BR /&gt;Jig, if you would explain exactly what you are attempting to accomplish, I'm sure we could assist.&lt;BR /&gt;&lt;BR /&gt;Are you wanting to rename a lvol?&lt;BR /&gt;Are bad sectors the reason for the move?&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Tue, 06 Nov 2001 15:09:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607732#M35379</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-11-06T15:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607733#M35380</link>
      <description>PS....&lt;BR /&gt;&lt;BR /&gt;Jig,&lt;BR /&gt;&lt;BR /&gt;As James as told me before, easy on the points.  Don't give away the rabbit before your problem is solved.&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Tue, 06 Nov 2001 15:13:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607733#M35380</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-11-06T15:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: move  a volume on the same disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607734#M35381</link>
      <description>Hi Jig:&lt;BR /&gt;&lt;BR /&gt;OK, I presume that you want to lvextend a logical volume what requires contiguous extents and another is in the way.  As already indicated, since you want to move extents where the source and destination are the same physical disk, 'pvmove' can't be used.&lt;BR /&gt;&lt;BR /&gt;Therefore, do this:&lt;BR /&gt;&lt;BR /&gt;1) Make a new, temporary logical volume and declare a mountpoint for it called "/newdata".&lt;BR /&gt;&lt;BR /&gt;2) Copy your current data from its current logical volume (let's call that "/olddata" for our example):&lt;BR /&gt;&lt;BR /&gt;# cd /olddata &lt;BR /&gt;# find . | cpio -pudlmv /newdata&lt;BR /&gt;&lt;BR /&gt;Obviously, make sure that the filesystem are "quiet" (not being used by applications) while you do this.&lt;BR /&gt;&lt;BR /&gt;3) 'lvremove' the logical volume represented by the "olddata".  This will free the extents you wish.&lt;BR /&gt;&lt;BR /&gt;4. Edit /etc/fstab to delete the old reference to "olddata" and change the "newdata" mountpoint to be "olddata" on the *new* logical volume.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 06 Nov 2001 15:14:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/move-a-volume-on-the-same-disk/m-p/2607734#M35381</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-11-06T15:14:28Z</dc:date>
    </item>
  </channel>
</rss>

