{"id":1163,"date":"2009-10-12T04:58:26","date_gmt":"2009-10-11T18:58:26","guid":{"rendered":"http:\/\/nsrd.wordpress.com\/?p=1163"},"modified":"2018-12-12T15:32:07","modified_gmt":"2018-12-12T05:32:07","slug":"library-sharing-vs-dynamic-drive-sharing","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2009\/10\/12\/library-sharing-vs-dynamic-drive-sharing\/","title":{"rendered":"Library sharing vs Dynamic Drive Sharing"},"content":{"rendered":"<p>In many environments with storage nodes, a common requirement is to share backup devices between the server and\/or storage nodes (regardless of whether the storage nodes are dedicated or full). The primary goal is to reduce the number of devices, or the number of tape libraries required in order to minimise cost while still maximising flexibility of the environment.<\/p>\n<p>There are two mechanisms available for device sharing. These are:<\/p>\n<ul>\n<li><strong>Library sharing<\/strong> \u2013 free from any licensing, this is the cheapest but least flexible<\/li>\n<li><strong>Dynamic drive sharing<\/strong> \u2013 requiring additional licenses, this is more flexible but comes at a higher cost in terms of maintenance, debugging and complexity.<\/li>\n<\/ul>\n<p>It&#8217;s easiest to gain an understanding of how these two options work with some diagrams.<\/p>\n<p>First, let&#8217;s consider library sharing:<\/p>\n<figure id=\"attachment_1169\" aria-describedby=\"caption-attachment-1169\" style=\"width: 500px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1169\" title=\"Conceptual diagram of library sharing\" src=\"http:\/\/nsrd.files.wordpress.com\/2009\/10\/library-sharing.jpg\" alt=\"Conceptual diagram of library sharing\" width=\"500\" height=\"411\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2009\/10\/library-sharing.jpg 553w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2009\/10\/library-sharing-300x246.jpg 300w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2009\/10\/library-sharing-364x300.jpg 364w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption id=\"caption-attachment-1169\" class=\"wp-caption-text\">Conceptual diagram of library sharing<\/figcaption><\/figure>\n<p>(Not shown: connection to tape robot head \u2013 i.e., control port connection.)<\/p>\n<p>In this configuration, more than one host connects to specific devices in the tape library. These are <em>hard<\/em> or <em>permanent<\/em> connections; that is, once a device has been allocated to one server\/storage node, it stays allocated to that host until the library is reconfigured.<\/p>\n<p>This is a static allocation of resources that has the backup administrator allocate a specific number of devices per server\/storage node based on the expected requirements of the environment. For instance, in the example above, the server has permanent mappings to 3 of the 6 tape drives in the library; the full storage node has permanent mappings to 2 of the drives, and the dedicated storage node has a permanent mapping to the one remaining drive in the tape library.<\/p>\n<p>The key advantages of this allocation method are:<\/p>\n<ul>\n<li>Zero licensing cost,<\/li>\n<li>Guaranteed device availability,<\/li>\n<li>Per-host\/device isolation, preventing faults on one system from cascading to another.<\/li>\n<\/ul>\n<p>The disadvantages of this allocation method are:<\/p>\n<ul>\n<li>No dynamic reallocation of resources in the event of requirement spikes that were not anticipated<\/li>\n<li>Can&#8217;t be reconfigured &#8220;on the fly&#8221;<\/li>\n<li>If a backup device fails and a host only has access to one device, it won&#8217;t be able to backup or recover without configuration changes.<\/li>\n<\/ul>\n<p>Where you would typically use this allocation method:<\/p>\n<ul>\n<li>In VTLs \u2013 since NetWorker licenses VTLs by capacity*, you can allocate as many virtual drives as you want, providing each host with more than a certain amount of data in the datazone with one or more virtual drives, significantly reducing LAN impact of backup.<\/li>\n<li>In PTLs where backup\/recovery load is shared reasonably equally by two or more storage nodes (counting the server as a storage node in this context) and having only one library is desirable.<\/li>\n<\/ul>\n<p>Moving on to dynamic drive sharing, this model resembles the following:<\/p>\n<figure id=\"attachment_1170\" aria-describedby=\"caption-attachment-1170\" style=\"width: 499px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1170\" title=\"Conceptual overview of dynamic drive sharing\" src=\"http:\/\/nsrd.files.wordpress.com\/2009\/10\/dynamic-drive-sharing.jpg\" alt=\"Conceptual overview of dynamic drive sharing\" width=\"499\" height=\"390\"><figcaption id=\"caption-attachment-1170\" class=\"wp-caption-text\">Conceptual overview of dynamic drive sharing<\/figcaption><\/figure>\n<p>In this model, licenses are purchased, on a per-drive basis, for dynamic sharing. (So if you have 6 tape drives, such as in the above example, you would need up to 6 dynamic drive sharing licenses \u2013 you don&#8217;t have to share every device in the library \u2013 some could remain statically mapped if desired.)<\/p>\n<p>When a library with dynamically shared drives is setup within NetWorker, the correct <em>path<\/em> to the device, on a per-host basis, will be established for that device within the configuration. This might mean that the device &#8220;\/dev\/nst0&#8221; on the backup server might be known in the configuration as being all three of the following:<\/p>\n<ul>\n<li>\/dev\/nsto<\/li>\n<li>rd=stnode:\/dev\/rmt\/0cbn<\/li>\n<li>rd=dedstnode:\\.Tape0<\/li>\n<\/ul>\n<p>When a host with dynamic access to drives needs a device (for either backup or recovery), the NetWorker server (or whichever host has control over the actual tape robot) will load a tape into a free, mappable drive, then notify the storage node which device it should use to access media. The storage node will then use the media until it no longer needs to, with the host that controls the robot handling any post-use unmounts or media changes.<\/p>\n<p>The advantages of dynamic drive sharing are:<\/p>\n<ul>\n<li>With maximal device sharing enabled, resource spikes can be handled by dynamically allocating a useful number of drives to host(s) that need them at any given time,<\/li>\n<li>Fewer drives are typically required than would be in a library sharing\/statically mapped allocation method.<\/li>\n<\/ul>\n<p>The disadvantages of dynamic drive sharing are:<\/p>\n<ul>\n<li>With multiple hosts able to see the same devices, isolating devices from SCSI resets and other SAN events from non-accessing hosts requires <em>constant vigilance<\/em>. HBAs and SAN settings must be configured appropriately, and these settings must be migrated\/checked every time drivers change, systems are updated, etc.<\/li>\n<li>It is relatively easy to misconfigure dynamic drive sharing by planning to use too few physical tape drives than are really necessary. (I.e., it&#8217;s not <em>that<\/em> cheap, from a hardware perspective either.)<\/li>\n<li>Each drive that is dynamically shared requires a license.<\/li>\n<li>Unlike products such as say, NetBackup, due to the way nsrmmd&#8217;s work and <em>don&#8217;t<\/em> share nicely with each other, volumes must be unmounted before devices are transferred from one host with dynamic drive sharing to another, <em>even if both hosts will be using the same volume<\/em>. (This falls into the &#8220;lame&#8221; feature category.)<\/li>\n<\/ul>\n<p>Where you would typically use dynamic drive sharing includes areas such as:<\/p>\n<ul>\n<li>A small, select number of hosts with significant volumes of data require LAN-free backups,<\/li>\n<li>With small\/isolated storage nodes that are still SAN connected (e.g., DMZ storage nodes).<\/li>\n<\/ul>\n<p>A lot of the architectural reasons as to <em>why<\/em> dynamic drive sharing was originally developed has in some senses gone away with greater penetration of VTLs into the backup arena. Given that it&#8217;s a straight forward proposition to configure a large number of virtual tape drives, instead of messing about with dynamic drive sharing one can instead choose to just use library sharing in VTL environments to achieve the best of both worlds.<\/p>\n<p>&#8212;<br \/>\n* Currently non-EMC VTLs, while still licensed by capacity, typically co-receive unlimited autochanger licenses. Even so, such licenses are not limited by the the number of virtual tape drives.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In many environments with storage nodes, a common requirement is to share backup devices between the server and\/or storage nodes&hellip;<\/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":[5,6,16],"tags":[291,350,535,668],"class_list":["post-1163","post","type-post","status-publish","format-standard","hentry","category-backup-theory","category-basics","category-networker","tag-dds","tag-dynamic-drive-sharing","tag-library-sharing","tag-nsrmmd"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-iL","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/1163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/comments?post=1163"}],"version-history":[{"count":1,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/1163\/revisions"}],"predecessor-version":[{"id":7604,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/1163\/revisions\/7604"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=1163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=1163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=1163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}