<?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: MirrorDisk/UX users guide? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404237#M201478</link>
    <description>The Software Recovery Cookbook, in the LVM chapter (16) has a good section on MirrorDisk/UX.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/iv/enterService.do?ANSWER=HP-UX+Software+Recovery+Handbook&amp;amp;FROMID=English_SHW&amp;amp;NODEID=English_SHW%3A%3ADE_SW_UX_swrec_EN_01_E%2FQ1" target="_blank"&gt;http://www1.itrc.hp.com/service/iv/enterService.do?ANSWER=HP-UX+Software+Recovery+Handbook&amp;amp;FROMID=English_SHW&amp;amp;NODEID=English_SHW%3A%3ADE_SW_UX_swrec_EN_01_E%2FQ1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Wed, 20 Oct 2004 10:38:13 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2004-10-20T10:38:13Z</dc:date>
    <item>
      <title>MirrorDisk/UX users guide?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404232#M201473</link>
      <description>Does anyone know of a fairly comprehensive document/guide that is limited to using LVM to create a mirror set and replace a drive in a mirror set?&lt;BR /&gt;&lt;BR /&gt;Is it true that there is no mechanism that allows for a failed drive to simply be replaced and the mirror set rebuilds itself?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 20 Oct 2004 10:27:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404232#M201473</guid>
      <dc:creator>Tim Killinger</dc:creator>
      <dc:date>2004-10-20T10:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: MirrorDisk/UX users guide?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404233#M201474</link>
      <description>Hi Tim,&lt;BR /&gt;&lt;BR /&gt;I would check docs.hp.com for documentation.&lt;BR /&gt;Replacing a mirror is very simple. If the drive 's slot supports hot-pluggability, replace the drisk and do&lt;BR /&gt;&lt;BR /&gt;#vgcfgrestore -n vgxx /dev/rdsk/cxtydz&lt;BR /&gt;#vgchange -a y vgxx&lt;BR /&gt;#vgsync vgxx&lt;BR /&gt;&lt;BR /&gt;If it is a boot drive, then you will have to add couple more commands as you have to make it a boot disk prior to synchronizing the mirrors. Search the forums for 'boot mirrors' and you will find numerous threads with the solutions.&lt;BR /&gt;&lt;BR /&gt;Yes. It is true that there is no mechanism that allows a failed drive to be simply be replaced and the mirror rebuilds itself. You have to follow 'vgcfgrestore' process as indicated above.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 20 Oct 2004 10:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404233#M201474</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-20T10:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: MirrorDisk/UX users guide?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404234#M201475</link>
      <description>You can look for the documents in docs.hp.com and also there are couple of knowledge base documents on how to replace a failed drive.&lt;BR /&gt;&lt;BR /&gt;Refer the man page of all the lvm commands (lvcreate, lvextend, lvreduce) and read the explanation for -m option. That should pretty much answer the questions you have.&lt;BR /&gt;&lt;BR /&gt;With software mirroring, mirror will not rebuild yourself. &lt;BR /&gt;&lt;BR /&gt;I guess you are looking for something like hardware mirrors in compaq servers ? &lt;BR /&gt;&lt;BR /&gt;If you have a raid card and configure hardware mirroring, I believe you could just replace the drive and get the mirror set rebuild itself.</description>
      <pubDate>Wed, 20 Oct 2004 10:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404234#M201475</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-10-20T10:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: MirrorDisk/UX users guide?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404235#M201476</link>
      <description>You need LVM cook book. Also a gret resource - &lt;A href="http://docs.hp.com" target="_blank"&gt;http://docs.hp.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;LVM cook book attached.&lt;BR /&gt;&lt;BR /&gt;I) How to create a Volume Group (VG).&lt;BR /&gt;&lt;BR /&gt;II) How to create a Logical Volume (LV) and mount the filesystem.&lt;BR /&gt;&lt;BR /&gt;III) How to add a disk to a Volume Group&lt;BR /&gt;&lt;BR /&gt;IV) How to increase the size of a logical volume without OnlineJFS&lt;BR /&gt;&lt;BR /&gt;(advanced JFS)&lt;BR /&gt;&lt;BR /&gt;V) How to remove a Logical Volume&lt;BR /&gt;&lt;BR /&gt;VI) How to reduce the size of a logical volume without OnlineJFS&lt;BR /&gt;&lt;BR /&gt;(advanced JFS)&lt;BR /&gt;&lt;BR /&gt;VII) How to remove a disk from a volume group&lt;BR /&gt;&lt;BR /&gt;VIII) How to remove a volume group&lt;BR /&gt;&lt;BR /&gt;IX) How to increase the primary swap&lt;BR /&gt;&lt;BR /&gt;X) How to create a secondary boot disk&lt;BR /&gt;&lt;BR /&gt;LVM Mirroring&lt;BR /&gt;&lt;BR /&gt;XI) How to mirror a logical volume&lt;BR /&gt;&lt;BR /&gt;XII) How to unmirror a logical volume&lt;BR /&gt;&lt;BR /&gt;XIII) How to create a mirrored boot disk&lt;BR /&gt;&lt;BR /&gt;XIV) How to mirror a logical volume on a specific physical volume&lt;BR /&gt;&lt;BR /&gt;Physical Volume Group&lt;BR /&gt;&lt;BR /&gt;XV) How to create a Physical Volume Group (PVG)&lt;BR /&gt;&lt;BR /&gt;XVI) How to use PVG to mirror logical volumes on specific physical&lt;BR /&gt;&lt;BR /&gt;volumes. &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;I) How to create a Volume Group (VG). &lt;BR /&gt;&lt;BR /&gt;Note The following example is using the disk c1t6d0, the volume&lt;BR /&gt;&lt;BR /&gt;group vg01 and the logical volume lvhome  &lt;BR /&gt;&lt;BR /&gt;1) Prepare the disk&lt;BR /&gt;&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;&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;&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;&lt;BR /&gt;should be different for each volume group. For vg02, that number&lt;BR /&gt;&lt;BR /&gt;would be 0x020000. The default limit is 10 volume groups as set by&lt;BR /&gt;&lt;BR /&gt;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;&lt;BR /&gt;extents per volume (max_pe parameter) will be set to the max_pe&lt;BR /&gt;&lt;BR /&gt;of the largest physical volume (PV) or 1016, which ever is&lt;BR /&gt;&lt;BR /&gt;greater, if no max_pe is specified. The effect of not setting&lt;BR /&gt;&lt;BR /&gt;the max_pe parameter would be that any PV added to the volume&lt;BR /&gt;&lt;BR /&gt;group in the future regardless of there size will be limited&lt;BR /&gt;&lt;BR /&gt;to the volume groug creation value of max_pe. Therefore,&lt;BR /&gt;&lt;BR /&gt;consider increasing the max_pe to accommodate PV s that may&lt;BR /&gt;&lt;BR /&gt;likely be larger than the largest PV used to create the Volume&lt;BR /&gt;&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;&lt;BR /&gt;value for max_pe is 65535 (example for 18 gig disk use a value&lt;BR /&gt;&lt;BR /&gt;4608 for max_pe: 4M * 4608 = 18 gig).&lt;BR /&gt;&lt;BR /&gt;There is also a default value of a maximum of 16 disks per volume&lt;BR /&gt;&lt;BR /&gt;group. The following is an example of the creation of a volume&lt;BR /&gt;&lt;BR /&gt;group modifying these two parameters (max_pe = 4608, maximum&lt;BR /&gt;&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;&lt;BR /&gt;II) How to create a Logical Volume (LV) and mount the filesystem.&lt;BR /&gt;&lt;BR /&gt;1) Create the Logical Volume (LV)&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 120 -n lvhome /dev/vg01&lt;BR /&gt;&lt;BR /&gt;Note: this will create a logical volume of 120 meg.&lt;BR /&gt;&lt;BR /&gt;2) Create the filesystem&lt;BR /&gt;&lt;BR /&gt;newfs -F vxfs /dev/vg01/rlvhome&lt;BR /&gt;&lt;BR /&gt;Note: to create an hfs filesystem change vxfs to&lt;BR /&gt;&lt;BR /&gt;hfs in the previous command.&lt;BR /&gt;&lt;BR /&gt;3) Mount the Logical Volume:&lt;BR /&gt;&lt;BR /&gt;a) mkdir /home&lt;BR /&gt;&lt;BR /&gt;b) mount /dev/vg01/lvhome /home &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;III) How to add a disk to a Volume Group&lt;BR /&gt;&lt;BR /&gt;Note The following examples is using the disk c1t6d0 and the volume&lt;BR /&gt;&lt;BR /&gt;group vg01 &lt;BR /&gt;&lt;BR /&gt;1) Prepare the disk&lt;BR /&gt;&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;&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;&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;&lt;BR /&gt;vgextend /dev/vg01 /dev/dsk/c1t6d0 &lt;BR /&gt;&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;&lt;BR /&gt;(advanced JFS).&lt;BR /&gt;&lt;BR /&gt;Note: the following example is using the volume group vg01 and the&lt;BR /&gt;&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;&lt;BR /&gt;The new total size will be 240M.&lt;BR /&gt;&lt;BR /&gt;2) umount /home&lt;BR /&gt;&lt;BR /&gt;Note: If the filesystem is in use, it is impossible to unmount it.&lt;BR /&gt;&lt;BR /&gt;Therefore stop all the processes (applications) that use the&lt;BR /&gt;&lt;BR /&gt;filesystem then unmount it.&lt;BR /&gt;&lt;BR /&gt;Processes that use /usr and /var cannot be all stopped,&lt;BR /&gt;&lt;BR /&gt;the only solution is to reboot in single user mode.&lt;BR /&gt;&lt;BR /&gt;3) extendfs -F vxfs /dev/vg01/rlvhome&lt;BR /&gt;&lt;BR /&gt;4) mount /dev/vg01/lvhome /home &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;V) How to remove a Logical Volume&lt;BR /&gt;&lt;BR /&gt;Note: the following example is using the volume group vg01 and the&lt;BR /&gt;&lt;BR /&gt;logical volume lvhome&lt;BR /&gt;&lt;BR /&gt;1) Backup all user data&lt;BR /&gt;&lt;BR /&gt;2) Umount the filesystem&lt;BR /&gt;&lt;BR /&gt;umount /home&lt;BR /&gt;&lt;BR /&gt;3) remove the Logical volume&lt;BR /&gt;&lt;BR /&gt;lvremove /dev/vg01/lvhome &lt;BR /&gt;&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;&lt;BR /&gt;Note: the following example is using the volume group vg01 and the&lt;BR /&gt;&lt;BR /&gt;logical volume lvhome&lt;BR /&gt;&lt;BR /&gt;1) Backup all user data&lt;BR /&gt;&lt;BR /&gt;2) Umount the filesystem&lt;BR /&gt;&lt;BR /&gt;umount /home&lt;BR /&gt;&lt;BR /&gt;3) Reduce the size&lt;BR /&gt;&lt;BR /&gt;lvreduce -L 60 /dev/vg01/lvhome&lt;BR /&gt;&lt;BR /&gt;Note: the new total size will be 60M.&lt;BR /&gt;&lt;BR /&gt;4) Re-create the filesystem&lt;BR /&gt;&lt;BR /&gt;newfs -F vxfs /dev/vg01/rlvhome&lt;BR /&gt;&lt;BR /&gt;Note: to create an hfs filesystem change vxfs by&lt;BR /&gt;&lt;BR /&gt;hfs in the previous command.&lt;BR /&gt;&lt;BR /&gt;5) Mount the Logical Volume:&lt;BR /&gt;&lt;BR /&gt;mount /dev/vg01/lvhome /home&lt;BR /&gt;&lt;BR /&gt;6) Restore the user data &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;VII) How to remove a disk from a volume group&lt;BR /&gt;&lt;BR /&gt;Note: the following example is using the disk c1t6d0 and the&lt;BR /&gt;&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;&lt;BR /&gt;pvdisplay /dev/dsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;Look at line starting with Allocated PE the number at the end&lt;BR /&gt;&lt;BR /&gt;of the line should be 0. If it is not the disk is still in use.&lt;BR /&gt;&lt;BR /&gt;2) Remove the disk&lt;BR /&gt;&lt;BR /&gt;vgreduce /dev/vg01 /dev/dsk/c1t6d0 &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;VIII) How to remove a volume group&lt;BR /&gt;&lt;BR /&gt;Note: the following example is using the volume group vg01 and the&lt;BR /&gt;&lt;BR /&gt;logical volume lvhome  &lt;BR /&gt;&lt;BR /&gt;1) Backup all user data&lt;BR /&gt;&lt;BR /&gt;2) Find the name of all logical volume in this volume group&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v /dev/vg01&lt;BR /&gt;&lt;BR /&gt;3) unmount all logical volumes&lt;BR /&gt;&lt;BR /&gt;Note: repeat the following command for each logical command&lt;BR /&gt;&lt;BR /&gt;umount /dev/vg01/lvhome&lt;BR /&gt;&lt;BR /&gt;4) Remove the volume group:&lt;BR /&gt;&lt;BR /&gt;vgexport /dev/vg01&lt;BR /&gt;&lt;BR /&gt;Note: using vgexport to remove a volume group is easier&lt;BR /&gt;&lt;BR /&gt;and faster than using the vgreduce on each physical volume&lt;BR /&gt;&lt;BR /&gt;except the last one, followed by a vgremove. The other&lt;BR /&gt;&lt;BR /&gt;advantage is that the /dev/vg01 directory is also removed. &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;&lt;BR /&gt;logical volume and modify the Boot Data Reserved Area (BDRA) to make it&lt;BR /&gt;&lt;BR /&gt;primary. &lt;BR /&gt;&lt;BR /&gt;1) lvcreate -C y -L 240 /dev/vg00&lt;BR /&gt;&lt;BR /&gt;The name of this new logical volume will be displayed on the&lt;BR /&gt;&lt;BR /&gt;screen, note it, it will be needed later. (let say it&lt;BR /&gt;&lt;BR /&gt;is /dev/vg00/lvol8)&lt;BR /&gt;&lt;BR /&gt;Note: This new logical volume has to be in vg00&lt;BR /&gt;&lt;BR /&gt;2) lvlnboot -v /dev/vg00&lt;BR /&gt;&lt;BR /&gt;This will display the current root and swap volumes&lt;BR /&gt;&lt;BR /&gt;Note: lvol2 is the default primary swap.&lt;BR /&gt;&lt;BR /&gt;3) lvlnboot -s /dev/vg00/lvol8 /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Note: use the logical volume name from step 1&lt;BR /&gt;&lt;BR /&gt;4) lvlnboot -R /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Recover any missing links to all of the logical volumes specified&lt;BR /&gt;&lt;BR /&gt;in the BDRA and update the BDRA of each bootable physical volume in&lt;BR /&gt;&lt;BR /&gt;the volume group&lt;BR /&gt;&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;&lt;BR /&gt;Note: This will create an identical copy of the current vg00. The&lt;BR /&gt;&lt;BR /&gt;new volume group needs to as big as vg00. This will also be a static&lt;BR /&gt;&lt;BR /&gt;version of the primary boot disk which could be use in case of&lt;BR /&gt;&lt;BR /&gt;problem. &lt;BR /&gt;&lt;BR /&gt;Note: The following example is using the disk c1t6d0 and the&lt;BR /&gt;&lt;BR /&gt;volume group vg01 &lt;BR /&gt;&lt;BR /&gt;1) Initialize the disk and make it bootable&lt;BR /&gt;&lt;BR /&gt;pvcreate -B /dev/rdsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;Note: the -B parameter tells pvcreate that this will be a bootable&lt;BR /&gt;&lt;BR /&gt;disk.&lt;BR /&gt;&lt;BR /&gt;mkboot /dev/dsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;mkboot -a "hpux" /dev/rdsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;2) Create the volume group&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg01&lt;BR /&gt;&lt;BR /&gt;mknod /dev/vg01/group c 64 0x010000&lt;BR /&gt;&lt;BR /&gt;vgcreate /dev/vg01 /dev/dsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;3) Find the size of each logical volume in vg00&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v /dev/vg00 | more&lt;BR /&gt;&lt;BR /&gt;look at LV Size (Mbytes) for each logical volume and note it.&lt;BR /&gt;&lt;BR /&gt;Note: this example will use these value:&lt;BR /&gt;&lt;BR /&gt;lvol1 84M&lt;BR /&gt;&lt;BR /&gt;lvol2 256M&lt;BR /&gt;&lt;BR /&gt;lvol3 140M&lt;BR /&gt;&lt;BR /&gt;lvol4 500M&lt;BR /&gt;&lt;BR /&gt;lvol5 64M&lt;BR /&gt;&lt;BR /&gt;lvol6 20M&lt;BR /&gt;&lt;BR /&gt;lvol7 500M&lt;BR /&gt;&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;&lt;BR /&gt;same as the size of the logical volumes on the primary root disk.&lt;BR /&gt;&lt;BR /&gt;4) Create the first 3 logical volumes contiguous (needed by the system)&lt;BR /&gt;&lt;BR /&gt;lvol1:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 84 -C y -r n /dev/vg01&lt;BR /&gt;&lt;BR /&gt;lvol2:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 256 -C y -r n /dev/vg01&lt;BR /&gt;&lt;BR /&gt;lvol3:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 140 -C y -r n /dev/vg01&lt;BR /&gt;&lt;BR /&gt;5) Now create the other logical volumes&lt;BR /&gt;&lt;BR /&gt;lvol4:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 500 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;lvol5:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 64 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;lvol6:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 20 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;lvol7:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 500 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;lvol8:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 500 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;6) Copy each logical volume except the swap which is usually lvol2.&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg00/rlvol1 of=/dev/vg01/rlvol1 bs=1024k&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg00/rlvol3 of=/dev/vg01/rlvol3 bs=1024k&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg00/rlvol4 of=/dev/vg01/rlvol4 bs=1024k&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg00/rlvol5 of=/dev/vg01/rlvol5 bs=1024k&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg00/rlvol6 of=/dev/vg01/rlvol6 bs=1024k&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg00/rlvol7 of=/dev/vg01/rlvol7 bs=1024k&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg00/rlvol8 of=/dev/vg01/rlvol8 bs=1024k&lt;BR /&gt;&lt;BR /&gt;7) Verify the integrity of all the new volume except swap.&lt;BR /&gt;&lt;BR /&gt;Note: The following lines are base on a system with vxfs&lt;BR /&gt;&lt;BR /&gt;filesystems except for /stand (lvol1) which needs to be hfs.&lt;BR /&gt;&lt;BR /&gt;fsck -F hfs /dev/vg01/rlvol1&lt;BR /&gt;&lt;BR /&gt;fsck -F vxfs /dev/vg01/rlvol3&lt;BR /&gt;&lt;BR /&gt;fsck -F vxfs /dev/vg01/rlvol4&lt;BR /&gt;&lt;BR /&gt;fsck -F vxfs /dev/vg01/rlvol5&lt;BR /&gt;&lt;BR /&gt;fsck -F vxfs /dev/vg01/rlvol6&lt;BR /&gt;&lt;BR /&gt;fsck -F vxfs /dev/vg01/rlvol7&lt;BR /&gt;&lt;BR /&gt;fsck -F vxfs /dev/vg01/rlvol8&lt;BR /&gt;&lt;BR /&gt;8) Now configure the Boot Data Reserved Area (BDRA)&lt;BR /&gt;&lt;BR /&gt;Note: The following commands assume that /stand is lvol1,&lt;BR /&gt;&lt;BR /&gt;swap is lvol2 and / is lvol3&lt;BR /&gt;&lt;BR /&gt;lvlnboot -b /dev/vg01/lvol1 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;lvlnboot -r /dev/vg01/lvol3 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;lvlnboot -s /dev/vg01/lvol2 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;lvlnboot -d /dev/vg01/lvol2 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;9) Modify the fstab file on the new disk.&lt;BR /&gt;&lt;BR /&gt;a) If /tmp_mnt doesn't exist create it&lt;BR /&gt;&lt;BR /&gt;mkdir /tmp_mnt&lt;BR /&gt;&lt;BR /&gt;b) Mount the new root filesystem on /tmp_mnt&lt;BR /&gt;&lt;BR /&gt;mount /dev/vg01/lvol3 /tmp_mnt&lt;BR /&gt;&lt;BR /&gt;c) change to etc directory on the new disk.&lt;BR /&gt;&lt;BR /&gt;cd /tmp/etc&lt;BR /&gt;&lt;BR /&gt;d) Modify all occurence of vg00 in the fstab for vg01&lt;BR /&gt;&lt;BR /&gt;sed "s/vg00/vg01/" fstab &amp;gt; fstab.out&lt;BR /&gt;&lt;BR /&gt;mv fstab fstab.BAK&lt;BR /&gt;&lt;BR /&gt;mv fstab.out fstab&lt;BR /&gt;&lt;BR /&gt;e) Unmount the new root filesystem&lt;BR /&gt;&lt;BR /&gt;cd /&lt;BR /&gt;&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;&lt;BR /&gt;Note: Data mirroring is provided by an additionnal purchasable&lt;BR /&gt;&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;&lt;BR /&gt;logical volume lvhome  &lt;BR /&gt;&lt;BR /&gt;To add a mirror to an existing logical volume:&lt;BR /&gt;&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;&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;&lt;BR /&gt;lvcreate -m 1 -L 200 /dev/vg01 &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;XII) How to unmirror a logical volume&lt;BR /&gt;&lt;BR /&gt;Note: the following example is using the volume group vg01 and the&lt;BR /&gt;&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;&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;&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;&lt;BR /&gt; pvcreate -B /dev/rdsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;Note: the -B parameter tell pvcreate that this will be a&lt;BR /&gt;&lt;BR /&gt;bootable disk.&lt;BR /&gt;&lt;BR /&gt;2) Add the physical volume to the volume group&lt;BR /&gt;&lt;BR /&gt;vgextend /dev/vg01 /dev/dsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;3) Use mkboot to place the boot utilities in the boot area and add&lt;BR /&gt;&lt;BR /&gt;the AUTO file.&lt;BR /&gt;&lt;BR /&gt;mkboot /dev/dsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;mkboot -a "hpux -lq" /dev/rdsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;4) Use mkboot to update the AUTO file on the primary boot&lt;BR /&gt;&lt;BR /&gt;disk.&lt;BR /&gt;&lt;BR /&gt;mkboot -a "hpux -lq" /dev/rdsk/c0t6d0&lt;BR /&gt;&lt;BR /&gt;5) Mirror the stand, root and swap logical volumes&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol1&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol2&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol3&lt;BR /&gt;&lt;BR /&gt;Note: LVM will resynchronize the new mirror copies. This step will&lt;BR /&gt;&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;&lt;BR /&gt;mirror.&lt;BR /&gt;&lt;BR /&gt;6) Modify your alternate boot path to point to the mirror copy of the&lt;BR /&gt;&lt;BR /&gt;boot disk.&lt;BR /&gt;&lt;BR /&gt;setboot -a 8/8.6.0 # Use the Hardware path for your new&lt;BR /&gt;&lt;BR /&gt;boot disk. &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;&lt;BR /&gt;primary copy, c2t6d0 for the mirror copy, the volume group vg01,&lt;BR /&gt;&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;&lt;BR /&gt;lvextend -L 200 /dev/vg01/lvhome /dev/dsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg01/lvhome /dev/dsk/c2t6d0 &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;XV) How to create a Physical Volume Group (PVG)&lt;BR /&gt;&lt;BR /&gt;create a file named /etc/lvmpvg with the following syntax:&lt;BR /&gt;&lt;BR /&gt;VG vg_name&lt;BR /&gt;&lt;BR /&gt;PVG pvg_name&lt;BR /&gt;&lt;BR /&gt;pv_path&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;PVG pvg_name&lt;BR /&gt;&lt;BR /&gt;pv_path&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;VG vg_name&lt;BR /&gt;&lt;BR /&gt;PVG pvg_name&lt;BR /&gt;&lt;BR /&gt;pv_path&lt;BR /&gt;&lt;BR /&gt;... &lt;BR /&gt;&lt;BR /&gt;For example, to use two PVGs in vg01 with c1t6d0 and c2t6d0&lt;BR /&gt;&lt;BR /&gt;in one PVG (PVG0), c3t6d0 and c4t6d0 in the other PVG (PVG1) the&lt;BR /&gt;&lt;BR /&gt;contents of the file (/etc/lvmpvg) should be: &lt;BR /&gt;&lt;BR /&gt;VG /dev/vg01&lt;BR /&gt;&lt;BR /&gt;PVG PVG0&lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c1t6d0&lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c2t6d0&lt;BR /&gt;&lt;BR /&gt;PVG PVG1&lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c3t6d0&lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c4t6d0 &lt;BR /&gt;&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;&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;&lt;BR /&gt;of your mirror could be force on different PVG. To achieve this if&lt;BR /&gt;&lt;BR /&gt;the logical volume is already created but not mirrored yet, use the&lt;BR /&gt;&lt;BR /&gt;following command:&lt;BR /&gt;&lt;BR /&gt;lvchange -s g /dev/vg01/lvhome&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg01/lvhome&lt;BR /&gt;&lt;BR /&gt;If the logical volume is not created yet:&lt;BR /&gt;&lt;BR /&gt;lvcreate -s g -m 1 -n lvhome -L 200 /dev/vg01 &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Oct 2004 10:33:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404235#M201476</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-10-20T10:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: MirrorDisk/UX users guide?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404236#M201477</link>
      <description>Do you have access to the Knowledge Base?&lt;BR /&gt;If so:&lt;BR /&gt;LVM: Procedure for replacing an LVM disk in HP-UX 10.x and 11.x DocId: KBAN00000347 &lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;How to create a Mirrored Boot Disk on PA-RISC Systems - Cookbook DocId: LVMKBRC00005103 &lt;BR /&gt;</description>
      <pubDate>Wed, 20 Oct 2004 10:35:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404236#M201477</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2004-10-20T10:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: MirrorDisk/UX users guide?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404237#M201478</link>
      <description>The Software Recovery Cookbook, in the LVM chapter (16) has a good section on MirrorDisk/UX.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/iv/enterService.do?ANSWER=HP-UX+Software+Recovery+Handbook&amp;amp;FROMID=English_SHW&amp;amp;NODEID=English_SHW%3A%3ADE_SW_UX_swrec_EN_01_E%2FQ1" target="_blank"&gt;http://www1.itrc.hp.com/service/iv/enterService.do?ANSWER=HP-UX+Software+Recovery+Handbook&amp;amp;FROMID=English_SHW&amp;amp;NODEID=English_SHW%3A%3ADE_SW_UX_swrec_EN_01_E%2FQ1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 20 Oct 2004 10:38:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404237#M201478</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-10-20T10:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: MirrorDisk/UX users guide?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404238#M201479</link>
      <description>Doc on hot-spares:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5990-8172/5990-8172_top.html&amp;amp;con=/hpux/onlinedocs/5990-8172/00/01/108-con.html&amp;amp;toc=/hpux/onlinedocs/5990-8172/00/01/108-toc.html&amp;amp;searchterms=hot%7cspare%7cLVM&amp;amp;queryid=20041020-093435" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5990-8172/5990-8172_top.html&amp;amp;con=/hpux/onlinedocs/5990-8172/00/01/108-con.html&amp;amp;toc=/hpux/onlinedocs/5990-8172/00/01/108-toc.html&amp;amp;searchterms=hot%7cspare%7cLVM&amp;amp;queryid=20041020-093435&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Mirror/ux has a reason to exist. Its to keep the system running when one of the mirrored disks fail.&lt;BR /&gt;&lt;BR /&gt;Then its up to the admin to replace the disk, and re-mirror.&lt;BR /&gt;&lt;BR /&gt;Once I know the disk is dead, I follow this process guideline:&lt;BR /&gt;&lt;BR /&gt;vgreduce the disk out of the volume group, if possible.&lt;BR /&gt;&lt;BR /&gt;replace the disk, hot if its a hotswap disk.&lt;BR /&gt;&lt;BR /&gt;pvcreate the disk&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/dsk/c1t1d0&lt;BR /&gt;Then I vgextend /dev/vg00 /dev/dsk/c1t1d0&lt;BR /&gt;Then lvextend -m 1 /dev/vg00/lvolname /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;The product and process are designed to keep things running and make it possible for the sysadmin to replace and rebuild without bringing the system down.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 20 Oct 2004 10:38:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404238#M201479</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-20T10:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: MirrorDisk/UX users guide?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404239#M201480</link>
      <description>Thanks all,&lt;BR /&gt;&lt;BR /&gt;Although I'm new to UX, I used to run VMS system where we used software based "shadowing" to mirror the system drive, and it would rebuild automatically if a drive was replaced.&lt;BR /&gt;&lt;BR /&gt;But I see this won't be difficult to perform.</description>
      <pubDate>Wed, 20 Oct 2004 11:18:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404239#M201480</guid>
      <dc:creator>Tim Killinger</dc:creator>
      <dc:date>2004-10-20T11:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: MirrorDisk/UX users guide?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404240#M201481</link>
      <description>Hi Cheryl Griffin.&lt;BR /&gt;I have a question, could you help me?&lt;BR /&gt;I try to search the docID as you said but no result. &lt;BR /&gt;The screen like in the attachment.&lt;BR /&gt;I try many times but the same!&lt;BR /&gt;&lt;BR /&gt;Has any suggestion?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jimkery</description>
      <pubDate>Thu, 21 Oct 2004 04:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirrordisk-ux-users-guide/m-p/3404240#M201481</guid>
      <dc:creator>Hoang Chi Cong_1</dc:creator>
      <dc:date>2004-10-21T04:14:01Z</dc:date>
    </item>
  </channel>
</rss>

