{"id":6426,"date":"2018-04-13T14:30:31","date_gmt":"2018-04-13T04:30:31","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=6426"},"modified":"2018-04-13T14:55:13","modified_gmt":"2018-04-13T04:55:13","slug":"cohesity-sql-log-backup-warning","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/cohesity-sql-log-backup-warning\/","title":{"rendered":"Cohesity &#8211; SQL Log Backup Warning"},"content":{"rendered":"<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/10\/cohesity.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3134\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/10\/cohesity.png\" alt=\"\" width=\"412\" height=\"50\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/10\/cohesity.png 412w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2015\/10\/cohesity-300x36.png 300w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/a><\/p>\n<p>This one falls into the category of &#8220;unlikely that it will happen to you but might be worth noting&#8221;. I&#8217;ve been working with some Cohesity gear in the lab recently and came across a warning, not an error, when I was doing a SQL backup.<\/p>\n<p>But before I get to that, it&#8217;s important to share the context of the testing. With Cohesity, there&#8217;s some support for protecting Microsoft SQL workloads that live on Windows Failover Clusters (as well as AAGs &#8211; but that&#8217;s a story for another time). You configure these separately from your virtual sources, and you install an agent on each node in the cluster. In my test environment I&#8217;ve created a simple two-node <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/failover-clustering\/failover-clustering-overview\">Windows Failover Cluster<\/a>\u00a0based on Windows 2016. It has some shared disk and a heartbeat network (a tip of the hat to Windows clusters of yore). I&#8217;ve cheated, because it&#8217;s virtualised, but needs must and all that. I&#8217;m running SQL 2014 on top of this. It took me a little while to get that working properly, mainly because I&#8217;m a numpty with SQL. I finally had everything setup when I noticed the following error after each SQL protection job ran.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6427\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_01.png\" alt=\"\" width=\"800\" height=\"60\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_01.png 1556w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_01-300x22.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_01-768x57.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_01-1024x76.png 1024w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>I was a bit confused as I had set the databases to full recovery mode. Of course, the more it happened, the more I got frustrated. I fiddled about with permissions on the cluster, manual maintenance jobs, database roles and all manner of things I shouldn&#8217;t be touching. I even went for a short walk. The thing I didn&#8217;t do, though, was click the arrow on the left hand side of the job. That expands the job run details so you can read more about what happened. If I&#8217;d done that, I would have seen this error straight away. And the phrase &#8220;No databases available for log backup&#8221; would have made more sense.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6428\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_02.png\" alt=\"\" width=\"800\" height=\"274\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_02.png 1588w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_02-300x103.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_02-768x263.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_02-1024x351.png 1024w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>And I would have realised that the reason I was getting the log backup warning was because it was skipping the system databases and, as I didn&#8217;t have any other databases deployed, it wasn&#8217;t doing any log backups. This is an entirely unlikely scenario in the real world, because you&#8217;ll be backing up SQL clusters that have data on them. If they don&#8217;t have data on them, they&#8217;re likely low value items and won&#8217;t get protected. The only situation where you might come across this is if you&#8217;re testing your infrastructure before deploying data to it. I resolved the issue by creating a small database. The log backups then went through without issue.<\/p>\n<p><a href=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6431\" src=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_03.png\" alt=\"\" width=\"800\" height=\"118\" srcset=\"https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_03.png 1508w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_03-300x44.png 300w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_03-768x113.png 768w, https:\/\/www.penguinpunk.net\/blog\/wp-content\/uploads\/2018\/04\/Cohesity_SQL_Log_03-1024x151.png 1024w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>For reference, the DataPlatform version I&#8217;m using is 5.0.1.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This one falls into the category of &#8220;unlikely that it will happen to you but might be worth noting&#8221;. I&#8217;ve been working with some Cohesity gear in the lab recently and came across a warning, not an error, when I was doing a SQL backup. But before I get to that, it&#8217;s important to share [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[837,25],"tags":[792,832,976,1096,581],"class_list":["post-6426","post","type-post","status-publish","format-standard","hentry","category-cohesity","category-dataprotection","tag-backup","tag-cohesity","tag-data-protection","tag-dataplatform","tag-sql"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/6426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/comments?post=6426"}],"version-history":[{"count":4,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/6426\/revisions"}],"predecessor-version":[{"id":6434,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/6426\/revisions\/6434"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=6426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=6426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=6426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}