{"id":115,"date":"2004-08-09T08:30:34","date_gmt":"2004-08-09T06:30:34","guid":{"rendered":""},"modified":"2007-07-03T10:25:27","modified_gmt":"2007-07-03T08:25:27","slug":"veritas-vxvm-suite-vxassist","status":"publish","type":"post","link":"http:\/\/www.lookit.org\/blog\/?p=115","title":{"rendered":"Veritas VxVM Suite : Vxassist"},"content":{"rendered":"<p>Petit tutorial sur Veritas VxVM, gestion du raid de VERITAS.<br \/><!--more--><\/p>\n<p><strong><font size=\"6\">vxassist<\/font><\/strong><\/p>\n<p>        <\/p>\n<dl><\/p>\n<dt><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#General\">General<\/a><\/p>\n<p>                <a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#1.%20Creating%20a%20Volume%20:\">1. Creating a Volume <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#1.1%20Creating%20a%20Concatenated%20Volume\"><\/p>\n<p>                      1.1 Creating a Concatenated Volume<\/a><\/dt>\n<p><\/p>\n<dt><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#1.2%20Creating%20a%20Striped%20Volume\">    1.2 Creating a<br \/>            Striped Volume<\/a><\/dt>\n<p><\/p>\n<dt><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#1.3%20Creating%20a%20RAID-5%20Volume\">    1.3 Creating a<br \/>            RAID-5 Volume<\/a><\/dt>\n<p><\/p>\n<dt><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#2.%20Extending%20a%20Volume\">2. Extending a Volume<\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#2.1%20Extending%20a%20volume%20up%20to%20certain%20length,\"><\/p>\n<p>                2.1 Extending a volume up to certain length,<\/a> <\/dt>\n<p><\/p>\n<dt>  <a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#2.2%20Extending%20by%20a%20Given%20Length\">  2.2<br \/>            Extending by a Given Length<\/p>\n<p>            <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#3.%20Shrinking%20a%20Volume\">3. Shrinking a Volume<\/a><\/dt>\n<p><\/p>\n<dt><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#3.1%20Shrinking%20to%20a%20Given%20Length\">    3.1<br \/>            Shrinking to a Given Length<\/p>\n<p>              <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#3.2%20Shrinking%20by%20a%20Given%20Length\">    3.2<br \/>                Shrinking by a Given Length<\/p>\n<p>              <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#4.%20Removing%20a%20Volume\">4. Removing a Volume<\/p>\n<p>              <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#5.%20Mirroring%20a%20Volume\">5. Mirroring a Volume<\/p>\n<p>              <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#5.1%20Creating%20&amp;%20Mirroring%20a%20New%20Volume\">   <br \/>                5.1 Creating &amp; Mirroring a New Volume<\/p>\n<p>              <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#5.2%20Mirroring%20an%20Existing%20Volume\">    5.2<br \/>                Mirroring an Existing Volume<\/p>\n<p>              <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#5.3%20Mirroring%20All%20Volumes\">    5.3 Mirroring<br \/>                All Volumes<\/p>\n<p>              <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#6.%20Removing%20a%20Mirror\">6. Removing a Mirror<\/p>\n<p>              <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#7.%20Adding%20a%20RAID-5%20Log\">7. Adding a RAID-5 Log<\/p>\n<p>              <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#8.%20Adding%20a%20DRL%20Log\">8. Adding a DRL Log<\/p>\n<p>            <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#9.%20Removing%20a%20RAID-5%20Log\">9.  Removing a RAID-5 Log<\/a><\/dt>\n<p><\/p>\n<dt><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#10.%20Preparing%20a%20Volume%20for%20Online%20Backup\">10.Preparing a Volume<br \/>            for Online Backup<\/p>\n<p>              <\/a><a href=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89#11%20Displaying%20Volume%20Configuration%20Information\">11.Displaying<br \/>                Volume Configuration Information<\/a><\/dt>\n<p><\/p>\n<dt><\/dt>\n<p><\/p>\n<dt><strong><a name=\"General\" title=\"General\"><\/a>General <\/strong><\/dt>\n<p><\/p>\n<dt>The vxassist utility in Veritas Volume Manager is used to create volumes, add<br \/>            mirrors and logs to existing volumes, extend and shrink existing volumes,<br \/>            provides for the migration of data from a specified set of disks, and provides<br \/>            facilities for the on-line backup of existing volumes.<\/dt>\n<p><\/p>\n<dt>The default behavior of vxassist is to create volumes in the rootdg diskgroup<br \/>            if diskgroup is not specified . The default length is taken as number of blocks<br \/>            but this can be specified in Kilobytes orMegabytes or Gigabytes.<\/dt>\n<p><\/dl>\n<p>        <font size=\"4\"><u>          <\/p>\n<p>vxassist command syntax :<\/p>\n<p>          <\/u><\/font> <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>        <\/p>\n<p><strong><font face=\"Courier New\" size=\"2\">     vxassist   volume_name [attributes]<\/font><\/strong><\/p>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><em><font size=\"2\"> <\/font><\/em>        <\/p>\n<dl><em><font size=\"2\">            <\/p>\n<dd>Commonly used options are given below (See man vxassist for complete list<br \/>              of supported options)<\/dd>\n<p>              <\/p>\n<dd>-g for specifying diskgroups<\/dd>\n<p>              <\/p>\n<dd>-b for background operation<\/dd>\n<p>              <\/p>\n<dd>-d file containing defaults for vxassist if not specified \/etc\/default\/vxassist<br \/>                is used<\/dd>\n<p>              <\/p>\n<dd><\/dd>\n<p>              <\/p>\n<dd>Keywords used are make , mirror , move , growto ,growby ,shrintto ,shirnkby<br \/>                ,snapstart , snapshot ,snapwait<\/dd>\n<p>              <\/font><\/em><font size=\"2\"><em>            <\/p>\n<dd><\/dd>\n<p>                <\/p>\n<dd>Attributes specify volumes layout disks controllar to include exclude etc<\/dd>\n<p>                <\/em><\/font><\/dl>\n<p>        <font size=\"4\"><u>          <\/p>\n<p>Device Nodes :<\/p>\n<p>          <\/u><\/font><u> <\/u>        <\/p>\n<dl><u>            <\/p>\n<dt>Default rootdg disk group.<\/dt>\n<p>              <\/u><font face=\"Courier New\" size=\"2\">            <\/p>\n<dt>Block Device Node \/dev\/vx\/dsk\/volume_name<\/dt>\n<p>                <\/p>\n<dt>Raw Device Node \/dev\/vx\/rdsk\/volume_name<\/dt>\n<p>                <\/font><u>            <\/p>\n<dt>Other DiskGroups<\/dt>\n<p>                  <\/u><font face=\"Courier New\" size=\"2\">            <\/p>\n<dt>Block Device Node \/dev\/vx\/dsk\/diskgroup_name\/volume_name<\/dt>\n<p>                    <\/p>\n<dt>Raw Device Node \/dev\/vx\/rdsk\/diskgroup_name\/volume_name<\/dt>\n<p>                    <\/font><\/dl>\n<p>        <\/p>\n<p><strong><font size=\"5\">_______________________________________<\/font><\/strong><\/p>\n<p>        <\/p>\n<p><strong><font size=\"5\"><a name=\"1. Creating a Volume :\" title=\"1. Creating a Volume :\"><\/a>1. Creating a Volume :<\/font><\/strong><\/p>\n<p>        <font size=\"4\">          <\/p>\n<p><a name=\"1.1 Creating a Concatenated Volume\" title=\"1.1 Creating a Concatenated Volume\"><\/a>1.1 <u> Creating a Concatenated Volume <\/u> <\/p>\n<p>          <\/font>          <\/p>\n<p>By default, vxassist creates a concatenated volume using the space available<br \/>            on a disk or on the number of disks in a diskgroup if the volume size specified<br \/>            is more then the one available on a single disk.<\/p>\n<p>        <\/p>\n<p>Disks can be specified from a diskgroup for a volume group but if not<br \/>          mentioned available disks are selected by the volume manager.<\/p>\n<p>        <em> <\/em>        <\/p>\n<p><em>Command syntax :<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxassist make volume_name<br \/>                  volume_length<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <em> <\/em>        <\/p>\n<dl><em>            <\/p>\n<dt>To create a new volume appvol of 100 MB in the default disk group rootdg with<br \/>              available disks:<\/dt>\n<p>              <\/em><\/dl>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<dl><font face=\"Symbol\" size=\"2\">                  <\/p>\n<dt>&middot; <\/dt>\n<p>                    <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist make appvol 100m <\/font><\/strong><\/dl>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><em> <\/em>        <\/p>\n<p><em>To create the volume appvol of 100MB on disk03<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist make appvol 100m<br \/>                  disk03<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>              <\/p>\n<p><strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><font size=\"4\">          <\/p>\n<p><a name=\"1.2 Creating a Striped Volume\" title=\"1.2 Creating a Striped Volume\"><\/a>1.2 <u> Creating a Striped Volume <\/u> <\/p>\n<p>          <\/font>          <\/p>\n<p>A striped volume contains at least one plex that consists of two or more<br \/>            subdisks located on two or more physical disks.<\/p>\n<p>        <em> <\/em>        <\/p>\n<p><em>Command Syntax :<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxassist make volume_name<br \/>                  length layout=stripe<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><em> <\/em>        <\/p>\n<p><em>To create a striped volume appvol2 with the default stripe unit size on the<br \/>          default number of disks<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist make appvol2<br \/>                  100m layout=stripe<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><em> <\/em>        <\/p>\n<p><em>To create a striped volume appvol2 100MB striped volume on three specific<br \/>          disks.<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist make appvol2 100m<br \/>                  layout=stripe disk04 disk05 disk06<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><font size=\"4\"> <\/font><\/p><\/blockquote>\n<p>          <font size=\"4\"> <\/font><\/p><\/blockquote>\n<p>        <font size=\"4\"> <\/font>        <\/p>\n<p><font size=\"4\"><a name=\"1.3 Creating a RAID-5 Volume\" title=\"1.3 Creating a RAID-5 Volume\"><\/a>1.3 <u> Creating a RAID-5 Volume <\/u> <\/font><\/p>\n<p>        <\/p>\n<p>A RAID-5 volume contains a RAID-5 plex that consists of two or more subdisks<br \/>          located on two or more physical disks. Only one RAID-5 plex can exist per<br \/>          volume. A RAID-5 volume may also contain one or more RAID-5 log plexes, which<br \/>          are used to log information about data and parity being written to the volume.<\/p>\n<p>        <em> <\/em>        <\/p>\n<p><em>Command Syntax :<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxassist make volume_name<br \/>                  length layout=raid5<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <em> <\/em>        <\/p>\n<p><em>To create the RAID-5 volume appvol4 with the default stripe unit size on the<br \/>          default number of disks with RAID-5 log,<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist make appvol4 100m<br \/>                  layout=raid5.<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><font size=\"5\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font size=\"5\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font size=\"5\"> <\/font><\/strong>        <\/p>\n<p><strong><font size=\"5\"><a name=\"2. Extending a Volume\" title=\"2. Extending a Volume\"><\/a>2. Extending a Volume<\/font><\/strong><\/p>\n<p>        <\/p>\n<p><strong>Caution<\/strong> : If you plan to use volume size change (grow or shrink ) on a<br \/>          volume with data make sure you have the good backup of the volume available<br \/>          before carrying out such operation .<\/p>\n<p>        <font size=\"4\">          <\/p>\n<p><a name=\"2.1 Extending a volume up to certain length,\" title=\"2.1 Extending a volume up to certain length,\"><\/a>2.1 <u> Extending a volume up to certain length, <\/u> <\/p>\n<p>          <\/font><em> <\/em>        <\/p>\n<p><em>Command syntax<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxassist growto volume_name<br \/>                  length<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <em> <\/em>        <\/p>\n<p><em>To extend vol3 upto 8000 sectors, type:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist growto vol3 8000<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><font size=\"4\"> <\/font><\/p><\/blockquote>\n<p>          <font size=\"4\"> <\/font><\/p><\/blockquote>\n<p>        <font size=\"4\"> <\/font>        <\/p>\n<p><font size=\"4\"><a name=\"2.2 Extending by a Given Length\" title=\"2.2 Extending by a Given Length\"><\/a>2.2 <u> Extending by a Given Length <\/u> <\/font><\/p>\n<p>        <em> <\/em>        <\/p>\n<p><em>Command Syntax<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxassist growby volume_name<br \/>                  length<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <em> <\/em>        <\/p>\n<p><em>To extend volapp by 1000 sectors, type:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist growby volapp 1000<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><font size=\"5\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font size=\"5\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font size=\"5\"> <\/font><\/strong>        <\/p>\n<p><strong><font size=\"5\"><a name=\"3. Shrinking a Volume\" title=\"3. Shrinking a Volume\"><\/a>3. Shrinking a Volume<\/font><\/strong><\/p>\n<p>        <\/p>\n<p><strong>Caution<\/strong> &#8211; Do not shrink a volume below the size of the file system. If<br \/>          you have a VxFS file system, you can shrink the file system and then shrink the<br \/>          volume. If you do not shrink the file system first, you risk unrecoverable data<br \/>          loss.<\/p>\n<p>        <\/p>\n<p>Always make sure you have a good backup of the data volume to be shirnked.<\/p>\n<p>        <font size=\"4\">          <\/p>\n<p><a name=\"3.1 Shrinking to a Given Length\" title=\"3.1 Shrinking to a Given Length\"><\/a>3.1 <u> Shrinking to a Given Length <\/u> <\/p>\n<p>          <\/font><em> <\/em>        <\/p>\n<p><em>Shrink a volume to a specific length as follows:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxassist shrinkto<br \/>                  volume_name length<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>          <\/p>\n<p>Make sure you do not shrink the volume below the current size of the file<br \/>            system or database using the volume. This command can be safely used on empty<br \/>            volumes.<\/p>\n<p>        <em> <\/em>        <\/p>\n<p><em>To shrink volcat to 1300 sectors, type:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist shrinkto volcat<br \/>                  1300<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><font size=\"4\"> <\/font><\/p><\/blockquote>\n<p>          <font size=\"4\"> <\/font><\/p><\/blockquote>\n<p>        <font size=\"4\"> <\/font>        <\/p>\n<p><font size=\"4\"><a name=\"3.2 Shrinking by a Given Length\" title=\"3.2 Shrinking by a Given Length\"><\/a>3.2 <u> Shrinking by a Given Length <\/u> <\/font><\/p>\n<p>        <font size=\"4\"> <\/font><em> <\/em>        <\/p>\n<p><em>Shrink a volume by a specific length as follows:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxassist shrinkby<br \/>                  volume_name length<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><em> <\/em>        <\/p>\n<p><em>To shrink volcat by 8000 sectors, type:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist shrinkby volapp2<br \/>                  8000<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><font size=\"5\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font size=\"5\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font size=\"5\"> <\/font><\/strong>        <\/p>\n<p><strong><font size=\"5\"><a name=\"4. Removing a Volume\" title=\"4. Removing a Volume\"><\/a>4. Removing a Volume<\/font><\/strong><\/p>\n<p>        <strong><font size=\"5\"> <\/font><\/strong>          <\/p>\n<p>Removing a volume requires removing all references to the volumes to be<br \/>            removed like unmounting the volume if mounted and removing its reference from<br \/>            \/etc\/vfstab .<\/p>\n<p>        <\/p>\n<p>An active volume has to be stopped first to stop all the activities to the<br \/>          volume only then it can be removed <\/p>\n<p>        <u><font size=\"4\">          <\/p>\n<p>Stopping Volume :<\/p>\n<p>          <\/font><\/u><em> <\/em>        <\/p>\n<p><em>Command Syntax<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxvol stop volume_name<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <em> <\/em>        <\/p>\n<p><em>To stop appvol1<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxvol stop appvol1<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <u><font size=\"4\">          <\/p>\n<p>Removing Volume<\/p>\n<p>          <\/font><\/u><em> <\/em>        <\/p>\n<p><em>Command Syntax<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxedit -rf rm volume_name<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <em> <\/em>        <\/p>\n<p><em>To remove the volume appvol1<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxedit -rf rm appvol11<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><font size=\"5\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font size=\"5\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font size=\"5\"> <\/font><\/strong>        <\/p>\n<p><strong><font size=\"5\"><a name=\"5. Mirroring a Volume\" title=\"5. Mirroring a Volume\"><\/a>5. Mirroring a Volume<\/font><\/strong><\/p>\n<p>        <\/p>\n<p>Mirroring allow data to be written simultaneously to two disks so that in<br \/>          case of failure of one disk data is available from the other mirrored disk. Boot<br \/>          disks can be mirriored to provide alternate booting disk .<\/p>\n<p>        <font size=\"4\"> <\/font>        <\/p>\n<p><font size=\"4\"><a name=\"5.1 Creating &amp; Mirroring a New Volume\" title=\"5.1 Creating &amp; Mirroring a New Volume\"><\/a>5.1 <u> Creating &amp; Mirroring a New Volume <\/u> <\/font><\/p>\n<p>        <em> <\/em>        <\/p>\n<p><em>Command Syntax :<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxassist make volume_name<br \/>                  length layout=mirror<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <em> <\/em>        <\/p>\n<p><em>To create the mirrored volume, appvol22 of 100mb<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist make appvol22 100m<br \/>                  layout=mirror<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <em> <\/em>        <\/p>\n<p><em>To create a volume with Dirty Region Logging enabled<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist make volume_name<br \/>                  length layout=mirror,log<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <font size=\"4\">          <\/p>\n<p><a name=\"5.2 Mirroring an Existing Volume\" title=\"5.2 Mirroring an Existing Volume\"><\/a>5.2 <u> Mirroring an Existing Volume <\/u> <\/p>\n<p>          <\/font><em> <\/em>        <\/p>\n<p><em>Command syntax<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxassist mirror volume_name<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <em> <\/em>        <\/p>\n<p><em>Creating a mirror of volume vol44:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist mirror vol44<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <font size=\"4\">          <\/p>\n<p><a name=\"5.3 Mirroring All Volumes\" title=\"5.3 Mirroring All Volumes\"><\/a>5.3 <u> Mirroring All Volumes <\/u> <\/p>\n<p>          <\/font><em> <\/em>        <\/p>\n<p><em>To mirror all existing volumes to available disk space<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">\/etc\/vx\/bin\/vxmirror -a<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><font size=\"5\">          <\/p>\n<p><a name=\"6. Removing a Mirror\" title=\"6. Removing a Mirror\"><\/a>6. Removing a Mirror<\/p>\n<p>          <\/font><\/strong>          <\/p>\n<p>Removing a mirror involves first dissociating the plex from its volume and<br \/>            then removing the plex and any associated subdisks completely.The last valid<br \/>            mirror plex associated with a volume cannot be removed.<\/p>\n<p>        <\/p>\n<p>Dissociate and remove the plex from its volume as follows:<\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxplex -o rm dis plex_name<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>          <\/p>\n<p>vxprint -h shows the volume and associated plexes :<\/p>\n<p>        <font face=\"Courier New\" size=\"2\">          <\/p>\n<p>Disk group: rootdg TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 v<br \/>            volm fsgen ENABLED 10240 &#8211; ACTIVE &#8211; &#8211; pl volm-01 volm ENABLED 10240 &#8211; ACTIVE &#8211; &#8211;<br \/>            sd disk01-02 volm-01 &#8211; 10240 0 &#8211; &#8211; &#8211; pl volm-02 volm ENABLED 10240 &#8211; ACTIVE &#8211; &#8211;<br \/>            sd disk02-03 volm-02 &#8211; 10240 0 &#8211; &#8211; &#8211;<\/p>\n<p>          <\/font>          <\/p>\n<p>To disassociate and remove volmir-02 from volmir, type:<\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxplex -o rm dis volm-02<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>          <\/p>\n<p>The output of vxprint -h for volm now shows volume volm with only one plex::<\/p>\n<p>        <font face=\"Courier New\" size=\"2\">          <\/p>\n<p>Disk group: rootdg TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 v<br \/>            volm fsgen ENABLED 10240 &#8211; ACTIVE &#8211; &#8211; pl volm-01 volmir ENABLED 10240 &#8211; ACTIVE &#8211;<br \/>            &#8211; sd disk01-02 volmir-01 &#8211; 10240 0 &#8211; &#8211; &#8211;<\/p>\n<p>          <\/font><strong><font size=\"5\">          <\/p>\n<p><a name=\"7. Adding a RAID-5 Log\" title=\"7. Adding a RAID-5 Log\"><\/a>7. Adding a RAID-5 Log<\/p>\n<p>            <\/font><\/strong><font face=\"Times New Roman\">          <\/p>\n<p>A RAID-5 log maintains a copy of the data and parity being written to the<br \/>            volume at any given time. If a system failure occurs, VxVM can replay the RAID-5<br \/>            log to resynchronize the volume. This copies the data and parity that was being<br \/>            written at the time of failure from the log to the appropriate areas of the<br \/>            RAID-5 volume.<\/p>\n<p>              <\/font>          <\/p>\n<p>RAID-5 log plexes are used to log information about data and parity being<br \/>            written to the raid volume. A log plex is created for the volume by default when<br \/>            a raid volume is created but additional ones can be added by following command .<\/p>\n<p>        <font face=\"Symbol\" size=\"2\"> <\/font>        <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxassist addlog<br \/>          name_of_raid5_vol<\/font><\/strong><\/p>\n<p>        <strong><font size=\"5\">          <\/p>\n<p><a name=\"8. Adding a DRL Log\" title=\"8. Adding a DRL Log\"><\/a>8. Adding a DRL Log<\/p>\n<p>          <\/font><\/strong><font face=\"Times New Roman\"> <\/font>        <\/p>\n<p><font face=\"Times New Roman\">Dirty region logging (DRL) is used with mirrored volume layouts. DRL keeps<br \/>          track of the regions that have changed due to I\/O writes to a mirrored volume.<br \/>          Prior to every write, a bitmap is written to a log to record the area of the<br \/>          disk that is being changed. In case of system failure, DRL uses this information<br \/>          to recover only the portions of the volume that need to be recovered.<\/font><\/p>\n<p>        <\/p>\n<p>To put Dirty Region Logging into effect for a volume, a log subdisk must be<br \/>          added to that volume and the volume must be mirrored. Only one log subdisk can<br \/>          exist per plex.<\/p>\n<p>        <\/p>\n<p>The following example creates a log for the mirrored volume vol03:<\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxassist addlog vol03<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>          <\/p>\n<p>When vxassist is used to add a log subdisk to a volume, a log plex is also<br \/>            created to contain the log subdisk, by default.<\/p>\n<p>        <\/p>\n<p>Once created, the plex containing a log subdisk can be treated as a regular<br \/>          plex. Data subdisks can be added to the log plex. The log plex and log subdisk<br \/>          can be removed using the same procedures used to remove ordinary plexes and<br \/>          subdisks.<\/p>\n<p>        <strong><font size=\"5\">          <\/p>\n<p><a name=\"9. Removing a RAID-5 Log\" title=\"9. Removing a RAID-5 Log\"><\/a>9. Removing a RAID-5 Log<\/p>\n<p>          <\/font><\/strong>          <\/p>\n<p>Removing a RAID-5 log involves first dissociating the log from its volume and<br \/>            then removing the log and any associated subdisks completely.<\/p>\n<p>        <em> <\/em>        <\/p>\n<p><em>Dissociate the log from its volume as follows:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxplex -o rm dis<br \/>                  plex_name<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><em> <\/em>        <\/p>\n<p><em>To identify the log plex, use the command:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">vxprint -ht<br \/>                  raid5_volume_name<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><em> <\/em>        <\/p>\n<p><em>To disassociate the log plex volrd-02 from volrd, type:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p> <font face=\"Symbol\" size=\"2\"> <\/font>                <\/p>\n<p><font face=\"Symbol\" size=\"2\">&middot; <\/font><strong><font face=\"Courier New\" size=\"2\">#vxplex -o rm dis volrd-02<\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>              <\/p>\n<p><strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><em>          <\/p>\n<p>The output of vxprint -h for volrd now shows:<\/p>\n<p>          <\/em><font size=\"2\"> <\/font>        <\/p>\n<p><font face=\"Courier New\" size=\"2\">Disk group: rootdg TY NAME ASSOC<br \/>          KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 v volrd raid5 ENABLED 32 &#8211; ACTIVE &#8211; &#8211;<br \/>          pl volrd-01 volrd ENABLED 32 &#8211; ACTIVE &#8211; &#8211; sd disk01-02 volrd-01 &#8211; 32 0 &#8211; &#8211; &#8211; sd<br \/>          disk02-03 volrd-01 &#8211; 32 0 &#8211; &#8211; &#8211;<\/font><\/p>\n<p>        <\/p>\n<p>&nbsp;<\/p>\n<p>        <strong><font size=\"5\">          <\/p>\n<p><a name=\"10. Preparing a Volume for Online Backup\" title=\"10. Preparing a Volume for Online Backup\"><\/a>10. Preparing a Volume for Online Backup<\/p>\n<p>          <\/font><\/strong>          <\/p>\n<p>Volume manager provides an easy way to take backup of the online data by<br \/>            creating an offline snapshot mirror of the volume .<\/p>\n<p>        <font size=\"2\"> <\/font>        <\/p>\n<p><font size=\"2\">The vxassist snapstart operation creates a write-only backup mirror, which is<br \/>          attached to and synchronized with the volume to be backed up and later detached<br \/>          and made offline by vxassist snapshot command . <\/font>The snapshot volume can<br \/>          be used by backup utilities while the original volume continues to be available<br \/>          for applications and users.<\/p>\n<p>        <\/p>\n<p>The volume backup method described here does not apply to RAID-5 volumes.<\/p>\n<p>        <\/p>\n<p>Backing up a volume with vxassist involves the following procedure<\/p>\n<p>        <u><font size=\"4\">          <\/p>\n<p>Create a snapshot mirror<\/p>\n<p>          <\/font><\/u>          <\/p>\n<p>snapstart starts creating a online snapshot mirror of the volume using the<br \/>            available disk space . The snapshot is completed with vxassist snapshot command<br \/>            when offline snapshot volume is created with a userdefined name .<\/p>\n<p>        <em> <\/em>        <\/p>\n<p><em>Command Syntax:<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>                <\/p>\n<ul><strong><font face=\"Courier New\" size=\"2\">                    <\/p>\n<li>vxassist snapstart volume_name<\/li>\n<p>                      <\/font><\/strong><\/ul>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <em> <\/em>        <\/p>\n<p><em>To create a snapshot mirror of a volume called vol8, type<\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em> <\/em>            <\/p>\n<blockquote><p> <em> <\/em><strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>                <\/p>\n<ul><strong><font face=\"Courier New\" size=\"2\">                    <\/p>\n<li>#vxassist snapstart vol8<\/li>\n<p>                      <\/font><\/strong><\/ul>\n<p>              <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>          <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong><\/p><\/blockquote>\n<p>        <u><font size=\"4\">          <\/p>\n<p>Create a snapshot volume<\/p>\n<p>          <\/font><\/u><em><font face=\"Courier New\" size=\"2\"> <\/font><\/em>        <\/p>\n<p><em><font face=\"Courier New\" size=\"2\">Command Syntax<\/font><\/em><\/p>\n<p>        <\/p>\n<blockquote><p> <em><font face=\"Courier New\" size=\"2\"> <\/font><\/em>            <\/p>\n<blockquote><p> <em><font face=\"Courier New\" size=\"2\"> <\/font><\/em><font face=\"Courier New\" size=\"2\"><strong> <\/strong><\/font>                <\/p>\n<p><font face=\"Courier New\" size=\"2\"><strong>vxassist snapshot volume_name new_volume_name<\/strong><\/font><\/p>\n<p>            <\/p><\/blockquote>\n<p>        <\/p><\/blockquote>\n<p>        <\/p>\n<p>To create a snapshot volume of vol8, type:<\/p>\n<p>        <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>        <\/p>\n<blockquote><p> <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>            <\/p>\n<blockquote><p> <strong><font face=\"Courier New\" size=\"2\"> <\/font><\/strong>                <\/p>\n<p><strong><font face=\"Courier New\" size=\"2\">#vxassist snapshot vol8 snapvol8<\/font><\/strong><\/p>\n<p>              <strong> <\/strong><\/p><\/blockquote>\n<p>        <\/p><\/blockquote>\n<p>        <\/p>\n<p>You can now back up the snapshot volume by whatever means you prefer. To<br \/>          avoid wasting space, you can then remove the snapshot volume, which occupies as<br \/>          much space as the original volume<\/p>\n<p>        <strong><font size=\"5\"> <\/font><\/strong>        <\/p>\n<p><strong><font size=\"5\"><a name=\"11 Displaying Volume Configuration Information\" title=\"11 Displaying Volume Configuration Information\"><\/a>11 Displaying Volume Configuration Information<\/font><\/strong><\/p>\n<p>        <\/p>\n<blockquote><p> <strong><font size=\"5\"> <\/font><\/strong>            <\/p>\n<blockquote><p> <strong><font size=\"5\"> <\/font><\/strong>                  <\/p>\n<p>The vxprint command can be used to display information about how a volume is<br \/>                    configured.<\/p>\n<p>              <\/p>\n<p>Display the volume, mirror, and subdisk record information for all volumes as<br \/>                follows:<\/p>\n<p>            <\/p><\/blockquote>\n<p>        <\/p><\/blockquote>\n<p>        <strong><font size=\"2\"> <\/font>          <\/p>\n<p><font face=\"Courier New\" size=\"2\">#vxprint -ht <\/font><\/p>\n<p>          <\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<pre><font face=\"Courier New\" size=\"1\"><br \/>  Disk group: rootdg  <br \/>  <br \/>  DG  NAME        NCONFIG    NLOG      MINORS     GROUP-ID  <br \/>  DM  NAME        DEVICE     TYPE      PRIVLEN    PUBLEN     STATE  <br \/>  V   NAME        USETYPE    KSTATE    STATE      LENGTH     READPOL      PREFPLEX  <br \/>  PL  NAME        VOLUME     KSTATE    STATE      LENGTH     LAYOUT       NCOL\/WID MODE  <br \/>  SD  NAME        PLEX       DISK      DISKOFFS LENGTH       [COL\/]OFF    DEVICE     MODE  <br \/>  <br \/>  dg  rootdg      759096729.1025.tweety  <br \/>  <br \/>  dm  disk10      c1t0d0s2 sliced      559        1044400     -  <br \/>  dm  disk20      c2t0d0s2 sliced      559        1044400     -  <br \/>  <br \/>  v   pubs        fsgen      ENABLED ACTIVE       2288       SELECT       -  <br \/>  pl  pubs-01     pubs       ENABLED ACTIVE       2288       CONCAT       -          RW  <br \/>  sd  disk10-01 pubs-01      disk10    0          2288       0            c0t0d0     ENA  <br \/>  <br \/>  v   vol8      fsgen      ENABLED ACTIVE       20480      SELECT       -  <br \/>  pl  vol8-01   vol8       ENABLED ACTIVE       20480      CONCAT       -          RW  <br \/>  sd  disk10-02 vol8-0 disk10        2288       20480      0            c0t1d0     ENA  <br \/><\/font><\/pre>\n<p>                <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>          <\/strong>          <\/p>\n<blockquote><p>            <\/p>\n<blockquote><p>              <\/p>\n<p>where dg is a disk group, dm is a disk, v is a volume, pl is a plex, and sd<br \/>                is a subdisk. The top few lines indicate the headers that match each type of<br \/>                output line that follows. Each volume is listed along with its associated<br \/>                plex(es) and subdisk(s).<\/p>\n<p>              <\/p>\n<p>Display volume-related information for a specific volume as follows:<\/p>\n<p>            <\/p><\/blockquote>\n<p>          <\/p><\/blockquote>\n<p>        <font size=\"2\"> <\/font>        <\/p>\n<p><font face=\"Courier New\" size=\"2\">#vxprint -t volume_name<\/font><\/p>\n<p>        <\/p>\n<blockquote><p> <font face=\"Courier New\" size=\"2\"> <\/font>            <\/p>\n<blockquote><p> <font face=\"Courier New\" size=\"2\"> <\/font>                  <\/p>\n<p>To display information about vol8, type:<\/p>\n<p>            <\/p><\/blockquote>\n<p>        <\/p><\/blockquote>\n<p>        <font size=\"2\"> <\/font>        <\/p>\n<p><font face=\"Courier New\" size=\"2\">#vxprint -t vol8 <\/font> <\/p>\n<p>        <\/p>\n<p>&nbsp;<\/p>\n<p>        <!--msnavigation--><\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\">\n<tbody>\n<tr>\n<td background=\"veritas_volume_manager_fichiers\/bar_tab_bk.gif\"><a name=\"2\" title=\"2\"><\/a><strong>Basic Setup Tasks<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89\" border=\"0\" alt=\"\" width=\"1\" height=\"5\" \/><\/p>\n<p>It is assumed that the Veritas software has been installed and that rootdg has been setup by the installer with a minimum of one disk. If not, install the software now.<\/p>\n<p> Use the <strong>&quot;format&quot;<\/strong> command to display available disks. If necessary, add new disks to the system and run <strong>&quot;drvconfig; devlinks; disks&quot;<\/strong> to configure the new disks. Do not partition disks to be used by Veritas.<\/p>\n<p><\/p>\n<p> To display disks setup for Veritas, use the command <strong>&quot;vxdisk list&quot;<\/strong>.<\/p>\n<p><\/p>\n<p> To add more disks to the control of Veritas, use the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxdiskadd<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> The would be <strong>c2t0d0<\/strong>, for example, without the slice suffix. The vxdiskadd script will prompt for necessary information such as the name of the disk group, whether or not to initialize the new disk, etc. Rerun the command <strong>&quot;vxdisk list&quot;<\/strong> to view the new disk.<\/p>\n<p><\/p>\n<p> To designate an unused disk as a hot-spare disk, use the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxedit set spare=on<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> The would be the Veritas name for the disk, such as disk01. Use &quot;vxdisk list&quot; to confirm that the disk is now a dedicated hot-spare disk. To remove the disk from the dedicated hot-spare pool, use the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxedit set spare=off<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> By default, Veritas will name disks based on the name of the disk group. To rename a disk (for example, from disk01 to disk02), use the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxedit rename <\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> To place a disk offline (for example, if the disk has become corrupted), run the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxdisk offline<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> The would be c2t0d0, for example, without the slice suffix.<\/p>\n<p><\/p>\n<p> To remove a disk from the diskgroup to which it belongs, run the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxdg [-g diskgroup name] rmdisk<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> To then remove that disk from Veritas control entirely, run the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxdisk rm<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> The same set of commands may be used to move disks from one diskgroup to another:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxdg rmdisk<\/strong> <\/p>\n<p>          <strong>vxdg -g adddisk =<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> (<em>For example, &quot;vxdg -g testdg adddisk testdg01=c2t0d0&quot;.<\/em>)<\/p>\n<p><\/p>\n<p> Alternatively, you can simply remove the disk from Veritas control and then reinitialize it with <strong>&quot;vxdiskadd&quot;<\/strong>. Use <strong>&quot;vxdisk list&quot;<\/strong> to confirm the new affiliation.<\/p>\n<p><\/p>\n<p> Every disk group requires a minimum of one disk. The simplest way to add a new diskgroup is to run the <strong>&quot;vxdiskadd&quot;<\/strong> command on an unconfigured disk, and when prompted for the name of the diskgroup to use, enter the desired name of the new diskgroup.<\/p>\n<p><\/p>\n<p> To display information on disk groups, run <strong>&quot;vxdg list&quot;<\/strong> or <strong>&quot;vxdg list&quot;<\/strong>.<\/p>\n<p><\/p>\n<p> To destroy a diskgroup and reuse the disks for other purposes, run the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxdg destroy<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> Failing or failed disks can be removed with the <strong>&quot;vxdiskadm&quot;<\/strong> menu command. To remove a failing disk, select choice 4, <strong>&quot;remove a disk for replacement&quot;<\/strong>. To replace the disk later, select choice 5, <strong>&quot;replace a failed or removed disk&quot;<\/strong>.<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\">\n<tbody>\n<tr>\n<td background=\"vvm_volume_performance_monitoring_fichiers\/bar_tab_bk.gif\"><a name=\"2\" title=\"2\"><\/a><strong>Volume Performance Monitoring<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89\" border=\"0\" alt=\"\" width=\"1\" height=\"5\" \/><\/p>\n<p>The performance of Veritas volumes can be monitored with the <strong>&quot;vxstat&quot;<\/strong> command. Reset the volume statistics with the command <strong>&quot;vxstat -r&quot;<\/strong>, let the system run normally for several hours, and then run <strong>&quot;vxstat&quot;<\/strong> and check the read\/write performance. If you see two or more heavily used volumes on the same physical disk, you may want to move one of the volumes to an unused disk. To do so, use the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxassist move ! <\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> You do not have to specify the new disk name. In that case, the volume will be moved to any available disk. For example, to move the volume called archive from disk03 to disk04, run the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxassist move archive !disk03 disk04<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> If one volume is particularly heavily used, you may want to convert from the default concatenation to striping. To do so, create a striped plex (mirror) of the volume and then remove the old (concatenated) plex. For example, to convert the volume called archive from concatenated to striped, run the following commands:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxassist mirror archive layout=stripe disk02 disk03 disk04 vxplex -o rm dis archive-01<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp; <\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\">\n<tbody>\n<tr>\n<td background=\"vvm_tips_and_tasks_fichiers\/bar_tab_bk.gif\"><a name=\"2\" title=\"2\"><\/a><strong>Volume Tips and Tasks<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89\" border=\"0\" alt=\"\" width=\"1\" height=\"5\" \/><\/p>\n<p>The basic command used to create volumes is <strong>&quot;vxassist&quot;<\/strong>. The format is <strong>&quot;vxassist make&quot;<\/strong>. The length can be specified in units of kilobytes, megabytes, or gigabytes with the suffixes <strong>k, m, or g<\/strong>. By default, new volumes are created from rootdg. Use <strong>&quot;-g&quot;<\/strong> to specify a different diskgroup.<\/p>\n<p> To determine the maximum size that a new volume could be given particular attributes, use the <strong>&quot;vxassist maxsize&quot;<\/strong> command. For example, to determine the maximum size of a striped volume using disk01 and disk02:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxassist maxsize layout=stripe disk01 disk02<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> Then create the volume using that length. For example: vxassist make vol01 20g layout=stripe disk01 disk02<\/p>\n<p><\/p>\n<p> By default, the <strong>&quot;vxassist&quot;<\/strong> command creates concatenated volumes. For example, the command <strong>&quot;vxassist make newvol 10m&quot;<\/strong> would create a concatenated volume with the length of 10 MB. To specify the disk(s) to use, add the disk name(s). For example, <strong>&quot;vxassist make newvol 10m disk01&quot;<\/strong>.<\/p>\n<p><\/p>\n<p> To create striped volumes, add the attribute <strong>&quot;layout=stripe&quot;<\/strong>. For exampke, &quot;vxassist make newvol 10g layout=stripe disk01 disk02&quot;.<\/p>\n<p><\/p>\n<p> To create RAID-5 volumes, add the attribute <strong>&quot;layout=raid5&quot;<\/strong>. For example, &quot;vxassist make newvol 30g layout=raid5&quot;.<\/p>\n<p><\/p>\n<p> To create mirrored volumes, add the attribute <strong>&quot;layout=mirror&quot;<\/strong>. For example, &quot;vxassist make newvol 10g layout=mirror&quot;.<\/p>\n<p><\/p>\n<p> The <strong>&quot;vxassist&quot;<\/strong> command can be used to grow or shrink the size of volumes. Do not shrink the size of volumes below the size of the filesystem. To grow volumes, run one of the following commands:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxassist growto<\/strong> <\/p>\n<p>          <strong>vxassist growby<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> Similarly, you can shrink the size of volumes:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxassist shrinkto<\/strong> <\/p>\n<p>          <strong>vxassist shrinkby<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> To remove an unneeded volume, unmount any filesystems on the volume, remove any references to the volume from \/etc\/vfstab, stop the volume with <strong>&quot;vxvol stop&quot;<\/strong>, and then run <strong>&quot;vxedit -rf rm&quot;<\/strong> or <strong>&quot;vxassist remove volume&quot;<\/strong>.<\/p>\n<p><\/p>\n<p> Existing volumes can be mirrored to add redundancy. To mirror existing volumes, use the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxassist mirror<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> To remove a mirror (more precisely, to remove one of the plexes from the volume), use the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxplex -o rm<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> To stop volumes, use the command <strong>&quot;vxvol stop&quot;<\/strong>. To stop all volumes, run the command <strong>&quot;vxvol stopall&quot;<\/strong>. To restart volumes, use the command <strong>&quot;vxrecover -s&quot;<\/strong> or use the command Veritas will automatically allocate the necessary space from unused disks. The process may take some time depending on the size of the volume. When fully synchronized, the status of the snapshot mirror will change to SNAPDONE. Use the following command to monitor the progress of the snapshot:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxtask -l list<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 2. Detach the snapshot and create the new read-only snapshot volume with the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxassist snapshot<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> The period required to create the snapshot volume is shorter but it is preferred to limit I\/O to the volume during the period required.<\/p>\n<p><\/p>\n<p> 3. Clean the contents of the new snapshot volume with the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>fsck -y \/dev\/vx\/rdsk\/<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 4. Mount the snapshot volume, perform the backup, unmount the volume, and then remove the snapshot volume to save space with the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxedit -rf rm<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp; <\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\">\n<tbody>\n<tr>\n<td background=\"vvm_how_to_volume_deletion_fichiers\/bar_tab_bk.gif\"><a name=\"2\" title=\"2\"><\/a><strong>How To: Volume Deletion<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89\" border=\"0\" alt=\"\" width=\"1\" height=\"5\" \/><\/p>\n<p>To remove a volume, unmount any filesystems on the volume and run the following command:<\/p>\n<p> <strong>vxassist remove volume <\/strong><\/p>\n<p><\/p>\n<p>&nbsp; <\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\">\n<tbody>\n<tr>\n<td background=\"vvm_how_to_mirror_removal_fichiers\/bar_tab_bk.gif\"><a name=\"2\" title=\"2\"><\/a><strong>How To: Mirror Removal<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89\" border=\"0\" alt=\"\" width=\"1\" height=\"5\" \/><\/p>\n<p>To remove a mirror from a volume (i.e., to remove one of the plexes that belongs to the volume), run the following command:<\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxplex -o rm dis <\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> Any associated subdisks will then become available for other uses. To remove the disk from Volume Manager control entirely, run the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxdisk rm <\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> For example, &quot;vxdisk rm c1t1d0s2&quot;. <\/p>\n<p><\/p>\n<p>&nbsp; <\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\">\n<tbody>\n<tr>\n<td background=\"vvm_how_to_mirror_backup_fichiers\/bar_tab_bk.gif\"><a name=\"2\" title=\"2\"><\/a><strong>How To: Mirror Backup<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89\" border=\"0\" alt=\"\" width=\"1\" height=\"5\" \/><\/p>\n<p>The following techniques can be used to backup mirrored volumes by temporarily taking one of the mirrors offline and then reattaching the mirror to the volume once the backup has been run.<\/p>\n<p> 1. Disassociate one of the mirrors from the volume to be backed up:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxplex dis<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 2. Create a new, temporary volume using the disassociated plex:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxmake -g -U gen vol tempvol plex=<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 3. Start the new volume:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxvol start tempvol<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 4. Clean the new volume before mounting:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>fsck -y \/dev\/vx\/rdsk\/\/tempvol<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 5. Mount the new volume and perform the backup<\/p>\n<p><\/p>\n<p> 6. Unmount the new volume<\/p>\n<p><\/p>\n<p> 7. Stop the new volume:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxvol stop tempvol<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 8. Disassociate the plex from the new volume:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxplex dis <\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 9. Reattach the plex to the original volume:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxplex att<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 10. Delete the temporary volume:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxedit rm tempvol<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> To display the current Veritas configuration, use the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxprint<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> To monitor the progress of tasks, use the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxtask -l list<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> To display information related to plexes, run the following command:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxprint -lp<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp; <\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\">\n<tbody>\n<tr>\n<td background=\"vvm_how_to_deport_import_fichiers\/bar_tab_bk.gif\"><a name=\"2\" title=\"2\"><\/a><strong>How To: Deport\/Import<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89\" border=\"0\" alt=\"\" width=\"1\" height=\"5\" \/><\/p>\n<p>Disk groups can be moved from one system to another with the deport\/import commands. The same technique can be used to rename a disk group by deporting the disk group with a new name.<\/p>\n<p> 1. Unmount any filesystems on the disk group<\/p>\n<p><\/p>\n<p> 2. Stop any volumes on the disk group:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxvol stop<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 3. Deport the disk group:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxdg deport<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 4. Import the disk group:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxdg import<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 5. Restart and resynchronize the disk group:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxrecover -g -sb<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> 6. Remount any filesystems from the disk group<\/p>\n<p><\/p>\n<p> If you have any problems, check the status of volumes on the disk group:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxinfo<\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p> To rename the disk group during deport\/import, use the -n argument:<\/p>\n<p><\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" bgcolor=\"#dddddd\">\n<tbody>\n<tr>\n<td> <strong>vxdg deport -n <\/strong> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp; <\/p>\n<p><\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\">\n<tbody>\n<tr>\n<td background=\"vvm_disk_group_tips_fichiers\/bar_tab_bk.gif\"><a name=\"2\" title=\"2\"><\/a><strong>Disk Group Tips<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lookit.org\/guppy\/articles.php?lng=fr&amp;pg=89\" border=\"0\" alt=\"\" width=\"1\" height=\"5\" \/><\/p>\n<p>Diskgroups can be moved from one system to another system. On the original system, unmount any volumes in the disk group to be deported and stop them with the command <strong>&quot;vxvol stop&quot;<\/strong>. Then deport the disk group with the command <strong>&quot;vxdg deport&quot;<\/strong>.<\/p>\n<p> Move the disks physically to the new system and either reboot the system so that Veritas recognizes the new disks, or use the command <strong>&quot;vxdctl enable&quot;<\/strong> to restart vxconfigd.<\/p>\n<p><\/p>\n<p> Import the disks with the command <strong>&quot;vxdg import&quot;<\/strong>. Then restart all volumes in the disk group with the command <strong>&quot;vxrecover -g -sb&quot;<\/strong>.<\/p>\n<p><\/p>\n<p> To rename diskgroups during deport\/import, run the deport\/import command with the argument <strong>&quot;-n &quot;<\/strong>. After importing the diskgroup, run the command <strong>&quot;vxprint -hrt&quot;<\/strong>. The volumes that belong to the imported disk group may be DISABLED. Run the command <strong>&quot;vxinfo &quot;volume name&quot;<\/strong> to be sure that the volumes are <strong>&quot;startable&quot;<\/strong>. Then run <strong>&quot;vxrecover -s&quot;<\/strong> to enable each volume.<\/p>\n<p><\/p>\n<p> If the disks in question have been moved due to the crash of the original system, then they will not have been properly deported and will be locked. To unlock the disks, run the command <strong>&quot;vxdisk clearimport&quot;<\/strong> or <strong>&quot;vxdg -C import&quot;<\/strong>. Be sure not to run these commands if the original system has physical access to the disks since that would allow access to the disks from multiple hosts and possibly cause data corruption. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Petit tutorial sur Veritas VxVM, gestion du raid de VERITAS.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[],"class_list":["post-115","post","type-post","status-publish","format-standard","hentry","category-informatique"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pWrTo-1R","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=115"}],"version-history":[{"count":0,"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/115\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}