SQL Server AlwaysOn Log shrinking

Source: Internet
Author: User
Tags sql server management

Many of the current projects are increasingly using SQL Server AlwaysOn architecture as a highly available clustering technology for databases.

And most of the current Microsoft products, Citrix XenDesktop, XenApp, PVS, Xenmobile also support this technology, AlwaysOn both mirror and cluster dual advantages, both to achieve a unique host name, IP address access, Instead of having to use shared storage as a cluster, you can save the data as multiple copies, like Mirror, with AlwaysOn also having a multi-read-write architecture that can improve database performance very effectively, with a single AlwaysOn group supporting up to 8 secondary replicas. It can also support the AlwaysOn architecture of different sites, and realize the remote disaster preparedness and database access.

To get to the bottom, let's talk about the full issue of database logs we often encounter with SQL Server, especially the more Citrix XenDesktop Virtual desktop projects deployed, where the database log growth is very fast in the 1000-point scale, and in traditional mirror environments, We did the appropriate pruning using scripting, so let's talk about the simplest method of shrinking in AlwaysOn.

SQL Server logs will automatically free up space when it is backed up, such as a weekly log of 10GB, a weekly backup, and a log on disk that will always remain around 10GB.

Therefore, the effective way to shrink is to do a regular backup of the transaction log for SQL Server, which is done directly in the SQL Server Management tool to make a maintenance backup plan.

In a typical deployment, we have two backup plans, a full backup, a transaction log backup, and a backup that is retained for one months or more, as security requires, to automatically delete the old backup.

Superdream


This article is from the "Meng Juishu Technology Blog" blog, make sure to keep this source http://superdream.blog.51cto.com/2011872/1856585

SQL Server AlwaysOn Log shrinking

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.