<?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: Replace disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761280#M72528</link>
    <description>Existing physical disk is 4G size and have a mirrored disk fo sam size, I was thinking this way&lt;BR /&gt;&lt;BR /&gt;-Split the Mirror.&lt;BR /&gt;-Remove mirrored disk and  Replace the new bigger disk&lt;BR /&gt;-Create new VG and LV and mount this with a dummy name&lt;BR /&gt;-Copy data from primary disk.&lt;BR /&gt;-replace then primary disk with new bigger disk&lt;BR /&gt;- mirror it back.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 10 Jul 2002 19:06:42 GMT</pubDate>
    <dc:creator>Rushank</dc:creator>
    <dc:date>2002-07-10T19:06:42Z</dc:date>
    <item>
      <title>Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761273#M72521</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I need to replace a 4 GB disk to a larger capacity disk .&lt;BR /&gt;Two lvols are sitting on this disk and these lvols are mirrored and these are NOT vg00. &lt;BR /&gt;What would be best method &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2002 18:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761273#M72521</guid>
      <dc:creator>Rushank</dc:creator>
      <dc:date>2002-07-10T18:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761274#M72522</link>
      <description>Hi Rushank,&lt;BR /&gt;&lt;BR /&gt;There are couple of ways you can do it safely. But the issue is do you already have another larger capacity disk in this volume group?. Did you create the volume group with non-default MAX PE parameter?. If not, then you cannot add this disk to the volume group hence and answer varies.&lt;BR /&gt;&lt;BR /&gt;Do a vgdisplay on the volume group and note the Max PE and the PE Size.&lt;BR /&gt;&lt;BR /&gt;Max. Usable Disk = Max PE * PE Size&lt;BR /&gt;&lt;BR /&gt;If the capacity of the new disk is less than the above Max. Usable Disk then you can do .&lt;BR /&gt;&lt;BR /&gt;1. pvmove each logical volume after adding the disk into the volume group. or&lt;BR /&gt;2. Mirror each logical volume and then reduce the mirror on the original disk.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If not, then you will need to create a new volume group with the new disk  and then copy the data. Once all the file systems are copied, destroy the old volume group and add the old disks to the new volume group and re-establish the mirrors.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 10 Jul 2002 18:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761274#M72522</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-07-10T18:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761275#M72523</link>
      <description>Rushank,&lt;BR /&gt;&lt;BR /&gt;Assume your existing VG has a large-enough "max PE" to take full advantage of the new disk. The following are the steps that you can take:&lt;BR /&gt;&lt;BR /&gt;1. Backup the server (or at least the LVs that sitting on the replaced disk).&lt;BR /&gt;2. Replace the disk.&lt;BR /&gt;3. Run "vgcfgrestore -n &lt;VG_NAME&gt; &lt;PV_PATH&gt;&lt;BR /&gt;4. Run "vgsync &lt;VG_NAME&gt;"  or "lvsync &lt;LV_NAME&gt;" twice for the 2 LVs you have.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;&lt;BR /&gt;Enbin&lt;BR /&gt;&lt;BR /&gt;&lt;/LV_NAME&gt;&lt;/VG_NAME&gt;&lt;/PV_PATH&gt;&lt;/VG_NAME&gt;</description>
      <pubDate>Wed, 10 Jul 2002 18:35:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761275#M72523</guid>
      <dc:creator>Enbin Hu</dc:creator>
      <dc:date>2002-07-10T18:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761276#M72524</link>
      <description>Because I suspect that your largest disk in this existing VG is a 4GB then pvmove is not going to be be a good option for you. The maximum number of physical extents (MAX PE's) that a VG support is set when the VG is created and depends upon the first disk used unless overridden.&lt;BR /&gt;&lt;BR /&gt;I therefore think your most straightforward approach is to backup the existing filesystems using fbackup, cpio, tar, or OB. Create a new VG using the largest disk as the first member. Make new lvols and filesystems and restore from backup. You can then add your existing disks to this VG using vgextend.&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2002 18:36:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761276#M72524</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-10T18:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761277#M72525</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;From your description, I assume that the volume group is a single physical volume (or if it is more than one) which was 'vgcreate'd with default settings for 'max_pe'.  In this case, you will only have about 1023+ physical extents (of 4MG each).  To simply "replace" the 4GB disk with a 9GB (or larger) one; 'vgcfgrestore' the LVM information; and reload the data from backup tape would leave unavailable physical extents on the new disk!&lt;BR /&gt;&lt;BR /&gt;Thus, I suggest backing up your data (to tape or another disk/filesystem); swapping the smaller disk(s) for larger ones; 'vgcreate'ing the volume group freshly (with or without explicit 'max_pe' specifications); recreating your logical volumes; and reloading your data.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 10 Jul 2002 18:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761277#M72525</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-07-10T18:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761278#M72526</link>
      <description>Thanks for the responses so far..&lt;BR /&gt;&lt;BR /&gt;Well, This vg was created with default option.&lt;BR /&gt;vgdisplay shows max PE per PV is 1023 and PE size is 4 MB. This means I'll get only 1023 PE when I add 9gig disk??&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2002 18:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761278#M72526</guid>
      <dc:creator>Rushank</dc:creator>
      <dc:date>2002-07-10T18:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761279#M72527</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Yes, that's true.  In effect you lose about half of the capacity of a 9GB disk if you add it to a volume group that has a maximum PE extent size of 1023.  This is the reason for the recommendation to *recreate* the volume group from scratch and migrate your data back to it via any one of several means.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 10 Jul 2002 18:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761279#M72527</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-07-10T18:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761280#M72528</link>
      <description>Existing physical disk is 4G size and have a mirrored disk fo sam size, I was thinking this way&lt;BR /&gt;&lt;BR /&gt;-Split the Mirror.&lt;BR /&gt;-Remove mirrored disk and  Replace the new bigger disk&lt;BR /&gt;-Create new VG and LV and mount this with a dummy name&lt;BR /&gt;-Copy data from primary disk.&lt;BR /&gt;-replace then primary disk with new bigger disk&lt;BR /&gt;- mirror it back.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2002 19:06:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761280#M72528</guid>
      <dc:creator>Rushank</dc:creator>
      <dc:date>2002-07-10T19:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761281#M72529</link>
      <description>Hi Rushank,&lt;BR /&gt;&lt;BR /&gt;JRF gave a good suggestion. Actually, you don't have destroy the existing VG first, what you can do is like this:&lt;BR /&gt;&lt;BR /&gt;1. vgcreate a new VG with the new 9GB disk.&lt;BR /&gt;2. lvcreate 2 LVs.&lt;BR /&gt;3. newfs create file systems&lt;BR /&gt;4. mkdir 2 temp mount points, e.g. mpt1, mpt2&lt;BR /&gt;5. mount the 2 new file systems.&lt;BR /&gt;6. make sure the server is "quiet",e.g. DB is down.&lt;BR /&gt;7. use "cpio" to copy the data from existing file systems to the new ones (mpt1, mpt2).&lt;BR /&gt;8. swap the two sets of mount points.&lt;BR /&gt;9. take the "old" vg offline.&lt;BR /&gt;&lt;BR /&gt;Good Luck.&lt;BR /&gt;&lt;BR /&gt;Enbin&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2002 19:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761281#M72529</guid>
      <dc:creator>Enbin Hu</dc:creator>
      <dc:date>2002-07-10T19:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761282#M72530</link>
      <description>If you have only two disks with one as the mirror, then&lt;BR /&gt;&lt;BR /&gt;-Create a new volume group with 9 GB disk&lt;BR /&gt;-Create file systems and mount them on some temporary points.&lt;BR /&gt;-Copy the data from the existing file systems to the temporary mount points.&lt;BR /&gt;-Unmount the existing mount points.&lt;BR /&gt;-mount the new file systems on the original mount points&lt;BR /&gt;-test the data&lt;BR /&gt;&lt;BR /&gt;If everything is working, then destroy the old volume group and extend the new volume group with the new 4 GB disks. &lt;BR /&gt;&lt;BR /&gt;Extend the mirrors selectively by specifying the individual 4 GB disks.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 10 Jul 2002 19:10:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761282#M72530</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-07-10T19:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761283#M72531</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;The 'cpio' method as Enbin suggested is a viable one and is far superior to tape copies if you don't have to worry about special files like device files and sockets.&lt;BR /&gt;&lt;BR /&gt;The problem with a MirrorDisk solution is that you are not 'vgcreate'ing a new volume group and therefore have no way of altering the 'max_pe' set during the original volume group creation.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 10 Jul 2002 19:12:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761283#M72531</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-07-10T19:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761284#M72532</link>
      <description>I've multiple LV's on this VG, my concern is only two lvols sitting on a separate disk needs a larger room. Apart from this I need rest of the lvols on the vg01. I can remove only the lvols. Am I right..?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2002 19:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761284#M72532</guid>
      <dc:creator>Rushank</dc:creator>
      <dc:date>2002-07-10T19:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761285#M72533</link>
      <description>The question is whether you want the two lvols in a separate vg. If not, you will have to create all the lvols in the new vg and copy all the data.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Wed, 10 Jul 2002 19:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761285#M72533</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-07-10T19:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761286#M72534</link>
      <description>I will have these two LV's on a new VG. In this case there is no need to offline vg01. Right??&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2002 20:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761286#M72534</guid>
      <dc:creator>Rushank</dc:creator>
      <dc:date>2002-07-10T20:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761287#M72535</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes you do not make the vg01 offline. Create the new vg, make the lvol/filesystems and copy the data by cpio.&lt;BR /&gt;&lt;BR /&gt;Piyush</description>
      <pubDate>Wed, 10 Jul 2002 20:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761287#M72535</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-07-10T20:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Replace disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761288#M72536</link>
      <description>You should first do&lt;BR /&gt;pvcreate on the /dev/rdsk/cxtxd0 where the x reflect your physical disk.  If the disk was not totally new (although it might be new to this system), you will need to do&lt;BR /&gt;pvcreate -f /dev/rdsk/cxtxd0&lt;BR /&gt;then&lt;BR /&gt;mkdir /dev/vg0x&lt;BR /&gt;mknod /dev/vg0x/group c 0x0Y0000&lt;BR /&gt;where Y is the largest group number in all your /dev/vg0? directory.&lt;BR /&gt;vgcreate /dev/vg0x /dev/dsk/cxtxd0&lt;BR /&gt;then create two logic volumes. You could do all these in "sam" easily by going to disk and file system section and select the drive and go to action to add VG and define LV, then "go".&lt;BR /&gt;&lt;BR /&gt;Once you created the file systems, verify them by "bdf" command.  If they are all okay, go to each file system you want to move over, do "pwd" make sure you are there, then&lt;BR /&gt;&lt;BR /&gt;find . -xdev -depth -print | cpio -pxdm &amp;gt; /new_file_system&lt;BR /&gt;&lt;BR /&gt;do the similar to the other file system.  Now you have copy of the file systems ready to remount.&lt;BR /&gt;&lt;BR /&gt;umount /new_file_system1&lt;BR /&gt;umount /new_file_system2&lt;BR /&gt;umount /old_file_system1&lt;BR /&gt;umount /old_file_system2&lt;BR /&gt;for both. if umount can not mount, make sure you are not&lt;BR /&gt;in that directory and no other processes running over those directories. fuser -cu /old_file_system will show you the processes need to be killed, if you still can not umount them.&lt;BR /&gt;&lt;BR /&gt;Make a copy of your /etc/fstab to /etc/fstab.last&lt;BR /&gt;&lt;BR /&gt;vi /etc/fstab&lt;BR /&gt;to make the new_file_system mounted on the old mount point. if you want to have the old file system also accessible, make that to the new_file_system mount point.&lt;BR /&gt;&lt;BR /&gt;mountall&lt;BR /&gt;will bring all those file systems on line and you are ready to go.</description>
      <pubDate>Wed, 10 Jul 2002 21:14:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk/m-p/2761288#M72536</guid>
      <dc:creator>Wayne Yu_1</dc:creator>
      <dc:date>2002-07-10T21:14:03Z</dc:date>
    </item>
  </channel>
</rss>

