<?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: problems with disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644509#M620208</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;&lt;BR /&gt;pvcreate -f /dev/rdsk/cxtydz&lt;BR /&gt;vgsync /dev/vgxx&lt;BR /&gt;&lt;BR /&gt;It was a mirrored disk then you have to synchronise the VG again</description>
    <pubDate>Fri, 07 Oct 2005 13:50:05 GMT</pubDate>
    <dc:creator>Luk Vandenbussche</dc:creator>
    <dc:date>2005-10-07T13:50:05Z</dc:date>
    <item>
      <title>problems with disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644508#M620207</link>
      <description>We had a failed drive...the CE pulled out the disk and put in a new one without any intervention before pulling out the failed disk.&lt;BR /&gt;now the disk is showing as unavailable with stale partitions.....&lt;BR /&gt;&lt;BR /&gt;this was a mirrored disk.....not rootvg....&lt;BR /&gt;&lt;BR /&gt;neither lvm software or  olr software is installed on this server</description>
      <pubDate>Fri, 07 Oct 2005 13:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644508#M620207</guid>
      <dc:creator>emmett_2</dc:creator>
      <dc:date>2005-10-07T13:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: problems with disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644509#M620208</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;&lt;BR /&gt;pvcreate -f /dev/rdsk/cxtydz&lt;BR /&gt;vgsync /dev/vgxx&lt;BR /&gt;&lt;BR /&gt;It was a mirrored disk then you have to synchronise the VG again</description>
      <pubDate>Fri, 07 Oct 2005 13:50:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644509#M620208</guid>
      <dc:creator>Luk Vandenbussche</dc:creator>
      <dc:date>2005-10-07T13:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: problems with disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644510#M620209</link>
      <description>first you should pvcreate the disk then vgsync /dev/vgxx or lvsync.&lt;BR /&gt;&lt;BR /&gt;Ziad</description>
      <pubDate>Fri, 07 Oct 2005 13:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644510#M620209</guid>
      <dc:creator>Morcos</dc:creator>
      <dc:date>2005-10-07T13:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: problems with disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644511#M620210</link>
      <description>pvcreate -f /dev/rdsk/c4t3d0&lt;BR /&gt;pvcreate: The physical volume "/dev/dsk/c4t3d0" is already recorded in the "/etc/lvmtab" file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Oct 2005 13:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644511#M620210</guid>
      <dc:creator>emmett_2</dc:creator>
      <dc:date>2005-10-07T13:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: problems with disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644512#M620211</link>
      <description>vgsync /dev/vg04&lt;BR /&gt;vgsync: Couldn't re-synchronize stale partitions of the logical volume:&lt;BR /&gt;I/O error&lt;BR /&gt;vgsync: Couldn't resynchronize logical volume "/dev/vg04/lvol1".&lt;BR /&gt;vgsync: Couldn't resynchronize volume group "/dev/vg04".</description>
      <pubDate>Fri, 07 Oct 2005 13:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644512#M620211</guid>
      <dc:creator>emmett_2</dc:creator>
      <dc:date>2005-10-07T13:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: problems with disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644513#M620212</link>
      <description>This was a mirrored disk. Once it is replaced, you have to restore the disk configuration&lt;BR /&gt;&lt;BR /&gt;#vgcfgrestore -n &lt;VG_NAME&gt; /dev/rdsk/c4t3d0&lt;BR /&gt;&lt;BR /&gt;activate the vg&lt;BR /&gt;&lt;BR /&gt;#vgchange -a y &lt;VG_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;sync the vg&lt;BR /&gt;&lt;BR /&gt;#vgsync &lt;VG_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;be patient. That's all.&lt;BR /&gt;&lt;/VG_NAME&gt;&lt;/VG_NAME&gt;&lt;/VG_NAME&gt;</description>
      <pubDate>Fri, 07 Oct 2005 14:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644513#M620212</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2005-10-07T14:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: problems with disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644514#M620214</link>
      <description>Hi,&lt;BR /&gt;here you have a lot of info on disk mirroring&lt;BR /&gt;&lt;BR /&gt;LVM: Procedure for replacing an LVM disk in HP-UX 10.x and 11.x DocId: KBAN00000347   Updated: 20040602 &lt;BR /&gt;&lt;BR /&gt;DOCUMENT&lt;BR /&gt;Problem Description&lt;BR /&gt;&lt;BR /&gt;What is the procedure for replacing a disk under LVM?  How do I&lt;BR /&gt;prepare for an LVM disk crash?  What information do I need to&lt;BR /&gt;have backed up/printed out to help in the recovery?&lt;BR /&gt;&lt;BR /&gt;Configuration Info&lt;BR /&gt;&lt;BR /&gt;Operating System - HP-UX&lt;BR /&gt;Version - 10.x and 11.x&lt;BR /&gt;Hardware System - HP9000&lt;BR /&gt;Series - 700/800&lt;BR /&gt;&lt;BR /&gt;Solution&lt;BR /&gt;&lt;BR /&gt;Note: The information in this document applies to HP-UX versions&lt;BR /&gt;      10.x and later.&lt;BR /&gt;&lt;BR /&gt;This document replaces document UNX1001086&lt;BR /&gt;&lt;BR /&gt;Despite all the effort various HP disk divisions put into making&lt;BR /&gt;highly reliable disk drives, occasionally a disk mechanism goes bad&lt;BR /&gt;and needs to be replaced.  After the old disk is replaced with a new&lt;BR /&gt;one (retaining the hardware address of the original to avoid&lt;BR /&gt;confusion), the data needs to be restored to that disk from a backup.&lt;BR /&gt;Before LVM, in the simple world of hard sectioning, this meant&lt;BR /&gt;checking your notes for the original sectioning scheme, then&lt;BR /&gt;recreating file systems as necessary on those sections, and restoring&lt;BR /&gt;the data from the backup.&lt;BR /&gt;&lt;BR /&gt;With LVM, the picture is slightly more complicated, since one disk&lt;BR /&gt;could have various pieces of several logical volumes on it.  The layout&lt;BR /&gt;of those logical volumes (LVs or lvols) must first be restored, and the&lt;BR /&gt;data for each of those LVs restored from backup.&lt;BR /&gt;&lt;BR /&gt;This document endeavors to provide a step-by-step guide to replacing a&lt;BR /&gt;faulty LVM disk, and outlines the general sequence of commands required&lt;BR /&gt;to perform the task.  It is divided into four chapters and one appendix:&lt;BR /&gt;&lt;BR /&gt;  Chapter 1:      Replacing a NON-Boot Disk WITHOUT LVM Mirroring&lt;BR /&gt;  Chapter 2:      Replacing a NON-boot Disk WITH LVM Mirroring&lt;BR /&gt;  Chapter 3:      Replacing a Root Disk WITHOUT LVM Mirroring&lt;BR /&gt;  Chapter 4:      Replacing a Boot Disk WITH LVM Mirroring&lt;BR /&gt;&lt;BR /&gt;  Appendix A:     Preparing for the Recovery of an LVM System&lt;BR /&gt;&lt;BR /&gt;At the start of each of the chapters there is an example system&lt;BR /&gt;configuration, which is referred to in the examples for each of the&lt;BR /&gt;steps.  Use these example systems to understand the process, but&lt;BR /&gt;please be careful to issue the required commands relevant to the system&lt;BR /&gt;actually being recovered.&lt;BR /&gt;&lt;BR /&gt;Of particular importance is Appendix A, which outlines the steps that&lt;BR /&gt;must be performed PRIOR to the disk failing.  Please make sure that you&lt;BR /&gt;read this section carefully, and implement the required procedures as&lt;BR /&gt;soon as possible.  Your system recovery may rely on these steps.  It is&lt;BR /&gt;recommended that you familiarize yourself with the procedures outlined in&lt;BR /&gt;this document prior to the time of ever needing them so that you&lt;BR /&gt;understand fully the steps involved.&lt;BR /&gt;&lt;BR /&gt;If you have any questions about the recovery process, please contact your&lt;BR /&gt;local Hewlett-Packard Customer Response Center for assistance.&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------------------------------------&lt;BR /&gt;CHAPTER 1 :     Replacing a NON-boot Disk WITHOUT&lt;BR /&gt;Mirroring&lt;BR /&gt;-------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Example configuration:&lt;BR /&gt;&lt;BR /&gt;  Volume group /dev/vg00 contains the three disks, with the logical&lt;BR /&gt;  volume configuration as shown:&lt;BR /&gt;&lt;BR /&gt;                          |---------|     |---------|     |---------|&lt;BR /&gt;                          | lvol 1  |     | lvol 3  |     | lvol 5  |&lt;BR /&gt;                          |---------|     |---------|     |---------|&lt;BR /&gt;                          | lvol 2  |     | lvol 4  |     | lvol 6  |&lt;BR /&gt;                          |---------|     |---------|     |         |&lt;BR /&gt;                          | lvol 3  |     | lvol 5  |     |         |&lt;BR /&gt;                          |---------|     |---------|     |---------|&lt;BR /&gt;&lt;BR /&gt;  hardware address          52.6.0          52.5.0          52.4.0&lt;BR /&gt;  device file (/dev/dsk/)   c0t6d0          c0t5d0          c0t4d0&lt;BR /&gt;&lt;BR /&gt;  The scenario for this chapter is that the disk at hardware address&lt;BR /&gt;  52.4.0 has a head crash, and as a result it is unusable.  The steps&lt;BR /&gt;  below outline a method that can be used to recover from this state.&lt;BR /&gt;&lt;BR /&gt;[Step 1.1]&lt;BR /&gt;&lt;BR /&gt;Have the engineer replace the faulty disk, and then boot the system in&lt;BR /&gt;single user mode.  This will ensure that when we are working with the&lt;BR /&gt;system, there will be a minimum of processes running on the system.&lt;BR /&gt;To boot into single-user mode, boot from the primary boot path, and&lt;BR /&gt;interact with IPL.  At the ISL&amp;gt; prompt enter this string:&lt;BR /&gt;&lt;BR /&gt;    ISL&amp;gt; hpux -is&lt;BR /&gt;&lt;BR /&gt;Note: The above string should work for most systems.  If your system&lt;BR /&gt;fails to boot using this string follow the steps below.&lt;BR /&gt;&lt;BR /&gt;At the ISL&amp;gt; prompt, determine the original boot string:&lt;BR /&gt;&lt;BR /&gt;  ISL&amp;gt; lsautofl&lt;BR /&gt;&lt;BR /&gt;This command will return a string such as:&lt;BR /&gt;&lt;BR /&gt;  hpux (52.6.0;0)/stand/vmunix&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;  hpux (;0)/stand/vmunix&lt;BR /&gt;&lt;BR /&gt;The output here is dependent on the type of system you have.  Once you&lt;BR /&gt;have this information, simply add the string -is after the hpux, and&lt;BR /&gt;this will boot the system into single user mode.  For our example:&lt;BR /&gt;&lt;BR /&gt;  ISL&amp;gt; hpux -is (52.6.0;0)/stand/vmunix&lt;BR /&gt;&lt;BR /&gt;[Step 1.2]&lt;BR /&gt;&lt;BR /&gt;Restore the LVM configuration/headers onto the new disk from your backup&lt;BR /&gt;of the LVM configuration:&lt;BR /&gt;&lt;BR /&gt;  # vgcfgrestore -n [volume group name] /dev/rdsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;Where X is the 'card instance number' of the SCSI bus attached to&lt;BR /&gt;that card.  Y is the 'SCSI ID' of the disk (or array controller, in&lt;BR /&gt;the case of an array), and Z is the 'LUN number' (typically 0 for a&lt;BR /&gt;non-array type disk). Note that if the HP Customer Engineer replaces&lt;BR /&gt;the disk at the same address, the device file name will not change.&lt;BR /&gt;In that case the name will be what it was prior to the replacement.&lt;BR /&gt;For our example:&lt;BR /&gt;&lt;BR /&gt;  # vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t4d0&lt;BR /&gt;&lt;BR /&gt;[Step 1.3]&lt;BR /&gt;&lt;BR /&gt;Reactivate the volume group (VG) so that the new disk can be attached,&lt;BR /&gt;since it wasn't configured in at boot time:&lt;BR /&gt;&lt;BR /&gt;  # vgchange -a y [volume group name]&lt;BR /&gt;&lt;BR /&gt;For our example, the volume group vg00 will already be activated, but&lt;BR /&gt;it will not know of the replaced disk; therefore, this step is still&lt;BR /&gt;required so that LVM will now know that the disk is again available:&lt;BR /&gt;&lt;BR /&gt;  # vgchange -a y /dev/vg00&lt;BR /&gt;&lt;BR /&gt;The vgchange command will activate each specified volume group and all&lt;BR /&gt;associated physical and logical volumes for read-write access.  In the case of&lt;BR /&gt;vg00,it would initially have been activated with c0t4d0 in an unknown state.&lt;BR /&gt;vgchange tells vg00 to look again at c0t4d0, which is now in a known state. It&lt;BR /&gt;is important to remember that even though lvol5 and lvol6 are now active they&lt;BR /&gt;are void of data.&lt;BR /&gt;&lt;BR /&gt;[Step 1.4]&lt;BR /&gt;&lt;BR /&gt;Determine which logical volumes spanned onto that disk.  You only need&lt;BR /&gt;to recreate and restore data for the volumes that actually touched that&lt;BR /&gt;disk.  Other LVs in the volume group are still OK.&lt;BR /&gt;&lt;BR /&gt;  # pvdisplay -v /dev/dsk/c0tXd0&lt;BR /&gt;&lt;BR /&gt;will show a listing of all the extents on disk lu X, and to what logical&lt;BR /&gt;volume they belong.  This listing is fairly long, so you might want to&lt;BR /&gt;pipe it to more or send it to a file.  For our example:&lt;BR /&gt;&lt;BR /&gt;  # pvdisplay -v /dev/dsk/c0t4d0 | more&lt;BR /&gt;  .....&lt;BR /&gt;  .....&lt;BR /&gt;   --- Distribution of physical volume ---&lt;BR /&gt;   LV Name            LE of LV  PE for LV&lt;BR /&gt;   /dev/vg00/lvol5    50        50&lt;BR /&gt;   /dev/vg00/lvol6    245       245&lt;BR /&gt;   .....&lt;BR /&gt;   .....&lt;BR /&gt;&lt;BR /&gt;From this we can see that logical volumes /dev/vg00/lvol5 and&lt;BR /&gt;/dev/vg00/lvol6 have physical extents on this disk, but /dev/vg00/lvol1&lt;BR /&gt;through /dev/vg00/lvol4 don't, so we will need to recreate and restore&lt;BR /&gt;lvol5 and lvol6 only.&lt;BR /&gt;&lt;BR /&gt;Note: Even though lvol5 was also in part on another disk drive, it&lt;BR /&gt;      will need to be treated as if the entire lvol was lost, not just&lt;BR /&gt;      the part on c0t4d0.&lt;BR /&gt;&lt;BR /&gt;[Step 1.5]&lt;BR /&gt;&lt;BR /&gt;Restore the data from your backup onto the replacement disk for&lt;BR /&gt;the logical volumes identified in step 1.4.  For raw volumes, you can&lt;BR /&gt;simply restore the full raw volume using the utility that was used to&lt;BR /&gt;create your backup.  For file systems, you will need to recreate the&lt;BR /&gt;file systems first.  For our example:&lt;BR /&gt;&lt;BR /&gt;For HFS:&lt;BR /&gt;&lt;BR /&gt;  # newfs -F hfs /dev/vg00/rlvol5&lt;BR /&gt;  # newfs -F hfs /dev/vg00/rlvol6&lt;BR /&gt;&lt;BR /&gt;For JFS:&lt;BR /&gt;&lt;BR /&gt;  # newfs -F vxfs /dev/vg00/rlvol5&lt;BR /&gt;  # newfs -F vxfs /dev/vg00/rlvol6&lt;BR /&gt;&lt;BR /&gt;Note that we use the raw logical volume device file for the newfs&lt;BR /&gt;command.  For file systems that had non-default configurations, please&lt;BR /&gt;consult the man page of newfs for the correct options.&lt;BR /&gt;&lt;BR /&gt;After a file system has been created on the logical volume mount the&lt;BR /&gt;file system under the mount point that it previously occupied.  Take whatever&lt;BR /&gt;steps are necessary to prevent your applications or users from accessing the&lt;BR /&gt;filesystem until the data has been recovered.  Now that the filesystem has been&lt;BR /&gt;created simply restore the data for that file system from backups.&lt;BR /&gt;&lt;BR /&gt;Note: You will need to have recorded how your file systems were&lt;BR /&gt;      originally created in order to perform this step.  The only&lt;BR /&gt;      critical feature of this step is that the file system be at&lt;BR /&gt;      least as large as before the disk failure.  You can change&lt;BR /&gt;      other file system parameters, such as those used to tune the&lt;BR /&gt;      file system's performance.&lt;BR /&gt;&lt;BR /&gt;For the file system case, there is no need to worry about data on the&lt;BR /&gt;disk (c0t5d0) that was newer then the data on the tape.  The newfs&lt;BR /&gt;wiped out all data on the lvol5.  For the raw volume access, you may&lt;BR /&gt;have to specify your restore utilities over-write option to guarantee&lt;BR /&gt;bringing the volume back to a known state.&lt;BR /&gt;&lt;BR /&gt;[Step 1.6]&lt;BR /&gt;&lt;BR /&gt;The final step in the recovery process is to reboot the system.  When&lt;BR /&gt;the system restarts, the recovery process will be complete.&lt;BR /&gt;&lt;BR /&gt;  # cd /&lt;BR /&gt;  # shutdown -r&lt;BR /&gt;&lt;BR /&gt;If you have any questions or problems with the above steps, please&lt;BR /&gt;contact your local Hewlett Packard Customer Response Center.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;CHAPTER 2 :     Replacing a NON-Boot disk WITH Mirroring&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Mirroring introduces an interesting twist to the recovery process.&lt;BR /&gt;Because LVM keeps a map of 'stale' extents on each disk, it is only&lt;BR /&gt;aware of individual extents which are in need of update, and it does&lt;BR /&gt;not map this to entire disks.  This makes for quick mirror recovery in&lt;BR /&gt;the case that a disk has temporarily lost connection with the host, or&lt;BR /&gt;has lost power.  In addition, it can greatly speed up the recovery time&lt;BR /&gt;in the instance of a failed disk.&lt;BR /&gt;&lt;BR /&gt;Example configuration:&lt;BR /&gt;&lt;BR /&gt;  Volume group /dev/vg00 contains the three disks, with the logical&lt;BR /&gt;  volume configuration as shown:&lt;BR /&gt;&lt;BR /&gt;                          |---------|     |---------|     |---------|&lt;BR /&gt;                          | lvol 1  |     | lvol 4  |     | lvol 4  |&lt;BR /&gt;                          |---------|     |         |     | mirror  |&lt;BR /&gt;                          | lvol 2  |     |---------|     |---------|&lt;BR /&gt;                          |---------|     | lvol 5  |     | lvol 5  |&lt;BR /&gt;                          | lvol 3  |     |         |     | mirror  |&lt;BR /&gt;                          |---------|     |---------|     |---------|&lt;BR /&gt;&lt;BR /&gt;  hardware address          52.6.0          52.5.0          52.4.0&lt;BR /&gt;  device file (/dev/dsk/)   c0t6d0          c0t5d0          c0t4d0&lt;BR /&gt;&lt;BR /&gt;This involves a head crash on the disk at address 52.4.0.&lt;BR /&gt;&lt;BR /&gt;[Step 2.1]&lt;BR /&gt;&lt;BR /&gt;Have the customer engineer replace the faulty disk, and then boot the system.&lt;BR /&gt;You can boot the system into multi-user mode.  For logical volumes that&lt;BR /&gt;didn't have a mirror, and that resided on the replaced disk, you will&lt;BR /&gt;have to deny access to the filesystem.  Do this by unmounting the relevant&lt;BR /&gt;filesystems. (However, it's possible that they will not have been mounted as&lt;BR /&gt;part of the boot-up sequence anyway.)&lt;BR /&gt;&lt;BR /&gt;Note: If the disk being replaced is Hot-Pluggable (or Hot-Swappable) a&lt;BR /&gt;reboot may not be necessary.  Please inquire your customer engineer to&lt;BR /&gt;determine if a reboot is required.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[Step 2.2]&lt;BR /&gt;&lt;BR /&gt;Restore the LVM configuration/headers onto the new disk from your&lt;BR /&gt;backup of the LVM configuration:&lt;BR /&gt;&lt;BR /&gt;  # vgcfgrestore -n [volume group name] /dev/rdsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;where X is the 'card instance number' of the scsi bus attached to&lt;BR /&gt;that card.  Y is the 'SCSI ID' of the disk (or array controller, in&lt;BR /&gt;the case of an array), and Z is the 'LUN number' (typically 0 for a&lt;BR /&gt;non-array type disk). Note that if an HP Customer Engineer replaces&lt;BR /&gt;the disk at the same address, the device file name will not change.&lt;BR /&gt;In that case the name will be what it was prior to the replacement.&lt;BR /&gt;For our example:&lt;BR /&gt;&lt;BR /&gt;  # vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t4d0&lt;BR /&gt;&lt;BR /&gt;[Step 2.3]&lt;BR /&gt;&lt;BR /&gt;Reactivate the volume group so that the new disk can be attached,&lt;BR /&gt;since it wasn't configured in at boot time.  This should also resync&lt;BR /&gt;any mirrors that resided on the faulty disk.&lt;BR /&gt;&lt;BR /&gt;  # vgchange -a y [volume group name]&lt;BR /&gt;&lt;BR /&gt;For our example, the volume group vg00 will already be activated, but&lt;BR /&gt;it will not know of the replaced disk; therefore, this step is still&lt;BR /&gt;required so that LVM will now know that the disk is again available&lt;BR /&gt;and the resync will occur:&lt;BR /&gt;&lt;BR /&gt;  # vgchange -a y /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Now check that the mirrors are syncronized, run this command for each&lt;BR /&gt;logical volume that resides on the replaced disk:&lt;BR /&gt;&lt;BR /&gt;    # lvdisplay -v /dev/vg00/lvol4 | more&lt;BR /&gt;    # lvdisplay -v /dev/vg00/lvol5 | more&lt;BR /&gt;&lt;BR /&gt;If any extents show up as being stale it is recommended to run a vgsync&lt;BR /&gt;or lvsync to force the syncronization of the mirrored extents using the&lt;BR /&gt;following commands:&lt;BR /&gt;&lt;BR /&gt;    # vgsync /dev/vg00&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;    # lvsync /dev/vg00/lvol4&lt;BR /&gt;    # lvsync /dev/vg00/lvol5&lt;BR /&gt;&lt;BR /&gt;[Step 2.4]&lt;BR /&gt;&lt;BR /&gt;For any file systems on the faulty disk that didn't have mirror copies,&lt;BR /&gt;you will have to rebuild the file systems and restore the data.  Follow&lt;BR /&gt;the steps 1.4 and 1.5 in chapter 1 for guidance.&lt;BR /&gt;&lt;BR /&gt;[Step 2.5]&lt;BR /&gt;&lt;BR /&gt;If you booted your system into single-user mode in step 2.1, reboot&lt;BR /&gt;your system now and allow it to boot into multiuser mode.  If you were&lt;BR /&gt;already in multi-user mode, then no further action is required.&lt;BR /&gt;&lt;BR /&gt;At this stage, your system should be fully functioning.&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;-&lt;BR /&gt;CHAPTER 3 :     Replacing a Root Disk WITHOUT Mirroring&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;-&lt;BR /&gt;&lt;BR /&gt;With the failure of the boot disk the information on disk that is required to&lt;BR /&gt;boot the system is lost. The best method for recovery is to reload the boot&lt;BR /&gt;disk&lt;BR /&gt;from a make_recovery tape.  The make_recovery command is supplied with the&lt;BR /&gt;Ignite-UX product available for free at &lt;A href="http://www.software.hp.com." target="_blank"&gt;www.software.hp.com.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If a make_recovery tape is unavailable then the system will need to be&lt;BR /&gt;installed&lt;BR /&gt;with the Core OS/Install cd.  The original kernel and operating system&lt;BR /&gt;can be recovered from backups after that.  ITRC document rcfaxrestore001 has&lt;BR /&gt;complete instructions for recovering a system.&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;CHAPTER 4 :     Replacing a boot disk WITH mirroring&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;As with chapter 2, mirroring adds a new twist to the recovery of a boot&lt;BR /&gt;disk, and makes the recovery much simpler than without mirroring.&lt;BR /&gt;&lt;BR /&gt;Example configuration:&lt;BR /&gt;&lt;BR /&gt;  Volume group /dev/vg00 contains the three disks, with the logical&lt;BR /&gt;  volume configuration as shown:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                          |---------|     |---------|     |---------|&lt;BR /&gt;                          | lvol 1  |     | lvol 1  |     | lvol 4  |&lt;BR /&gt;                          |         |     | mirror  |     |         |&lt;BR /&gt;                          |---------|     |---------|     |---------|&lt;BR /&gt;                          | lvol 2  |     | lvol 2  |     | lvol 5  |&lt;BR /&gt;                          |         |     | mirror  |     |         |&lt;BR /&gt;                          |---------|     |---------|     |         |&lt;BR /&gt;                          | lvol 3  |     | lvol 3  |     |         |&lt;BR /&gt;                          |         |     | mirror  |     |         |&lt;BR /&gt;                          |---------|     |---------|     |---------|&lt;BR /&gt;&lt;BR /&gt;  hardware address          52.6.0          52.5.0          52.4.0&lt;BR /&gt;  device file (/dev/dsk/)   c0t6d0          c0t5d0          c0t4d0&lt;BR /&gt;&lt;BR /&gt;This scenario involves a head crash of the disk at hardware address&lt;BR /&gt;52.6.0.&lt;BR /&gt;&lt;BR /&gt;[Step 4.1]&lt;BR /&gt;&lt;BR /&gt;Shutdown the system, have the customer engineer replace the faulty&lt;BR /&gt;disk, and then boot the system in single-user mode from the alternate&lt;BR /&gt;boot disk.  If you only have two disks in the root volume group, then&lt;BR /&gt;you will need to override quorum as you boot.  Note that you don't have&lt;BR /&gt;to boot in single-user mode if all of the disk data is mirrored&lt;BR /&gt;elsewhere (but you may still have to override quorum).&lt;BR /&gt;&lt;BR /&gt;Note: If the disk being replaced is Hot-Pluggable (or Hot-Swappable) a&lt;BR /&gt;reboot may not be necessary.  Please inquire your customer engineer to&lt;BR /&gt;determine if a reboot is required.  If a reboot is not required replace the&lt;BR /&gt;disk and go on to step 4.2.&lt;BR /&gt;&lt;BR /&gt;For our example:&lt;BR /&gt;&lt;BR /&gt;  ISL&amp;gt; hpux -is (52.5.0;0)/stand/vmunix&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;  ISL&amp;gt; hpux -is -lq (52.5.0;0)/stand/vmunix&lt;BR /&gt;  (if you need to override quorum.)&lt;BR /&gt;&lt;BR /&gt;[Step 4.2]&lt;BR /&gt;&lt;BR /&gt;Restore the LVM configuration/headers onto the replaced disk from&lt;BR /&gt;your backup of the LVM configuration, activate the volume group&lt;BR /&gt;with the knowledge of the replaced disk, use mkboot to add boot&lt;BR /&gt;information, and syncronize the BDRA with these commands:&lt;BR /&gt;&lt;BR /&gt;    # vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t6d0&lt;BR /&gt;    # vgchange -a y /dev/vg00&lt;BR /&gt;    # mount /usr&lt;BR /&gt;    # mkboot /dev/rdsk/c0t6d0&lt;BR /&gt;    # mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c0t6d0&lt;BR /&gt;    # lvlnboot -R&lt;BR /&gt;&lt;BR /&gt;Note: If /usr doesn't reside in /dev/vg00 the volume group that does&lt;BR /&gt;contain /usr's logical volume will also have to be activated.&lt;BR /&gt;&lt;BR /&gt;At this point it is a good idea to verify that the BDRA information is&lt;BR /&gt;accurate.  This can be done with the lvlnboot comman using the -v&lt;BR /&gt;option.  Here is an example of the output:&lt;BR /&gt;&lt;BR /&gt;    # lvlnboot -v&lt;BR /&gt;    Boot Definitions for Volume Group /dev/vg00:&lt;BR /&gt;    Physical Volumes belonging in Root Volume Group:&lt;BR /&gt;            /dev/dsk/c0t6d0 (52.6.0) -- Boot Disk&lt;BR /&gt;            /dev/dsk/c0t5d0 (52.5.0) -- Boot Disk&lt;BR /&gt;            /dev/dsk/c0t4d0 (52.4.0)&lt;BR /&gt;    Boot: lvol1     on:     /dev/dsk/c0t6d0&lt;BR /&gt;                            /dev/dsk/c0t5d0&lt;BR /&gt;    Root: lvol3     on:     /dev/dsk/c0t6d0&lt;BR /&gt;                            /dev/dsk/c0t5d0&lt;BR /&gt;    Swap: lvol2     on:     /dev/dsk/c0t6d0&lt;BR /&gt;                            /dev/dsk/c0t5d0&lt;BR /&gt;    Dump: lvol2     on:     /dev/dsk/c0t6d0, 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note: You must have performed the command vgcfgbackup to save off&lt;BR /&gt;      the headers prior to the disk failure (refer to Appendix A.).&lt;BR /&gt;&lt;BR /&gt;[Step 4.3]&lt;BR /&gt;&lt;BR /&gt;Now, synchronize mirrored logical volumes:&lt;BR /&gt;&lt;BR /&gt;  # vgsync /dev/vg00&lt;BR /&gt;&lt;BR /&gt;[Step 4.4]&lt;BR /&gt;&lt;BR /&gt;If you have any logical volumes that resided on the faulty disk that&lt;BR /&gt;were not mirrored, you will need to recreate them as per steps 1.4&lt;BR /&gt;and 1.5 from chapter 1.&lt;BR /&gt;&lt;BR /&gt;[Step 4.5]&lt;BR /&gt;&lt;BR /&gt;The final step in the recovery process is to reboot the system.  When&lt;BR /&gt;the system restarts, the recovery process will be complete.&lt;BR /&gt;&lt;BR /&gt;  # cd /&lt;BR /&gt;  # shutdown -r&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;At this stage, your system should be fully recovered.  It is a good idea to&lt;BR /&gt;verify the system can be booted from the newly replaced drive.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------------------------------------&lt;BR /&gt;APPENDIX  A:    Preparing for the Recovery of an LVM&lt;BR /&gt;System&lt;BR /&gt;-----------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;These are procedures to ensure that the system's data and&lt;BR /&gt;configuration are recoverable in the event of a system failure.&lt;BR /&gt;&lt;BR /&gt;1. Load any patches for LVM.&lt;BR /&gt;&lt;BR /&gt;2. Regularly back up your entire system.&lt;BR /&gt;&lt;BR /&gt;        Without a valid backup, you run a real chance of losing some or&lt;BR /&gt;        all of your data.  Ensure that you back up ALL of your important&lt;BR /&gt;        data, including the operating system directories such as:&lt;BR /&gt;&lt;BR /&gt;                 /&lt;BR /&gt;                 /usr&lt;BR /&gt;                 /dev&lt;BR /&gt;                 /etc&lt;BR /&gt;                ...and so on.&lt;BR /&gt;&lt;BR /&gt;        In addition, regularly test that your backups are working by&lt;BR /&gt;        restoring a test file randomly from your backups.  It is risky&lt;BR /&gt;        to assume that your backup is working because it is not logging&lt;BR /&gt;        any errors.  Many backup utilities have the capability to do&lt;BR /&gt;        some sort of validation of the backup media.  For example,&lt;BR /&gt;        fbackup has the -N option that can allow you to check for&lt;BR /&gt;        discrepancies between backup indices and what is actually on&lt;BR /&gt;        the tape.  Refer to the fbackup(1M) man page for more information.&lt;BR /&gt;&lt;BR /&gt;        Use make_recovery to create a bootable recovery media.&lt;BR /&gt;&lt;BR /&gt;3. Back up the important files separately.&lt;BR /&gt;&lt;BR /&gt;        Take an extra copy of the very important files, preferably to&lt;BR /&gt;        another system as well as to another tape.  This will speed up&lt;BR /&gt;        recovery in the event of a system crash.  The files that should&lt;BR /&gt;        be backed up are:&lt;BR /&gt;&lt;BR /&gt;                /etc/passwd&lt;BR /&gt;                /etc/group&lt;BR /&gt;                /etc/lvmtab&lt;BR /&gt;                /etc/lvmconf/*&lt;BR /&gt;                /etc/fstab&lt;BR /&gt;&lt;BR /&gt;        There are many other important files on your system that you&lt;BR /&gt;        may wish to back up separately.  The files listed above are&lt;BR /&gt;        required to ensure a smooth system recovery.&lt;BR /&gt;&lt;BR /&gt;4. Regularly print out the configuration of your system.&lt;BR /&gt;&lt;BR /&gt;        The configuration details stored on the system may not be&lt;BR /&gt;        accessible during a recovery.  A printed copy is an invaluable&lt;BR /&gt;        reference.  We recommend printing the configuration details&lt;BR /&gt;        once a week and every time a change is made.  One thing to note&lt;BR /&gt;        is that some of the commands outlined below create large amounts&lt;BR /&gt;        of output.  An alternative to printing them is to output the&lt;BR /&gt;        information to a file and then storing the file off to tape.&lt;BR /&gt;        This allows quick recovery of the information when needed.  You&lt;BR /&gt;        could include this configuration file with the backup in step 3.&lt;BR /&gt;&lt;BR /&gt;        The easiest way to save the configuration is to set up a cron&lt;BR /&gt;        job to run regularly, so that even if you don't remember to do&lt;BR /&gt;        it, the system will.&lt;BR /&gt;&lt;BR /&gt;        The output from the following commands is recommended:&lt;BR /&gt;&lt;BR /&gt;        /usr/sbin/ioscan  -fk&lt;BR /&gt;&lt;BR /&gt;        /usr/sbin/vgdisplay  -v&lt;BR /&gt;&lt;BR /&gt;        /usr/sbin/lvlnboot  -v&lt;BR /&gt;&lt;BR /&gt;        /usr/sbin/lvdisplay -v /dev/vgXX/lvYY  (for every logical volume)&lt;BR /&gt;&lt;BR /&gt;        /usr/sbin/pvdisplay  -v  /dev/dsk/c#t#d0   (for every LVM disk)&lt;BR /&gt;&lt;BR /&gt;        lp /etc/fstab&lt;BR /&gt;&lt;BR /&gt;        As an alternative, an intelligent script can be written that&lt;BR /&gt;        will detect any changes in the configuration and only print out&lt;BR /&gt;        those changes.  An example script is included at the end of this&lt;BR /&gt;        appendix.&lt;BR /&gt;&lt;BR /&gt;5. Update the boot structures after every change to the root volume&lt;BR /&gt;   group.&lt;BR /&gt;&lt;BR /&gt;        This task is only required if you are using LVM on your boot&lt;BR /&gt;        disk.  Whenever you make changes to the root volume group,&lt;BR /&gt;        which is usually named /dev/vg00, you must update the Boot&lt;BR /&gt;        Disk Reserved Area (BDRA) on the boot disk.  To do this issue&lt;BR /&gt;        the following command:&lt;BR /&gt;&lt;BR /&gt;        /etc/lvlnboot -R&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Example script for LVM configuration recording&lt;BR /&gt;**********************************************&lt;BR /&gt;NOTE: In some cases, this script may give an error when it runs the&lt;BR /&gt;first time.  If so, just rerun the script and it should run fine.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;WORKDIR=/lvmbackup   # directory is regularly backed up, of course&lt;BR /&gt;LOG=$WORKDIR/log&lt;BR /&gt;SYSADM=root&lt;BR /&gt;&lt;BR /&gt;if [ -f "$LOG" ]&lt;BR /&gt;then&lt;BR /&gt;  rm -f "$LOG"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ ! -d "$WORKDIR" ]&lt;BR /&gt;then&lt;BR /&gt;  echo "missing directory $WORKDIR"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;cd $WORKDIR&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/vgdisplay -v &amp;gt; vgdisplay.new&lt;BR /&gt;&lt;BR /&gt;LVMVGS=`grep "VG Name" vgdisplay.new | awk '{ print $3 }'`&lt;BR /&gt;LVMPVOLS=`grep "PV Name" vgdisplay.new | sort -u | awk '{ print $3 }'`&lt;BR /&gt;LVMLVOLS=`grep "LV Name" vgdisplay.new | sort -u | awk '{ print $3 }'`&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/pvdisplay -v $LVMPVOLS &amp;gt; pvdisplay.new&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/lvdisplay -v $LVMLVOLS &amp;gt; lvdisplay.new&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/lvlnboot -v &amp;gt; lvlnboot.new 2&amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/ioscan -fk &amp;gt; ioscan.new&lt;BR /&gt;&lt;BR /&gt;cp /etc/fstab fstab.new&lt;BR /&gt;&lt;BR /&gt;for CURRENT in *new&lt;BR /&gt;do&lt;BR /&gt;  ORIG=${CURRENT%.new}&lt;BR /&gt;&lt;BR /&gt;  if diff $CURRENT $ORIG &amp;gt; /dev/null&lt;BR /&gt;  then&lt;BR /&gt;    # files are the same....do nothing&lt;BR /&gt;    rm $CURRENT&lt;BR /&gt;  else&lt;BR /&gt;    # files differ...make the new file the current file, move old&lt;BR /&gt;    # one to file.old&lt;BR /&gt;&lt;BR /&gt;    echo `date` "The config for $ORIG has&lt;BR /&gt;    changed." &amp;gt;&amp;gt; $LOG&lt;BR /&gt;    echo "Copy of the new $ORIG config has&lt;BR /&gt;    been printed" &amp;gt;&amp;gt; $LOG&lt;BR /&gt;&lt;BR /&gt;  lp $CURRENT&lt;BR /&gt;  mv $ORIG ${ORIG}old&lt;BR /&gt;  mv $CURRENT $ORIG&lt;BR /&gt;  fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;if [ -s "$LOG" ]&lt;BR /&gt;then&lt;BR /&gt;  mailx -s "LVM configs have changed" $SYSADM &amp;lt; $LOG&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Oct 2005 14:14:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644514#M620214</guid>
      <dc:creator>Luk Vandenbussche</dc:creator>
      <dc:date>2005-10-07T14:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: problems with disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644515#M620216</link>
      <description>thanks very much torsten totzauer  this solved all my problems</description>
      <pubDate>Fri, 07 Oct 2005 14:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644515#M620216</guid>
      <dc:creator>emmett_2</dc:creator>
      <dc:date>2005-10-07T14:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: problems with disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644516#M620217</link>
      <description>BTW, the LVM software is installed by default, you have it installed too and you are using it successfully.</description>
      <pubDate>Fri, 07 Oct 2005 14:38:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644516#M620217</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2005-10-07T14:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: problems with disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644517#M620219</link>
      <description>I know you said this was a non-root volume group, but if it was vg00, you would have some extra steps if were an Itanium based system.  There is an idisk command to set up the EFI disk partitions.</description>
      <pubDate>Sun, 09 Oct 2005 12:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-disk/m-p/3644517#M620219</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2005-10-09T12:04:49Z</dc:date>
    </item>
  </channel>
</rss>

