<?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: Decrease the size of a logical volume without data loss in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/decrease-the-size-of-a-logical-volume-without-data-loss/m-p/2658360#M1102</link>
    <description>Two options,&lt;BR /&gt;&lt;BR /&gt;(1) make a "make_recovery -Avi" tape - this only backs up vg00, so for other vg's you need to use another type of backup!&lt;BR /&gt;&lt;BR /&gt;(2) see 1 - when doing the recovery, interactively change the sizes and locations of the filesystems.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Thu, 07 Feb 2002 14:24:03 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-02-07T14:24:03Z</dc:date>
    <item>
      <title>Decrease the size of a logical volume without data loss</title>
      <link>https://community.hpe.com/t5/operating-system-linux/decrease-the-size-of-a-logical-volume-without-data-loss/m-p/2658359#M1101</link>
      <description>Hi everyone&lt;BR /&gt;    I have a HP workstation running on HP-UX 10.x. I have a problem with reducing&lt;BR /&gt; the size of logical volumes. I created a volume group using one of the hard&lt;BR /&gt; disks . I got a new hard disk and assigned it to the same volume group as that&lt;BR /&gt; of the former. I increased the size of my logical volumes mounted on /home and&lt;BR /&gt; /usr to use the new hard disk. I want to revert back these changes i.e I want&lt;BR /&gt; to remove the physical extents of the new physical volume(new hard disk)&lt;BR /&gt; alloted to the logical volumes mounted on /home and /usr. In short I want&lt;BR /&gt; /home and /usr to be confined to my old hard disk. Is it possible to do it&lt;BR /&gt; without any data loss as this is a big requirement for me. Could you please&lt;BR /&gt; explain the steps in detail on how to go about doing this?&lt;BR /&gt;regards&lt;BR /&gt;chandrasekar</description>
      <pubDate>Mon, 04 Feb 2002 18:50:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/decrease-the-size-of-a-logical-volume-without-data-loss/m-p/2658359#M1101</guid>
      <dc:creator>Chandrasekar_2</dc:creator>
      <dc:date>2002-02-04T18:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease the size of a logical volume without data loss</title>
      <link>https://community.hpe.com/t5/operating-system-linux/decrease-the-size-of-a-logical-volume-without-data-loss/m-p/2658360#M1102</link>
      <description>Two options,&lt;BR /&gt;&lt;BR /&gt;(1) make a "make_recovery -Avi" tape - this only backs up vg00, so for other vg's you need to use another type of backup!&lt;BR /&gt;&lt;BR /&gt;(2) see 1 - when doing the recovery, interactively change the sizes and locations of the filesystems.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 07 Feb 2002 14:24:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/decrease-the-size-of-a-logical-volume-without-data-loss/m-p/2658360#M1102</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-07T14:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease the size of a logical volume without data loss</title>
      <link>https://community.hpe.com/t5/operating-system-linux/decrease-the-size-of-a-logical-volume-without-data-loss/m-p/2658361#M1103</link>
      <description>Two options,&lt;BR /&gt;&lt;BR /&gt;(1) make a "make_recovery -Avi" tape - this only backs up vg00, so for other vg's you need to use another type of backup!&lt;BR /&gt;&lt;BR /&gt;(2) see 1 - when doing the recovery, interactively change the sizes and locations of the filesystems.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PS: Don't forget to assign points to your posts!</description>
      <pubDate>Thu, 07 Feb 2002 14:24:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/decrease-the-size-of-a-logical-volume-without-data-loss/m-p/2658361#M1103</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-07T14:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease the size of a logical volume without data loss</title>
      <link>https://community.hpe.com/t5/operating-system-linux/decrease-the-size-of-a-logical-volume-without-data-loss/m-p/2658362#M1104</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Don't forget that this discussion forum is dedicated to Linux.&lt;BR /&gt;&lt;BR /&gt;Let's talk about your problem. If you are not at ease with LVM, I would recommend the "make_recovery", as it seems to be the safest method.&lt;BR /&gt;&lt;BR /&gt;However, I would personnally do it another way :&lt;BR /&gt;&lt;BR /&gt;* Boot single-user mode.&lt;BR /&gt;* mount -a&lt;BR /&gt;* lvcreate -L "desired_home_size" vg00&lt;BR /&gt;(let's suppose the automagically assigned name is lvol9)&lt;BR /&gt;* lvcreate -L "desired_usr_size" vg00&lt;BR /&gt;(let's suppose the automagically assigned name is lvol10)&lt;BR /&gt;* newfs /dev/vg00/rlvol9&lt;BR /&gt;* newfs /dev/vg00/rlvol10&lt;BR /&gt;* mkdir /newhome&lt;BR /&gt;* mkdir /newusr&lt;BR /&gt;* mount /dev/vg00/lvol9 /newhome&lt;BR /&gt;* mount /dev/vg00/lvol10 /newusr&lt;BR /&gt;* mount -oremount,ro /home&lt;BR /&gt;* mount -oremount,ro /usr&lt;BR /&gt;* cd /home&lt;BR /&gt;* find . -print | cpio -pdvmux /newhome&lt;BR /&gt;* cd /usr&lt;BR /&gt;* find . -print | cpio -pdvmux /newusr&lt;BR /&gt;* umount /newusr&lt;BR /&gt;* umount /newhome&lt;BR /&gt;* Edit /etc/fstab to make /home mounted as /dev/vg00/lvol9 and /usr mounted as /dev/vg00/lvol10&lt;BR /&gt;* umount /home&lt;BR /&gt;* umount /usr&lt;BR /&gt;* mount /home&lt;BR /&gt;* mount /usr&lt;BR /&gt;&lt;BR /&gt;AT THIS POINT, it would probably be a good idea to reboot the system in normal mode, to make sure that everything is OK.&lt;BR /&gt;&lt;BR /&gt;* Reboot again in single-user mode&lt;BR /&gt;* mount -a&lt;BR /&gt;* lvremove /dev/vg00/lvolX (lvolX is the lvol that corresponds to the old /home)&lt;BR /&gt;* lvremote /dev/vg00/lvolY (lvolY is the lvol that corresponds to the old /usr)&lt;BR /&gt;* pvmove source_physical_vol dest_physical_vol (source is the disk you want to get rid of, destination is the disk you want to keep !)&lt;BR /&gt;* vgreduce vg00 &lt;THE_DISK_TO_BE_REMOVED&gt;&lt;BR /&gt;&lt;BR /&gt;* Reboot&lt;BR /&gt;&lt;BR /&gt;OF COURSE, DO THIS AT YOUR OWN RISK !&lt;BR /&gt;Read and re-read and re-re-read this procedure to make sure you agree with all the steps suggested, before doing anything.&lt;BR /&gt;&lt;BR /&gt;Good luck :-)&lt;BR /&gt;&lt;BR /&gt;Kodjo&lt;BR /&gt;&lt;/THE_DISK_TO_BE_REMOVED&gt;</description>
      <pubDate>Fri, 08 Feb 2002 22:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/decrease-the-size-of-a-logical-volume-without-data-loss/m-p/2658362#M1104</guid>
      <dc:creator>Kodjo Agbenu</dc:creator>
      <dc:date>2002-02-08T22:03:14Z</dc:date>
    </item>
  </channel>
</rss>

