<?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: replacing a bad disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492275#M215100</link>
    <description>Here is a link to a page that (among lots of other things) tells how to mirror the disk on an Itanium.  Note that the sample partition file is for 11.22:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechGroupTipDetailPage_IDX/1,2367,10402,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechGroupTipDetailPage_IDX/1,2367,10402,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a link to a PDF file which explains it a little better:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/getattachment.do?attachmentId=16428&amp;amp;ext=.pdf" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/getattachment.do?attachmentId=16428&amp;amp;ext=.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
    <pubDate>Wed, 23 Feb 2005 17:25:43 GMT</pubDate>
    <dc:creator>John Poff</dc:creator>
    <dc:date>2005-02-23T17:25:43Z</dc:date>
    <item>
      <title>replacing a bad disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492268#M215093</link>
      <description>Can someone detail the procedure for replacing a bad disk that fails in a mirror and NOT in a mirror??&lt;BR /&gt;&lt;BR /&gt;I am running a itanium system with a failed root drive on the mirror. I just need to know that steps. i can't find a good doc on the itrc. Have done this in the past but forgot how to do it. thanks.</description>
      <pubDate>Wed, 23 Feb 2005 16:04:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492268#M215093</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2005-02-23T16:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: replacing a bad disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492269#M215094</link>
      <description>LVM Quick reference &lt;BR /&gt; &lt;BR /&gt;   Regular tasks&lt;BR /&gt;        I)     How to create a Volume Group (VG).&lt;BR /&gt;        II)    How to create a Logical Volume (LV) and mount the filesystem.&lt;BR /&gt;        III)   How to add a disk to a Volume Group&lt;BR /&gt;        IV)    How to increase the size of a logical volume without&lt;BR /&gt;               OnlineJFS (advanced JFS)&lt;BR /&gt;        V)     How to remove a Logical Volume&lt;BR /&gt;        VI)    How to reduce the size of a logical volume without OnlineJFS&lt;BR /&gt;               (advanced JFS)&lt;BR /&gt;        VII)   How to remove a disk from a volume group&lt;BR /&gt;        VIII)  How to remove a volume group&lt;BR /&gt;        IX)    How to increase the primary swap&lt;BR /&gt;        X)     How to create a secondary boot disk LVM Mirroring&lt;BR /&gt;        XI)    How to mirror a logical volume&lt;BR /&gt;        XII)   How to unmirror a logical volume&lt;BR /&gt;        XIII)  How to create a mirrored boot disk&lt;BR /&gt;        XIV)   How to mirror a logical volume on a specific physical volume&lt;BR /&gt;               Physical Volume Group&lt;BR /&gt;        XV)    How to create a Physical Volume Group (PVG)&lt;BR /&gt;        XVI)   How to use PVG to mirror logical volumes on specific physical&lt;BR /&gt;               volumes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I) How to create a Volume Group (VG).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      Note The following example is using the disk c1t6d0, the volume&lt;BR /&gt;      group vg01 and the logical volume lvhome &lt;BR /&gt;&lt;BR /&gt;      1) Prepare the disk&lt;BR /&gt;            pvcreate /dev/rdsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;            Note if the disk was previously used in another VG use the&lt;BR /&gt;            following command instead:&lt;BR /&gt;&lt;BR /&gt;            pvcreate -f /dev/rdsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;      2) Create the Volume Group (VG):&lt;BR /&gt;         a) mknod /dev/vg01/group c 64 0x010000&lt;BR /&gt;&lt;BR /&gt;            Note: the group number (last parameter) is in hexadecimal and&lt;BR /&gt;            should be different for each volume group. For vg02, that number&lt;BR /&gt;            would be 0x020000. The default limit is 10 volume groups as set&lt;BR /&gt;    by the kernel parameter maxvgs.&lt;BR /&gt;&lt;BR /&gt;         b) vgcreate /dev/vg01 /dev/dsk/c1d0s2&lt;BR /&gt;&lt;BR /&gt;            Note: When a volume group is created the maximum physical&lt;BR /&gt;            extents per volume (max_pe parameter) will be set to the max_pe&lt;BR /&gt;            of the largest physical volume (PV) or 1016, which ever is&lt;BR /&gt;            greater, if no max_pe is specified. The effect of not setting&lt;BR /&gt;            the max_pe parameter would be that any PV added to the volume&lt;BR /&gt;            group in the future regardless of there size will be limited&lt;BR /&gt;            to the volume groug creation value of max_pe. Therefore,&lt;BR /&gt;            consider increasing the max_pe to accommodate PV's that may&lt;BR /&gt;            likely be larger than the largest PV used to create the Volume&lt;BR /&gt;            Group. The formula to use to determine the value is:&lt;BR /&gt;&lt;BR /&gt;            physical_extent_size * max_pe = size_of_the_disk.&lt;BR /&gt;&lt;BR /&gt;            The default value for physical_extent_size is 4M and the maximum&lt;BR /&gt;            value for max_pe is 65535 (example for 18 gig disk use a value&lt;BR /&gt;            4608 for max_pe: 4M * 4608 = 18 gig).&lt;BR /&gt;            There is also a default value of a maximum of 16 disks per&lt;BR /&gt;    volume group. The following is an example of the creation of a volume&lt;BR /&gt;            group modifying these two parameters (max_pe = 4608, maximum&lt;BR /&gt;            number of disk = 24):&lt;BR /&gt;&lt;BR /&gt;            vgcreate -e 4608 -p 24 /dev/vg01 /dev/dsk/c1d0s2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;II) How to create a Logical Volume (LV) and mount the filesystem.&lt;BR /&gt;      1) Create the Logical Volume (LV)&lt;BR /&gt;            lvcreate -L 120 -n lvhome /dev/vg01&lt;BR /&gt;            Note: this will create a logical volume of 120 meg.&lt;BR /&gt;      2) Create the filesystem&lt;BR /&gt;            newfs -F vxfs /dev/vg01/rlvhome&lt;BR /&gt;            Note: to create an hfs filesystem change vxfs to&lt;BR /&gt;            hfs in the previous command.&lt;BR /&gt;      3) Mount the Logical Volume:&lt;BR /&gt;         a) mkdir /home&lt;BR /&gt;         b) mount /dev/vg01/lvhome /home&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;III) How to add a disk to a Volume Group&lt;BR /&gt;      Note The following examples is using the disk c1t6d0 and the volume&lt;BR /&gt;      group vg01&lt;BR /&gt;&lt;BR /&gt;      1) Prepare the disk&lt;BR /&gt;            pvcreate /dev/rdsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;         Note if the disk was previously used in another VG use the&lt;BR /&gt;         following command instead:&lt;BR /&gt;&lt;BR /&gt;            pvcreate -f /dev/rdsk/c1t6d0&lt;BR /&gt;      &lt;BR /&gt;            Note: Use caution when using pvcreate -f as this will&lt;BR /&gt;            overwrite the existing volume group information on the disk.&lt;BR /&gt;      &lt;BR /&gt;      2) Add the disk to the Volume Group&lt;BR /&gt;            vgextend /dev/vg01 /dev/dsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IV) How to increase the size of a logical volume without online JFS&lt;BR /&gt;    (advanced JFS).&lt;BR /&gt;      Note: the following example is using the volume group vg01 and the&lt;BR /&gt;      logical volume lvhome &lt;BR /&gt;&lt;BR /&gt;      Note: Increasing the root filesystem (/) is not feasible&lt;BR /&gt;&lt;BR /&gt;      1) lvextend -L 240 /dev/vg01/lvhome&lt;BR /&gt;         The new total size will be 240M.&lt;BR /&gt;      2) umount /home&lt;BR /&gt;         Note: If the filesystem is in use, it is impossible to unmount it.&lt;BR /&gt;         Therefore stop all the processes (applications) that use the&lt;BR /&gt;         filesystem then unmount it.&lt;BR /&gt;         Processes that use /usr and /var cannot be all stopped,&lt;BR /&gt;         the only solution is to reboot in single user mode.&lt;BR /&gt;      3) extendfs -F vxfs /dev/vg01/rlvhome&lt;BR /&gt;      4) mount /dev/vg01/lvhome /home&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;V) How to remove a Logical Volume&lt;BR /&gt;      Note: the following example is using the volume group vg01 and the&lt;BR /&gt;      logical volume lvhome &lt;BR /&gt;      1) Backup all user data&lt;BR /&gt;      2) Umount the filesystem&lt;BR /&gt;            umount /home&lt;BR /&gt;      3) remove the Logical volume&lt;BR /&gt;            lvremove /dev/vg01/lvhome&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;VI) How to reduce the size of a logical volume without online JFS (advanced JFS)&lt;BR /&gt;      Note: the following example is using the volume group vg01 and the&lt;BR /&gt;      logical volume lvhome &lt;BR /&gt;      1) Backup all user data&lt;BR /&gt;      2) Umount the filesystem&lt;BR /&gt;            umount /home&lt;BR /&gt;      3) Reduce the size&lt;BR /&gt;            lvreduce -L 60 /dev/vg01/lvhome&lt;BR /&gt;            Note: the new total size will be 60M.&lt;BR /&gt;      4) Re-create the filesystem&lt;BR /&gt;            newfs -F vxfs /dev/vg01/rlvhome&lt;BR /&gt;            Note: to create an hfs filesystem change vxfs by&lt;BR /&gt;            hfs in the previous command.&lt;BR /&gt;      5) Mount the Logical Volume:&lt;BR /&gt;            mount /dev/vg01/lvhome /home&lt;BR /&gt;      6) Restore the user data&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;VII) How to remove a disk from a volume group&lt;BR /&gt;      Note: the following example is using the disk c1t6d0 and the&lt;BR /&gt;      volume group vg01&lt;BR /&gt;&lt;BR /&gt;      1) Make sure that the disk is not in use:&lt;BR /&gt;            pvdisplay /dev/dsk/c1t6d0&lt;BR /&gt;         Look at line starting with Allocated PE the number at the end&lt;BR /&gt;         of the line should be 0. If it is not the disk is still in use.&lt;BR /&gt;      2) Remove the disk&lt;BR /&gt;            vgreduce /dev/vg01 /dev/dsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;VIII) How to remove a volume group&lt;BR /&gt;      Note: the following example is using the volume group vg01 and the&lt;BR /&gt;      logical volume lvhome &lt;BR /&gt;&lt;BR /&gt;      1) Backup all user data&lt;BR /&gt;      2) Find the name of all logical volume in this volume group&lt;BR /&gt;            vgdisplay -v /dev/vg01&lt;BR /&gt;      3) unmount all logical volumes&lt;BR /&gt;            Note: repeat the following command for each logical command&lt;BR /&gt;            umount /dev/vg01/lvhome&lt;BR /&gt;      4) Remove the volume group:&lt;BR /&gt;            vgexport /dev/vg01&lt;BR /&gt;            Note: using vgexport to remove a volume group is easier&lt;BR /&gt;            and faster than using the vgreduce on each physical volume&lt;BR /&gt;            except the last one, followed by a vgremove. The other&lt;BR /&gt;            advantage is that the /dev/vg01 directory is also removed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IX) How to increase the primary swap&lt;BR /&gt;&lt;BR /&gt;      Note: Because of the contiguous allocation policy, create a bigger&lt;BR /&gt;      logical volume and modify the Boot Data Reserved Area (BDRA) to make&lt;BR /&gt;      it primary.&lt;BR /&gt;&lt;BR /&gt;      1) lvcreate -C y -L 240 /dev/vg00&lt;BR /&gt;           The name of this new logical volume will be displayed on the&lt;BR /&gt;           screen, note it, it will be needed later. (let say it&lt;BR /&gt;           is /dev/vg00/lvol8)&lt;BR /&gt;           Note: This new logical volume has to be in vg00&lt;BR /&gt;      2) lvlnboot -v /dev/vg00&lt;BR /&gt;           This will display the current root and swap volumes&lt;BR /&gt;           Note: lvol2 is the default primary swap.&lt;BR /&gt;      3) lvlnboot -s /dev/vg00/lvol8 /dev/vg00&lt;BR /&gt;           Note: use the logical volume name from step 1&lt;BR /&gt;      4) lvlnboot -R /dev/vg00&lt;BR /&gt;           Recover any missing links to all of the logical volumes specified&lt;BR /&gt;           in the BDRA and update the BDRA of each bootable physical volume&lt;BR /&gt;           in the volume group&lt;BR /&gt;      5) reboot the system&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;X) How to create a secondary boot disk&lt;BR /&gt;      Note: This will create an identical copy of the current vg00. The&lt;BR /&gt;      new volume group needs to as big as vg00. This will also be a static&lt;BR /&gt;      version of the primary boot disk which could be use in case of&lt;BR /&gt;      problem.&lt;BR /&gt;&lt;BR /&gt;      Note: The following example is using the disk c1t6d0 and the&lt;BR /&gt;      volume group vg01&lt;BR /&gt;&lt;BR /&gt;      1) Initialize the disk and make it bootable&lt;BR /&gt;           pvcreate -B /dev/rdsk/c1t6d0&lt;BR /&gt;           Note: the -B parameter tells pvcreate that this will be a&lt;BR /&gt;           bootable disk.&lt;BR /&gt;           mkboot /dev/dsk/c1t6d0&lt;BR /&gt;           mkboot -a "hpux" /dev/rdsk/c1t6d0&lt;BR /&gt;      2) Create the volume group&lt;BR /&gt;           mkdir /dev/vg01&lt;BR /&gt;           mknod /dev/vg01/group c 64 0x010000&lt;BR /&gt;           vgcreate /dev/vg01 /dev/dsk/c1t6d0&lt;BR /&gt;      3) Find the size of each logical volume in vg00&lt;BR /&gt;           vgdisplay -v /dev/vg00 | more&lt;BR /&gt;           look at LV Size (Mbytes) for each logical volume and note it.&lt;BR /&gt;           Note: this example will use these value:&lt;BR /&gt;                lvol1 84M&lt;BR /&gt;                lvol2 256M&lt;BR /&gt;                lvol3 140M&lt;BR /&gt;                lvol4 500M&lt;BR /&gt;                lvol5 64M&lt;BR /&gt;                lvol6 20M&lt;BR /&gt;                lvol7 500M&lt;BR /&gt;                lvol8 500M&lt;BR /&gt;&lt;BR /&gt;         Note: The size of the new logical volumes needs to be exactly the&lt;BR /&gt;         same as the size of the logical volumes on the primary root disk.&lt;BR /&gt;      4) Create the first 3 logical volumes contiguous (needed by the system)&lt;BR /&gt;            lvol1:&lt;BR /&gt;                lvcreate -L 84 -C y -r n /dev/vg01&lt;BR /&gt;            lvol2:&lt;BR /&gt;                lvcreate -L 256 -C y -r n /dev/vg01&lt;BR /&gt;            lvol3:&lt;BR /&gt;                lvcreate -L 140 -C y -r n /dev/vg01&lt;BR /&gt;      5) Now create the other logical volumes&lt;BR /&gt;            lvol4:&lt;BR /&gt;                lvcreate -L 500 /dev/vg01&lt;BR /&gt;            lvol5:&lt;BR /&gt;                lvcreate -L 64 /dev/vg01&lt;BR /&gt;            lvol6:&lt;BR /&gt;                lvcreate -L 20 /dev/vg01&lt;BR /&gt;            lvol7:&lt;BR /&gt;                lvcreate -L 500 /dev/vg01&lt;BR /&gt;            lvol8:&lt;BR /&gt;                lvcreate -L 500 /dev/vg01&lt;BR /&gt;        6) Copy each logical volume except the swap which is usually lvol2.&lt;BR /&gt;            dd if=/dev/vg00/rlvol1 of=/dev/vg01/rlvol1 bs=1024k&lt;BR /&gt;            dd if=/dev/vg00/rlvol3 of=/dev/vg01/rlvol3 bs=1024k&lt;BR /&gt;            dd if=/dev/vg00/rlvol4 of=/dev/vg01/rlvol4 bs=1024k&lt;BR /&gt;            dd if=/dev/vg00/rlvol5 of=/dev/vg01/rlvol5 bs=1024k&lt;BR /&gt;            dd if=/dev/vg00/rlvol6 of=/dev/vg01/rlvol6 bs=1024k&lt;BR /&gt;            dd if=/dev/vg00/rlvol7 of=/dev/vg01/rlvol7 bs=1024k&lt;BR /&gt;            dd if=/dev/vg00/rlvol8 of=/dev/vg01/rlvol8 bs=1024k&lt;BR /&gt;        7) Verify the integrity of all the new volume except swap.&lt;BR /&gt;            Note: The following lines are base on a system with vxfs&lt;BR /&gt;            filesystems except for /stand (lvol1) which needs to be hfs.&lt;BR /&gt;            fsck -F hfs /dev/vg01/rlvol1&lt;BR /&gt;            fsck -F vxfs /dev/vg01/rlvol3&lt;BR /&gt;            fsck -F vxfs /dev/vg01/rlvol4&lt;BR /&gt;            fsck -F vxfs /dev/vg01/rlvol5&lt;BR /&gt;            fsck -F vxfs /dev/vg01/rlvol6&lt;BR /&gt;            fsck -F vxfs /dev/vg01/rlvol7&lt;BR /&gt;            fsck -F vxfs /dev/vg01/rlvol8&lt;BR /&gt;        8) Now configure the Boot Data Reserved Area (BDRA)&lt;BR /&gt;           Note: The following commands assume that /stand is lvol1,&lt;BR /&gt;           swap is lvol2 and / is lvol3&lt;BR /&gt;            lvlnboot -b /dev/vg01/lvol1 /dev/vg01&lt;BR /&gt;            lvlnboot -r /dev/vg01/lvol3 /dev/vg01&lt;BR /&gt;            lvlnboot -s /dev/vg01/lvol2 /dev/vg01&lt;BR /&gt;            lvlnboot -d /dev/vg01/lvol2 /dev/vg01&lt;BR /&gt;        9) Modify the fstab file on the new disk.&lt;BR /&gt;            a) If /tmp_mnt doesn't exist create it&lt;BR /&gt;               mkdir /tmp_mnt&lt;BR /&gt;            b) Mount the new root filesystem on /tmp_mnt&lt;BR /&gt;               mount /dev/vg01/lvol3 /tmp_mnt&lt;BR /&gt;            c) change to etc directory on the new disk.&lt;BR /&gt;               cd /tmp/etc&lt;BR /&gt;            d) Modify all occurence of vg00 in the fstab for vg01&lt;BR /&gt;               sed "s/vg00/vg01/" fstab &amp;gt; fstab.out&lt;BR /&gt;               mv fstab fstab.BAK&lt;BR /&gt;               mv fstab.out fstab&lt;BR /&gt;            e) Unmount the new root filesystem&lt;BR /&gt;               cd /&lt;BR /&gt;               umount /tmp_mnt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XI) How to mirror a logical volume&lt;BR /&gt;      Note: Data mirroring is provided by an additionnal purchasable&lt;BR /&gt;      software product called MirrorDisk/UX.&lt;BR /&gt;&lt;BR /&gt;      Note: the following example is using the volume group vg01 and the&lt;BR /&gt;      logical volume lvhome &lt;BR /&gt;&lt;BR /&gt;      To add a mirror to an existing logical volume:&lt;BR /&gt;          lvextend -m 1 /dev/vg01/lvhome&lt;BR /&gt;&lt;BR /&gt;      This will add 1 mirror (2 copies of the filesystem).&lt;BR /&gt;      To add 2 mirrors (3 copies of the filesystem) use -m 2 instead.&lt;BR /&gt;&lt;BR /&gt;      To create a new logical volume of 200M with 1 mirror:&lt;BR /&gt;          lvcreate -m 1 -L 200 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XII) How to unmirror a logical volume&lt;BR /&gt;      Note: the following example is using the volume group vg01 and the&lt;BR /&gt;      logical volume lvhome &lt;BR /&gt;&lt;BR /&gt;      lvreduce -m 0 /dev/vg01/lvhome&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XIII) How to create a mirrored boot disk&lt;BR /&gt;&lt;BR /&gt;      Note the following example is using the disk c1t6d0 as the&lt;BR /&gt;      mirrored boot disk and c0t6d0 as the boot disk.&lt;BR /&gt;&lt;BR /&gt;      1) Initialize the disk and make it bootable&lt;BR /&gt;        pvcreate -B /dev/rdsk/c1t6d0&lt;BR /&gt;            Note: the -B parameter tell pvcreate that this will be a&lt;BR /&gt;            bootable disk.&lt;BR /&gt;      2) Add the physical volume to the volume group&lt;BR /&gt;            vgextend /dev/vg01 /dev/dsk/c1t6d0&lt;BR /&gt;      3) Use mkboot to place the boot utilities in the boot area and add&lt;BR /&gt;         the AUTO file.&lt;BR /&gt;            mkboot /dev/dsk/c1t6d0&lt;BR /&gt;            mkboot -a "hpux -lq" /dev/rdsk/c1t6d0&lt;BR /&gt;      4) Use mkboot to update the AUTO file on the primary boot&lt;BR /&gt;         disk.&lt;BR /&gt;            mkboot -a "hpux -lq" /dev/rdsk/c0t6d0&lt;BR /&gt;      5) Mirror the stand, root and swap logical volumes&lt;BR /&gt;            lvextend -m 1 /dev/vg00/lvol1&lt;BR /&gt;            lvextend -m 1 /dev/vg00/lvol2&lt;BR /&gt;            lvextend -m 1 /dev/vg00/lvol3&lt;BR /&gt;         Note: LVM will resynchronize the new mirror copies. This step will&lt;BR /&gt;         takes several minutes&lt;BR /&gt;&lt;BR /&gt;         Repeat the lvextend for all other logical volumes on the boot&lt;BR /&gt;         mirror.&lt;BR /&gt;      6) Modify your alternate boot path to point to the mirror copy of the&lt;BR /&gt;         boot disk.&lt;BR /&gt;            setboot -a 8/8.6.0  # Use the Hardware path for your new&lt;BR /&gt;                                         boot disk.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XIV) How to mirror a logical volume on a specific physical volume&lt;BR /&gt;&lt;BR /&gt;      Note: the following example, is using the disk c1t6d0 for the&lt;BR /&gt;      primary copy, c2t6d0 for the mirror copy, the volume group vg01,&lt;BR /&gt;      the logical volume lvhome and the size will be 200M&lt;BR /&gt;&lt;BR /&gt;      lvcreate -n lvhome /dev/vg01&lt;BR /&gt;      lvextend -L 200 /dev/vg01/lvhome /dev/dsk/c1t6d0&lt;BR /&gt;      lvextend -m 1 /dev/vg01/lvhome /dev/dsk/c2t6d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XV) How to create a Physical Volume Group (PVG)&lt;BR /&gt;      create a file named /etc/lvmpvg with the following syntax:&lt;BR /&gt;           VG  vg_name&lt;BR /&gt;           PVG pvg_name&lt;BR /&gt;           pv_path&lt;BR /&gt;              ...&lt;BR /&gt;           PVG pvg_name&lt;BR /&gt;           pv_path&lt;BR /&gt;              ...&lt;BR /&gt;           VG  vg_name&lt;BR /&gt;           PVG pvg_name&lt;BR /&gt;           pv_path&lt;BR /&gt;              ...&lt;BR /&gt;&lt;BR /&gt;       For example, to use two PVGs in vg01 with c1t6d0 and c2t6d0&lt;BR /&gt;       in one PVG (PVG0), c3t6d0 and c4t6d0 in the other PVG (PVG1) the&lt;BR /&gt;       contents of the file (/etc/lvmpvg) should be:&lt;BR /&gt;&lt;BR /&gt;           VG /dev/vg01&lt;BR /&gt;           PVG PVG0&lt;BR /&gt;           /dev/dsk/c1t6d0&lt;BR /&gt;           /dev/dsk/c2t6d0&lt;BR /&gt;           PVG PVG1&lt;BR /&gt;           /dev/dsk/c3t6d0&lt;BR /&gt;           /dev/dsk/c4t6d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XVI)   How to use PVG to mirror logical volumes on specific physical volumes.&lt;BR /&gt;&lt;BR /&gt;      Note: in the following text, the volume group will be vg01 and the&lt;BR /&gt;      logical volume will be name lvhome &lt;BR /&gt;&lt;BR /&gt;      After creating the /etc/lvmpvg file as describe above, each copy&lt;BR /&gt;      of your mirror could be force on different PVG. To achieve this if&lt;BR /&gt;      the logical volume is already created but not mirrored yet, use the&lt;BR /&gt;      following command:&lt;BR /&gt;             lvchange -s g /dev/vg01/lvhome&lt;BR /&gt;             lvextend -m 1 /dev/vg01/lvhome&lt;BR /&gt;      If the logical volume is not created yet:&lt;BR /&gt;             lvcreate -s g -m 1 -n lvhome -L 200 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# eof&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Man Page Located at /usr/local/web/howto/hpux/both/LVMCookbook&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Feb 2005 16:18:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492269#M215094</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-02-23T16:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: replacing a bad disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492270#M215095</link>
      <description>vgcfgbackup&lt;BR /&gt;&lt;BR /&gt;Try and backup the configuration.&lt;BR /&gt;&lt;BR /&gt;If possible, vgreduce /dev/vg01 /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;use a real vg and the bad disk.&lt;BR /&gt;&lt;BR /&gt;Replace the disk, if its a hot swap do it while the system is running.&lt;BR /&gt;&lt;BR /&gt;ioscan -fnC disk&lt;BR /&gt;&lt;BR /&gt;pvcreate the disk.&lt;BR /&gt;&lt;BR /&gt;Depending on whether you succeeded with the vgcfgbackup you may be able to vgcfgrestore&lt;BR /&gt;&lt;BR /&gt;If you suceeded in reducing the volume group you can now vgextend the disk back into the volume group.&lt;BR /&gt;&lt;BR /&gt;LVM provides you a lot of options.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 23 Feb 2005 16:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492270#M215095</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-02-23T16:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: replacing a bad disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492271#M215096</link>
      <description>don't you have to break the mirror using &lt;BR /&gt;&lt;BR /&gt;lvextend -m 0 /dev/vgXX/lvolX</description>
      <pubDate>Wed, 23 Feb 2005 16:24:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492271#M215096</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2005-02-23T16:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: replacing a bad disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492272#M215097</link>
      <description>vgcfgrestore -n /dev/vg00 /dev/dsk/c?t?d?&lt;BR /&gt;&lt;BR /&gt;mkboot /dev/dsk/c?t?d?&lt;BR /&gt;mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/dsk/c?t?d?&lt;BR /&gt;&lt;BR /&gt;vgchange -a y /dev/vg00&lt;BR /&gt;lvlnboot -Rv /dev/vg00&lt;BR /&gt;&lt;BR /&gt;vgsync /dev/vg00</description>
      <pubDate>Wed, 23 Feb 2005 16:30:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492272#M215097</guid>
      <dc:creator>Rajeev Tyagi</dc:creator>
      <dc:date>2005-02-23T16:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: replacing a bad disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492273#M215098</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have an Itanic^H^Hium box and I had a mirrored root disk go bad a couple of weeks ago.  Before doing the LVM steps mentioned above you will first need to do the 'idisk' command to partition the replacement hard disk.  &lt;BR /&gt;&lt;BR /&gt;Take a look at this link for the man page on 'idisk':&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B3921-90010/idisk.1M.html" target="_blank"&gt;http://www.docs.hp.com/en/B3921-90010/idisk.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Our box is running 11.23, but our guy used the parameters for 11.22, which meant that the 'vgcfgrestore' failed and complained about the disk not being big enough.&lt;BR /&gt;&lt;BR /&gt;For 11.22, your partition file (might) look like this (ours did):&lt;BR /&gt;&lt;BR /&gt;2&lt;BR /&gt;EFI 100MB&lt;BR /&gt;HPUX 100%&lt;BR /&gt;&lt;BR /&gt;For 11.23, it might look like this:&lt;BR /&gt;3&lt;BR /&gt;EFI 500MB&lt;BR /&gt;HPUX 100%&lt;BR /&gt;HPSP 400MB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Feb 2005 17:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492273#M215098</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2005-02-23T17:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: replacing a bad disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492274#M215099</link>
      <description>Replacing a disk with mirror&lt;BR /&gt;&lt;BR /&gt;1) # vgcfgrestore -n /dev/vgXX /dev/dsk/cXtYdZ&lt;BR /&gt;   # vgsync -a y /dev/vgXX&lt;BR /&gt;   &lt;BR /&gt;Replacing a disk without mirror&lt;BR /&gt;&lt;BR /&gt;1) # vgcfgrestore -n /dev/vgXX /dev/dsk/cXtYdZ&lt;BR /&gt;    do a pvdisplay on the disk and figure out the LVs on the disk&lt;BR /&gt;   then do a newfs on the lvols&lt;BR /&gt; &lt;BR /&gt;   # newfs -F vxfs -o largefiles /dev/vgXX/lvol5&lt;BR /&gt;   # mountall&lt;BR /&gt;   &lt;BR /&gt;   Restore the data from the backup&lt;BR /&gt;&lt;BR /&gt;Replacing the boot disk will be different and would involve commands to restore the BDRA using mkboot and lvlnboot commands</description>
      <pubDate>Wed, 23 Feb 2005 17:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492274#M215099</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2005-02-23T17:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: replacing a bad disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492275#M215100</link>
      <description>Here is a link to a page that (among lots of other things) tells how to mirror the disk on an Itanium.  Note that the sample partition file is for 11.22:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechGroupTipDetailPage_IDX/1,2367,10402,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechGroupTipDetailPage_IDX/1,2367,10402,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a link to a PDF file which explains it a little better:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/getattachment.do?attachmentId=16428&amp;amp;ext=.pdf" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/getattachment.do?attachmentId=16428&amp;amp;ext=.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Feb 2005 17:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-bad-disk/m-p/3492275#M215100</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2005-02-23T17:25:43Z</dc:date>
    </item>
  </channel>
</rss>

