<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Immutability &#8211; Veeamblog.nl</title>
	<atom:link href="https://veeamblog.nl/tag/immutability/feed/" rel="self" type="application/rss+xml" />
	<link>https://veeamblog.nl</link>
	<description>Just my experiences</description>
	<lastBuildDate>Tue, 24 Nov 2020 09:58:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.5</generator>

<image>
	<url>https://veeamblog.nl/wp-content/uploads/2022/07/cropped-Logo-32x32.png</url>
	<title>Immutability &#8211; Veeamblog.nl</title>
	<link>https://veeamblog.nl</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>VBR v11 Linux Immutability and XFS &#8211; Gamechanger?</title>
		<link>https://veeamblog.nl/2020/11/24/vbr-v11-linux-immutability-and-xfs-gamechanger/</link>
					<comments>https://veeamblog.nl/2020/11/24/vbr-v11-linux-immutability-and-xfs-gamechanger/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 24 Nov 2020 09:58:00 +0000</pubDate>
				<category><![CDATA[Immutability]]></category>
		<category><![CDATA[VBR v11]]></category>
		<category><![CDATA[Veeam]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VBR]]></category>
		<category><![CDATA[VBRv11]]></category>
		<guid isPermaLink="false">https://www.veeamblog.nl/?p=52</guid>

					<description><![CDATA[I wanted to write about this for a while now since I started testing and using the VBR v11 Beta, but now I finally can 🙂Starting v11 of Veeam Backup &#38; Recovery there will be a new feature that looks like it can be quite the gamechanger!VBR v11 introduces Linux Immutability! Combine this with Linux &#8230; <a href="https://veeamblog.nl/2020/11/24/vbr-v11-linux-immutability-and-xfs-gamechanger/" class="more-link">Continue reading<span class="screen-reader-text"> "VBR v11 Linux Immutability and XFS &#8211; Gamechanger?"</span></a>]]></description>
										<content:encoded><![CDATA[
<p>I wanted to write about this for a while now since I started testing and using the VBR v11 Beta, but now I finally can <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /><br>Starting v11 of Veeam Backup &amp; Recovery there will be a new feature that looks like it can be quite the gamechanger!<br>VBR v11 introduces Linux Immutability! Combine this with Linux XFS and you got yourself a very nice and efficient repository to store backups knowing it cannot be altered until the defined threshold time passes. If you have a Public Cloud to your disposal  (for instance Azure) you can even deploy the Linux XFS repository in the Cloud so it is stored off-site even.</p>



<p>In this blog I want to show you how to set it up and demonstrate it really works. So here goes!</p>



<p>First of all, I deployed an Azure VM running Ubuntu 20.04 and set up XFS on a additional Azure Data Disk (1024GB) Premium SSD.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image.png" alt="" class="wp-image-53"/></figure>



<p>After deployment open up SSH to the machine and set up the XFS data disk.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-1.png" alt="" class="wp-image-54"/></figure>



<p>Run the following commands (in my example /dev/sda is the Azure Data disk of 1024GB)<br>sudo fdisk -l /dev/sda<br>sudo fdisk /dev/sda<br>answer N<br>answer P (for primary)<br>answer 1 (for partition number)<br>press ENTER (to accept default first sector)<br>press ENTER (for complete disk size)<br>answer W (for writing partition table)</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-2.png" alt="" class="wp-image-55"/></figure>



<p>Run the following volume format string command to configure a Linux backup repository for work with Fast Clone: <br><a rel="noreferrer noopener" href="https://helpcenter.veeam.com/docs/backup/vsphere/backup_repository_block_cloning.html?ver=100" target="_blank">https://helpcenter.veeam.com/docs/backup/vsphere/backup_repository_block_cloning.html?ver=100</a><br>sudo mkfs.xfs -b size=4096 -m reflink=1,crc=1 /dev/sda1</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-3.png" alt="" class="wp-image-57"/></figure>



<p>Create a directory called &#8220;backups&#8221; (for example) and make sure to mount the drive during boot to it.<br>sudo mkdir /backups<br>sudo blkid /dev/sda1<br>su<br>sudo echo &#8216;UUID=<span style="color:#b90606" class="has-inline-color">uuid-from-blkid</span> /backups xfs defaults 1 1&#8242; &gt;&gt; /etc/fstab (you can ofcourse also use VI or nano to edit /etc/fstab)<br>sudo mount -a<br>df -h | grep /backups</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-4.png" alt="" class="wp-image-59"/></figure>



<p>Now XFS has been configured and is almost ready for use. We will create a user first with no rights and make him owner of the directory so we can add the repository to Veeam.<br><br>sudo useradd -m veeamrepo<br>sudo passwd veeamrepo<br>sudo chown -R veeamrepo:veeamrepo /backups<br>ls -alh /backups<br>For adding it to Veeam we need to give it sudo rights temporarily.<br>sudo vi /etc/sudoers<br>veeamrepo ALL=(ALL:ALL) ALL<br></p>



<p>Next step is to add this Linux Repository to VBR v11 to make use of it. Within VBR v11 we will be setting the Immutability option when we configure the repository.<br>For adding a Backup Repository you go to: &#8220;Backup Infrastructure&#8221; &gt; &#8220;Backup Repositories&#8221; &gt; &#8220;Right clik and select Add Backup Repository&#8221; &gt; &#8220;Direct attached storage&#8221; &gt; &#8220;Linux&#8221;. There you give it a name and click &#8220;Next&#8221;.<br>Now from this point you select &#8220;Add new&#8221; and fill in the required information.</p>



<figure class="wp-block-image size-large is-resized"><img fetchpriority="high" decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-5.png" alt="" class="wp-image-64" width="757" height="594"/></figure>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/11/image-1024x342.png" alt="" class="wp-image-117"/><figcaption><span style="color:#a30000" class="has-inline-color">Use the veeamrepo we created with the new option: &#8220;Single-user credentials for hardened repository&#8221;</span></figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/11/image-1.png" alt="" class="wp-image-118"/></figure>



<p>Select &#8220;Yes&#8221; for the fingerprint message to trust the server.<br>Now VBR will start updating the infrastructure with the new information and do some checks to see if the Veeam Data Mover service is already there or needs to be installed and configured. After all checks have passed we can continue.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-8.png" alt="" class="wp-image-67"/></figure>



<p>At the &#8220;New Backup Repository&#8221; screen we can now &#8220;Populate&#8221; it to find all the available Paths. Select the created XFS drive in my case /backups (/dev/sda1).</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-9.png" alt="" class="wp-image-68"/></figure>



<p>Select the &#8220;fast cloning&#8221; option for the repository AND also select the &#8220;Immutability&#8221; option (I set it for 7 days).</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-10.png" alt="" class="wp-image-70"/></figure>



<p>For the &#8220;Mount Server&#8221; and &#8220;Review&#8221; I left the defaults in my situation.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-11.png" alt="" class="wp-image-71"/></figure>



<p>If we apply then al settings will be checked and I all goes well all lights turn to Green !</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-12.png" alt="" class="wp-image-72"/></figure>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-13.png" alt="" class="wp-image-73"/></figure>



<p></p>



<p>Now we have to remove the sudo rights from teh veeamrepo to make sure it is really hardened!<br>sudo visudo /etc/sudoers and <strong>remove </strong>the veeamrepo ALL line !<br><br><span style="color:#a30003" class="has-inline-color">Now further harden the the Linux Repository by also disable SSH</span> with the following commands:<br>sudo systemctl disable ssh<br>sudo systemctl stop ssh</p>



<p><br>Now we are ready to configure/add a backup job which uses our new &#8220;Linux XFS Repository with Immutability option&#8221;. Make sure to use Incremental with Synthetic Full option in the Advanced options for the job.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-14.png" alt="" class="wp-image-75"/></figure>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-15.png" alt="" class="wp-image-76"/></figure>



<p>After this, we can take full use of XFS and Immutability on Linux!</p>



<h3 class="wp-block-heading">Testing the Immutability</h3>



<p>First we select the backup that is stored on the new XFS-Immutable repository and select &#8220;delete from disk&#8221;.</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-17.png" alt="" class="wp-image-79"/></figure>



<p>Veeam will try to delete the backup from disk but will give us a message:</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/image-18.png" alt="" class="wp-image-80"/></figure>



<p>As you can see it failed to delete the backup because of Immutability.<br>If we take a closer look at the Linux XFS Repository itself we can see the following if we try to delete it from there:</p>



<p><img decoding="async" class="wp-image-92" style="width: 1024px;" src="https://www.veeamblog.nl/wp-content/uploads/2020/10/2020-10-04_14-51-53-1.jpg" alt=""><br>So now we have created a Linux XFS repository with the Immutability option from VBR v11 which allows us to secure backups for a certain amount of pre-defined time, this way ransomware has no change to compromise the backups.<br></p>
]]></content:encoded>
					
					<wfw:commentRss>https://veeamblog.nl/2020/11/24/vbr-v11-linux-immutability-and-xfs-gamechanger/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
