<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <!-- MOTW-DISABLED saved from url=(0014)about:internet -->
    <title>Using the Cache Group Node</title>
    <link rel="StyleSheet" href="css/v64195031-30-13-06-54.css" type="text/css" media="all" />
    <link rel="StyleSheet" href="css/webworks.css" type="text/css" media="all" />
    <script type="text/javascript" language="JavaScript1.2" src="wwhdata/common/context.js"></script>
    <script type="text/javascript" language="JavaScript1.2" src="wwhdata/common/towwhdir.js"></script>
    <script type="text/javascript" language="JavaScript1.2" src="wwhdata/common/wwhpagef.js"></script>
    <script type="text/javascript" language="JavaScript1.2">
      <!--
        var  WebWorksRootPath = "";
      // -->
    </script>
    <script type="text/javascript" language="JavaScript1.2">
      <!--
        // Set reference to top level help frame
        //
        var  WWHFrame = WWHGetWWHFrame("", true);
      // -->
    </script>
    <script type="text/javascript" language="JavaScript1.2" src="scripts/expand.js"></script>
  </head>
  <body onload="WWHUpdate();" onunload="WWHUnload();" onkeydown="WWHHandleKeyDown((document.all||document.getElementById||document.layers)?event:null);" onkeypress="WWHHandleKeyPress((document.all||document.getElementById||document.layers)?event:null);" onkeyup="WWHHandleKeyUp((document.all||document.getElementById||document.layers)?event:null);">
    <br />
    <div class="WebWorks_Breadcrumbs" style="text-align: left;">
      <a class="WebWorks_Breadcrumb_Link" href="MSM_NYTRO_XD_HELP_TOPIC_4.html#3_10_16_12_1">Using the Nytro XD Solution on MegaRAID Storage Manager</a> : <a class="WebWorks_Breadcrumb_Link" href="MSM_NYTRO_XD_HELP_TOPIC_4_6.html#3_10_16_12_1">Creating a Cache Group</a> : Using the Cache Group Node</div>
    <hr align="left" />
    <blockquote>
      <p class="Heading_2"><a name="3_10_16_12_1">Using the Cache Group Node</a></p>
      <p class="Body"><span class="Bold"><a name="3_10_16_12_3_1_2">On Windows</a></span></p>
      <p class="Body"><a name="3_10_16_12_3_1_3">The configuration is complete, and the virtual drives (VDs) configured are now ready to be cached by the Nytro XD solution. The newly configured Cache Group node appears on the MegaRAID Storage Manager GUI.</a></p>
      <p class="Body"><a name="3_10_16_12_3_1_4">Use the configured Nytro XD solution device node by using the MegaRAID Storage Manager application or StorCLI or MegaCLI utility.</a></p>
      <p class="Body"><span class="Bold"><a name="3_10_16_12_3_1_5">On Linux</a></span></p>
      <p class="Body"><a name="3_10_16_12_3_1_6">The Nytro XD solution creates the device mapper device nodes with the same names as the underlying VD names, but with an additional </a><span class="codeph">nytroxd-</span> prefix. This device node is placed under the <span class="filepath">/dev/mapper</span> directory. This is true for all of the partitions that exist on the VD configured in the Nytro XD solution.</p>
      <p class="note">
        <span style="font-family: Sans-Serif; font-weight: bold">NOTE&nbsp;&nbsp;</span><a name="3_10_16_12_3_1_7">When a VD is successfully added to the Nytro XD solution, it automatically runs </a><span class="cmdname">kpartx/partprobe</span> to create these nodes.</p>
      <p class="Body"><a name="3_10_16_12_3_1_8">For example: If you issue the following command to configure a VD:</a></p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_8_3"># MegaCli64 XD -AddVd 0x5000c5000f8f8c1f <br />Device "0x5000c5000f8f8c1f" added successfully. <br />Exit Code: 0x00</a></p>
      <p class="Body"><a name="3_10_16_12_3_1_8-3">Corresponding to the VD </a><span class="codeph">/dev/disk/by-id/scsi-35000c5000f8f8c1f</span>, the Nytro XD solution creates a node <span class="codeph">/dev/mapper/nytroxd-scsi-35000c5000f8f8c1f</span> that represents the cached VD. This node must be used by applications for caching to take effect for this VD.</p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_9"># MegaCli64 XD -VdList</a></p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_10">Vendor: SEAGATE</a></p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_11">Model: ST9146703SS</a></p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_12">Device Node: /dev/disk/by-id/scsi-35000c5000f8f8c1f [/dev/sdm]</a></p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_13">SCSI ID: 0x5000c5000f8f8c1f</a></p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_14">Capacity: 136.732 GB</a></p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_15">Device state: Online</a></p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_16">Mapped Path: /dev/mapper/nytroxd-scsi-35000c5000f8f8c1f</a></p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_17">Exit Code: 0x00</a></p>
      <p class="Body"><a name="3_10_16_12_3_1_18">If </a><span class="codeph">/etc/fstab</span> contains the following entry:</p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_18_5">/dev/disk/by-id/scsi-35000c5000f8f8c1f /data ext4 defaults 1 2</a></p>
      <p class="Body"><a name="3_10_16_12_3_1_19">It must be changed to the following entry:</a></p>
      <p class="Preformatted"><a name="3_10_16_12_3_1_20">/dev/mapper/nytroxd-scsi-35000c500f8f8c1f /data ext4 defaults 1 2</a></p>
      <p class="note">
        <span style="font-family: Sans-Serif; font-weight: bold">NOTE&nbsp;&nbsp;</span><a name="3_10_16_12_3_1_21">Do not use </a><span class="codeph">/dev/disk/by-id/scsi-35000c5000f8f8c1f</span> after you configure this VD in the Nytro XD solution; this might cause data corruption</p>
      <p class="caution">
        <span style="font-family: Sans-Serif; font-weight: bold">CAUTION&nbsp;&nbsp;</span><a name="3_10_16_12_3_1_22">When the Nytro XD solution creates a device mapper device node for a VD (for example, </a><span class="codeph">/dev/mapper/nytroxd-scsi-35000c5001d70ae43</span>), the same VD is also available for direct access (through <span class="codeph">/dev/disk/by-id/scsi-35000c5001d70ae43</span>, which usually is a symbolic link to the underlying <span class="Bold">sd</span> device under <span class="codeph">/dev</span>, for example, <span class="codeph">/dev/sdg</span>). Even when a cache device (Nytro WarpDrive card) is configured under Nytro XD solution, the device node for that (for example, <span class="codeph">/dev/sdb</span>) is also available for direct access. Exercise caution and make sure that you do not inadvertently directly access or update these disks outside of the Nytro XD solution control. Such an access is illegal, and any updates made through the direct access can lead to data corruption on these disks. Be aware that this is a feature/limitation of the Linux device model.</p>
      <script type="text/javascript" language="JavaScript1.2">
        <!--
          // Clear related topics
          //
          WWHClearRelatedTopics();

          document.writeln(WWHRelatedTopicsInlineHTML());
        // -->
      </script>
    </blockquote>
    <hr align="left" />
    <!-- LSI changed location of company info to align left -->
    <!-- Added rol from 2011.3 pages.asp file               -->
    <!-- LSI added copyright style                          -->
    <!--                                                    -->
    <table align="left" role="presentation">
      <!-- LSI added support for booknum and reldate -->
      <!--                                           -->
      <tr>
        <td class="copyright">DB15-000917-02-January 2013</td>
      </tr>
      <tr>
        <td class="copyright">
          <a href="http://www.lsi.com/Pages/trademark.aspx?" target="external_window">Copyright© 2013 by LSI Corporation. All rights reserved.</a>
        </td>
      </tr>
    </table>
    <script type="text/javascript" language="JavaScript1.2">
      <!--
        document.write(WWHRelatedTopicsDivTag() + WWHPopupDivTag() + WWHALinksDivTag());
      // -->
    </script>
  </body>
</html>